Turn off `eslint/no-ternary` and `eslint/capitalized-comments` in the project config: both encode a style the project rejects, so they belong in the config's rule map rather than a per-site disable. Scope the adjacent `oxlint-disable` decision to false positives and record why a rejected stylistic rule is turned off project-wide.
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "unicorn", "oxc", "import"],
|
|
"categories": {
|
|
"correctness": "error",
|
|
"suspicious": "error",
|
|
"perf": "warn",
|
|
"style": "warn",
|
|
"restriction": "error",
|
|
"nursery": "off"
|
|
},
|
|
"rules": {
|
|
"eslint/no-undefined": "off",
|
|
"eslint/sort-keys": "off",
|
|
"eslint/id-length": "off",
|
|
"eslint/capitalized-comments": "off",
|
|
"eslint/no-ternary": "off",
|
|
"import/no-named-export": "off",
|
|
"eslint/one-var": "off",
|
|
"import/group-exports": "off",
|
|
"import/exports-last": "off",
|
|
"eslint/sort-imports": "off",
|
|
"import/consistent-type-specifier-style": "off",
|
|
"unicorn/prefer-export-from": "off",
|
|
"typescript/method-signature-style": "off"
|
|
},
|
|
"options": { "typeAware": true },
|
|
"env": { "builtin": true, "es2024": true, "node": true },
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.test.ts"],
|
|
"rules": {
|
|
"no-unused-expressions": "off",
|
|
"no-empty-file": "off",
|
|
"import/no-nodejs-modules": "off",
|
|
"eslint/no-magic-numbers": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/**/*.ts"],
|
|
"rules": {
|
|
"import/no-nodejs-modules": "off"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": ["dist", "node_modules", "coverage"]
|
|
}
|