2024-02-07 21:10:06 +05:30
|
|
|
{
|
2024-02-27 22:39:30 +05:30
|
|
|
"env": {
|
|
|
|
|
"browser": true,
|
|
|
|
|
"es2021": true,
|
|
|
|
|
"jest": true
|
|
|
|
|
},
|
|
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended",
|
|
|
|
|
"plugin:react/recommended",
|
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
|
],
|
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaFeatures": {
|
|
|
|
|
"jsx": true
|
2024-02-07 21:10:06 +05:30
|
|
|
},
|
2024-02-27 22:39:30 +05:30
|
|
|
"ecmaVersion": 13,
|
|
|
|
|
"sourceType": "module"
|
|
|
|
|
},
|
|
|
|
|
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier", "import", "unused-imports"],
|
|
|
|
|
"settings": {
|
|
|
|
|
"react": {
|
|
|
|
|
"createClass": "createReactClass",
|
|
|
|
|
"pragma": "React",
|
|
|
|
|
"fragment": "Fragment",
|
|
|
|
|
"version": "detect",
|
|
|
|
|
"flowVersion": "0.53"
|
2024-02-07 21:10:06 +05:30
|
|
|
},
|
2024-02-27 22:39:30 +05:30
|
|
|
"import/resolver": {
|
|
|
|
|
"node": {
|
|
|
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"]
|
2024-02-07 21:10:06 +05:30
|
|
|
},
|
2024-02-27 22:39:30 +05:30
|
|
|
"typescript": {}
|
2024-02-07 21:10:06 +05:30
|
|
|
}
|
2024-02-27 22:39:30 +05:30
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
"react/react-in-jsx-scope": "off",
|
|
|
|
|
"react/jsx-uses-react": "error",
|
|
|
|
|
"react/jsx-uses-vars": "error",
|
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
|
|
|
|
"no-console": "warn",
|
|
|
|
|
"@typescript-eslint/member-delimiter-style": "warn",
|
|
|
|
|
"@typescript-eslint/ban-types": "warn",
|
|
|
|
|
"@typescript-eslint/type-annotation-spacing": "warn",
|
|
|
|
|
"@typescript-eslint/no-inferrable-types": "warn",
|
|
|
|
|
"@typescript-eslint/no-empty-interface": "warn",
|
|
|
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
|
|
|
"@typescript-eslint/no-var-requires": "warn",
|
|
|
|
|
"no-restricted-imports": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"paths": [
|
|
|
|
|
{
|
|
|
|
|
"name": "lodash",
|
|
|
|
|
"message": "Import [module] from lodash/[module] instead"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"patterns": [
|
|
|
|
|
{
|
|
|
|
|
"group": ["lodash/set"],
|
|
|
|
|
"message": "Import [module] from lodash/fp/[module] instead"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
|
|
|
|
|
"unused-imports/no-unused-imports": "error",
|
|
|
|
|
"unused-imports/no-unused-vars": [
|
|
|
|
|
"warn",
|
|
|
|
|
{
|
|
|
|
|
"vars": "all",
|
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
|
"args": "after-used",
|
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|