Move many ESLint rules to the root level

This commit is contained in:
Valtteri Kantanen
2024-03-12 18:51:11 +02:00
parent 2d0d152fb7
commit e1cc1f3ecc
4 changed files with 34 additions and 15 deletions
+23 -3
View File
@@ -8,12 +8,32 @@
"ecmaVersion": "latest",
"sourceType": "commonjs"
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:cypress/recommended"],
"extends": [
"eslint:recommended",
"airbnb",
"plugin:cypress/recommended",
"plugin:import/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-console": "error",
"no-async-promise-executor": "off",
"prettier/prettier": "error",
"cypress/no-assigning-return-values": "off",
"cypress/unsafe-to-chain-command": "off"
}
"cypress/unsafe-to-chain-command": "off",
"camelcase": "off",
"no-plusplus": "off",
"no-shadow": "off",
"quotes": ["error", "single", { "avoidEscape": true }],
"no-promise-executor-return": "off",
"no-restricted-syntax": "off",
"no-continue": "off",
"no-await-in-loop": "off",
"no-param-reassign": "off",
"no-return-await": "off",
"consistent-return": "off",
"default-param-last": "off",
"import/order": "off"
},
"ignorePatterns": ["node_modules/", "build/", "**/*migrations*/**"]
}