2023-05-23 22:20:20 +03:00
|
|
|
{
|
|
|
|
"extends": ["airbnb", "prettier"],
|
|
|
|
"env": {
|
|
|
|
"browser": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"config": "readonly"
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2023
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": "off",
|
|
|
|
"class-methods-use-this": "off",
|
|
|
|
"func-style": ["error", "expression"],
|
|
|
|
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
|
|
|
|
"no-await-in-loop": "error",
|
|
|
|
"import/no-cycle": "warn",
|
|
|
|
"react/prop-types": "off",
|
|
|
|
"react/destructuring-assignment": "off",
|
|
|
|
"react/jsx-no-useless-fragment": "off",
|
|
|
|
"react/jsx-props-no-spreading": "off",
|
2023-05-25 04:32:15 +03:00
|
|
|
"react/jsx-no-duplicate-props": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignoreCase": false // For <TextField>'s [iI]nputProps
|
|
|
|
}
|
|
|
|
],
|
2023-05-23 22:20:20 +03:00
|
|
|
"react/function-component-definition": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"namedComponents": "arrow-function",
|
|
|
|
"unnamedComponents": "arrow-function"
|
|
|
|
}
|
|
|
|
]
|
2023-05-24 22:36:01 +03:00
|
|
|
},
|
|
|
|
"overrides": [{ "files": ["./public/sw.js"], "rules": { "no-restricted-globals": "off" } }]
|
2023-05-23 22:20:20 +03:00
|
|
|
}
|