chore: fix lint
This commit is contained in:
parent
dbcd56f468
commit
3365d7afa0
|
|
@ -3,7 +3,7 @@ import { defineConfig, GLOB_TS_SRC } from "eslint-config-hyoban"
|
|||
|
||||
import checkI18nJson from "./plugins/eslint/eslint-check-i18n-json.js"
|
||||
import noDebug from "./plugins/eslint/eslint-no-debug.js"
|
||||
import packageJson from "./plugins/eslint/eslint-package-json.js"
|
||||
import packageJsonExtend from "./plugins/eslint/eslint-package-json.js"
|
||||
import recursiveSort from "./plugins/eslint/eslint-recursive-sort.js"
|
||||
|
||||
const isCI = process.env.CI === "true" || process.env.CI === "1"
|
||||
|
|
@ -84,13 +84,13 @@ export default defineConfig(
|
|||
},
|
||||
},
|
||||
{
|
||||
files: ["apps/**/package.json", "packages/**/package.json"],
|
||||
files: ["package.json", "apps/**/package.json", "packages/**/package.json"],
|
||||
plugins: {
|
||||
"ensure-package-json": packageJson,
|
||||
"package-json-extend": packageJsonExtend,
|
||||
},
|
||||
rules: {
|
||||
"ensure-package-json/ensure-package-version": "error",
|
||||
"ensure-package-json/no-duplicate-package": "error",
|
||||
"package-json-extend/ensure-package-version": "error",
|
||||
"package-json-extend/no-duplicate-package": "error",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export default {
|
|||
message: `Inconsistent versions of ${packageName}: ${versions.map((v) => v.version).join(", ")}`,
|
||||
suggest: versions.map((version) => ({
|
||||
desc: `Follow the version ${version.version} in ${version.filePath}`,
|
||||
fix: (fixer) => fixer.replaceText(node.value, version.version),
|
||||
fix: (fixer) => fixer.replaceText(node.value, `"${version.version}"`),
|
||||
})),
|
||||
})
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue