2023-01-26 05:13:41 +00:00
|
|
|
{
|
2023-02-02 14:36:11 +00:00
|
|
|
"env": {
|
|
|
|
|
"browser": true,
|
|
|
|
|
"es2021": true
|
|
|
|
|
},
|
|
|
|
|
"extends": [
|
|
|
|
|
"plugin:react/recommended",
|
|
|
|
|
"airbnb",
|
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
|
"prettier",
|
|
|
|
|
"plugin:prettier/recommended"
|
|
|
|
|
],
|
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaFeatures": {
|
|
|
|
|
"jsx": true
|
|
|
|
|
},
|
|
|
|
|
"ecmaVersion": 12,
|
|
|
|
|
"sourceType": "module"
|
|
|
|
|
},
|
|
|
|
|
"plugins": ["react", "@typescript-eslint", "react-hooks"],
|
|
|
|
|
"rules": {
|
2023-02-02 15:32:22 +00:00
|
|
|
"class-methods-use-this": "off",
|
2023-02-02 14:36:11 +00:00
|
|
|
"no-use-before-define": "off",
|
2023-03-26 16:05:36 +00:00
|
|
|
"no-restricted-syntax": "off",
|
2023-02-03 04:49:55 +00:00
|
|
|
"no-warning-comments": 1,
|
2023-02-22 04:14:02 +00:00
|
|
|
"semi": [2, "always"],
|
2023-02-02 14:36:11 +00:00
|
|
|
"@typescript-eslint/no-use-before-define": ["error"],
|
|
|
|
|
"react/jsx-filename-extension": [
|
|
|
|
|
"warn",
|
|
|
|
|
{
|
|
|
|
|
"extensions": [".tsx"]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"import/extensions": [
|
|
|
|
|
"error",
|
|
|
|
|
"ignorePackages",
|
|
|
|
|
{
|
|
|
|
|
"ts": "never",
|
|
|
|
|
"tsx": "never"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-shadow": "off",
|
|
|
|
|
"@typescript-eslint/no-shadow": ["error"],
|
|
|
|
|
"@typescript-eslint/explicit-function-return-type": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"allowExpressions": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"max-len": [
|
|
|
|
|
"warn",
|
|
|
|
|
{
|
|
|
|
|
"code": 80
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"react-hooks/rules-of-hooks": "error",
|
|
|
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
|
|
|
"import/prefer-default-export": "off",
|
|
|
|
|
"react/prop-types": "off"
|
|
|
|
|
},
|
|
|
|
|
"settings": {
|
|
|
|
|
"import/resolver": {
|
|
|
|
|
"typescript": {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|