Lint with every Oxlint category and list only the offs and options
Check / check (pull_request) Successful in 51s
Check / check (pull_request) Successful in 51s
This commit is contained in:
+17
-1
@@ -12,13 +12,29 @@ export default defineConfig({
|
||||
"eslint-plugin-import-structure",
|
||||
"./scripts/project-lint.ts",
|
||||
],
|
||||
categories: { correctness: "error", suspicious: "error", pedantic: "error", perf: "error" },
|
||||
categories: {
|
||||
correctness: "error",
|
||||
suspicious: "error",
|
||||
pedantic: "error",
|
||||
perf: "error",
|
||||
style: "error",
|
||||
restriction: "error",
|
||||
nursery: "off",
|
||||
},
|
||||
rules: {
|
||||
...explicitTypes.configs.concrete.rules,
|
||||
...explicitTypes.configs.naming.rules,
|
||||
...explicitTypes.configs.absence.rules,
|
||||
...importStructure.configs.modules.rules,
|
||||
...projectLint.configs.project.rules,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
// Vite+ and Oxlint load these through their default export.
|
||||
files: ["vite.config.ts", "scripts/project-lint.ts"],
|
||||
rules: { "import/no-default-export": "off" },
|
||||
},
|
||||
],
|
||||
options: {
|
||||
typeAware: true,
|
||||
typeCheck: true,
|
||||
|
||||
Reference in New Issue
Block a user