This commit is contained in:
88
packages/oxlint-config/rules/enabled.jsonc
Normal file
88
packages/oxlint-config/rules/enabled.jsonc
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
|
||||
"rules": {
|
||||
"no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"argsIgnorePattern": "^(_|e|event)",
|
||||
"caughtErrorsIgnorePattern": "^(_|e|error)",
|
||||
"varsIgnorePattern": "^_",
|
||||
"fix": {
|
||||
"imports": "safe-fix",
|
||||
},
|
||||
},
|
||||
],
|
||||
"no-var": "error",
|
||||
"no-non-null-assertion": "error",
|
||||
"no-non-null-asserted-nullish-coalescing": "error",
|
||||
"no-explicit-any": "error",
|
||||
"no-empty-object-type": "error",
|
||||
"explicit-function-return-type": [
|
||||
"error",
|
||||
{
|
||||
"allowExpressions": true,
|
||||
},
|
||||
],
|
||||
"no-unused-expressions": [
|
||||
"error",
|
||||
{
|
||||
"allowTernary": true,
|
||||
},
|
||||
],
|
||||
"no-unsafe-function-type": "error",
|
||||
"prefer-for-of": "error",
|
||||
"consistent-type-definitions": ["error", "type"],
|
||||
"no-var-requires": "error",
|
||||
"no-named-as-default": "error",
|
||||
"no-named-as-default-member": "error",
|
||||
"no-array-constructor": "error",
|
||||
"no-dynamic-delete": "error",
|
||||
"no-extraneous-class": "error",
|
||||
"no-require-imports": "error",
|
||||
"no-empty-function": "error",
|
||||
"no-redeclare": "error",
|
||||
"no-empty": [
|
||||
"error",
|
||||
{
|
||||
"allowEmptyCatch": true,
|
||||
},
|
||||
],
|
||||
"no-self-compare": "error",
|
||||
"no-throw-literal": "error",
|
||||
"no-constant-condition": "error",
|
||||
"no-constant-binary-expression": "error",
|
||||
"no-unnecessary-type-constraint": "error",
|
||||
"no-useless-constructor": "error",
|
||||
"prefer-literal-enum-member": "error",
|
||||
"prefer-namespace-keyword": "error",
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"no-duplicates": "error",
|
||||
"no-case-declarations": "error",
|
||||
"no-fallthrough": "error",
|
||||
"no-inner-declarations": "error",
|
||||
"no-prototype-builtins": "error",
|
||||
"no-regex-spaces": "error",
|
||||
"typescript/no-namespace": "error",
|
||||
"eqeqeq": "error",
|
||||
"ban-ts-comment": "error",
|
||||
"no-unassigned-vars": "error",
|
||||
"max-depth": [
|
||||
"error",
|
||||
{
|
||||
"max": 5,
|
||||
},
|
||||
],
|
||||
"always-return": [
|
||||
"error",
|
||||
{
|
||||
"ignoreLastCallback": true,
|
||||
},
|
||||
],
|
||||
"unicorn/prefer-includes": "error",
|
||||
"unicorn/prefer-structured-clone": "error",
|
||||
"curly": ["error", "multi-line", "consistent"],
|
||||
"no-sequences": "error",
|
||||
"import/no-cycle": "error",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user