The no-floating-promises header was repeated at the top of every test file. Centralize it, and the no-null suppression the new null/undefined cases need, in the **/*.test.ts override.
57 lines
1.8 KiB
JSON
57 lines
1.8 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",
|
|
"typescript/promise-function-async": "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",
|
|
"unicorn/no-null": "off",
|
|
"typescript/no-floating-promises": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["scripts/**/*.ts"],
|
|
"rules": {
|
|
"import/no-nodejs-modules": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/util/__tests__/**"],
|
|
"rules": {
|
|
"import/no-nodejs-modules": "off"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": ["dist", "node_modules", "coverage"]
|
|
}
|