57 lines
1.3 KiB
JSON
57 lines
1.3 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": [
|
|
"eslint",
|
|
"typescript",
|
|
"unicorn",
|
|
"oxc",
|
|
"react",
|
|
"import",
|
|
"jsx-a11y",
|
|
"nextjs"
|
|
],
|
|
"categories": {
|
|
"correctness": "error"
|
|
},
|
|
"env": {
|
|
"builtin": true,
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"options": {
|
|
"typeAware": true,
|
|
"typeCheck": true
|
|
},
|
|
"ignorePatterns": [
|
|
".next/**",
|
|
".vinext/**",
|
|
"out/**",
|
|
"build/**",
|
|
"dist/**",
|
|
"coverage/**",
|
|
"next-env.d.ts"
|
|
],
|
|
"rules": {
|
|
"no-array-constructor": "error",
|
|
"no-var": "error",
|
|
"prefer-const": "error",
|
|
"prefer-rest-params": "error",
|
|
"prefer-spread": "error",
|
|
"import/no-anonymous-default-export": "warn",
|
|
"react/display-name": "error",
|
|
"react/jsx-no-comment-textnodes": "error",
|
|
"react/no-unescaped-entities": "error",
|
|
"react/react-compiler": "error",
|
|
"react/require-render-return": "error",
|
|
"react/rules-of-hooks": "error",
|
|
"typescript/ban-ts-comment": "error",
|
|
"typescript/no-deprecated": "error",
|
|
"typescript/no-empty-object-type": "error",
|
|
"typescript/no-explicit-any": "error",
|
|
"typescript/no-namespace": "error",
|
|
"typescript/no-require-imports": "error",
|
|
"typescript/no-unnecessary-type-constraint": "error",
|
|
"typescript/no-unsafe-function-type": "error"
|
|
}
|
|
}
|