50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"ignorePatterns": [
|
|
"node_modules/**"
|
|
],
|
|
"plugins": [
|
|
"typescript",
|
|
"react",
|
|
"jsx-a11y"
|
|
],
|
|
"categories": {
|
|
"correctness": "error"
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es2022": true
|
|
},
|
|
"rules": {
|
|
"typescript/no-explicit-any": "error",
|
|
"typescript/no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_",
|
|
"caughtErrorsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"typescript/ban-ts-comment": "error",
|
|
"typescript/no-empty-object-type": "error",
|
|
"typescript/no-namespace": "error",
|
|
"typescript/no-require-imports": "error",
|
|
"typescript/no-this-alias": "error",
|
|
"typescript/no-unsafe-function-type": "error",
|
|
"typescript/no-unused-expressions": "warn",
|
|
"typescript/no-wrapper-object-types": "error",
|
|
"typescript/prefer-as-const": "error",
|
|
"typescript/triple-slash-reference": "error",
|
|
"no-empty": [
|
|
"error",
|
|
{
|
|
"allowEmptyCatch": true
|
|
}
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "error",
|
|
"jsx-a11y/no-autofocus": "off",
|
|
"jsx-a11y/prefer-tag-over-role": "off"
|
|
}
|
|
}
|