2022-06-27 16:41:03 +02:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"jest": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
2022-07-07 14:10:41 +02:00
|
|
|
"plugins": ["import", "cypress"],
|
2022-06-27 18:04:55 +02:00
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
|
|
|
"prettier",
|
|
|
|
"react-app",
|
|
|
|
"react-app/jest",
|
|
|
|
"plugin:cypress/recommended"
|
|
|
|
],
|
2022-06-27 16:41:03 +02:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2020,
|
|
|
|
"sourceType": "module",
|
|
|
|
"babelOptions": {
|
|
|
|
"presets": [["babel-preset-react-app", false], "babel-preset-react-app/prod"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allow": ["debug", "error"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-eval": "error",
|
|
|
|
"import/first": "error",
|
|
|
|
"camelcase": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignoreImports": true,
|
|
|
|
"ignoreDestructuring": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"consistent-return": "warn",
|
|
|
|
"comma-dangle": ["warn", "always-multiline"],
|
|
|
|
"constructor-super": "error",
|
|
|
|
"curly": "error",
|
|
|
|
"eol-last": "warn",
|
|
|
|
"eqeqeq": ["error", "smart"],
|
|
|
|
"import/order": 1,
|
|
|
|
"new-parens": "error",
|
|
|
|
"no-debugger": "error",
|
|
|
|
"no-fallthrough": "off",
|
|
|
|
"max-len": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"code": 120
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-shadow": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"hoist": "all"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-trailing-spaces": "warn",
|
|
|
|
"no-underscore-dangle": "error",
|
|
|
|
"no-unsafe-finally": "error",
|
|
|
|
"no-var": "error",
|
|
|
|
"object-shorthand": "error",
|
|
|
|
"one-var": ["error", "never"],
|
|
|
|
"prefer-arrow/prefer-arrow-functions": "off",
|
|
|
|
"prefer-const": "error",
|
|
|
|
"radix": "off",
|
2022-07-07 14:10:41 +02:00
|
|
|
"space-in-parens": ["off", "never"],
|
|
|
|
// cypress
|
|
|
|
"cypress/no-assigning-return-values": "error",
|
|
|
|
"cypress/no-unnecessary-waiting": "error",
|
|
|
|
"cypress/assertion-before-screenshot": "warn",
|
|
|
|
"cypress/no-force": "warn",
|
|
|
|
"cypress/no-async-tests": "error",
|
|
|
|
"cypress/no-pause": "error",
|
|
|
|
"cypress/require-data-selectors": 1
|
2022-06-27 16:41:03 +02:00
|
|
|
}
|
|
|
|
}
|