haiku-atelier-2024/.oxlintrc.json
2025-04-23 19:14:24 +02:00

56 lines
1.6 KiB
JSON
Executable file

{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": { "browser": true, "es2020": true, "es2022": true },
"categories": {
"correctness": "error",
"nursery": "error",
"pedantic": "error",
"perf": "warn",
"restriction": "error",
"style": "warn",
"suspicious": "error"
},
"plugins": [
"eslint-plugin-jsdoc",
"eslint-plugin-promise",
"eslint-plugin-unicorn",
"jsdoc",
"oxc",
"oxc-security",
"promise",
"security",
"typescript",
"typescript-eslint",
"unicorn"
],
"rules": {
"eslint/max-classes-per-file": "off",
"eslint/no-magic-numbers": "off",
"eslint/no-redeclare": "off",
"import/export": "error",
"no-array-for-each": "off",
"no-async-await": "off",
"no-console": "off",
"no-magic-numbers": "off",
"no-map-spread": "off",
"no-misused-promises": "off",
"no-optional-chaining": "off",
"no-redeclare": "off",
"no-rest-spread-properties": "off",
"no-ternary": "off",
"no-undefined": "off",
"no-unused-expressions": "off",
"no-void": "off",
"prefer-await-to-then": "off",
"promise/prefer-await-to-callbacks": "off",
"sort-imports": "off",
"typescript/array-type": ["error", { "default": "generic", "readonly": "generic" }],
"typescript/consistent-indexed-object-style": ["error", "record"],
"typescript/consistent-type-imports": "error",
"typescript/explicit-function-return-type": "warn",
"typescript/no-redeclare": ["off", { "ignoreDeclarationMerge": true }],
"unicorn/no-null": "off",
"unicorn/prefer-dom-node-dataset": "off",
"yoda": ["error", "never"]
}
}