43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"prettier"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"plugins": ["@typescript-eslint", "react", "react-hooks", "prettier"],
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"@typescript-eslint/no-explicit-any": "warn",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
"argsIgnorePattern": "^_",
|
|
"varsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"react-hooks/static-components": "off",
|
|
"react-hooks/purity": "off",
|
|
"react-hooks/set-state-in-effect": "off",
|
|
"react/no-unescaped-entities": "off"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"ignorePatterns": ["dist", "node_modules", "*.config.js", "*.config.ts"]
|
|
}
|