Sort eslint rules

This commit is contained in:
Riku Rauhala
2024-03-18 12:17:28 +02:00
parent 3a10c22b80
commit 1aed2d2ff8
2 changed files with 30 additions and 30 deletions
+12 -12
View File
@@ -16,24 +16,24 @@
"plugin:prettier/recommended"
],
"rules": {
"no-console": "error",
"no-async-promise-executor": "off",
"prettier/prettier": "error",
"camelcase": "off",
"consistent-return": "off",
"cypress/no-assigning-return-values": "off",
"cypress/unsafe-to-chain-command": "off",
"camelcase": "off",
"default-param-last": "off",
"import/order": "off",
"no-async-promise-executor": "off",
"no-await-in-loop": "off",
"no-console": "error",
"no-continue": "off",
"no-param-reassign": "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"
"no-shadow": "off",
"prettier/prettier": "error",
"quotes": ["error", "single", { "avoidEscape": true }]
},
"ignorePatterns": ["node_modules/", "build/", "**/*migrations*/**"]
}
+18 -18
View File
@@ -10,19 +10,31 @@
},
"extends": "../../.eslintrc.json",
"rules": {
"camelcase": "error",
"consistent-return": "error",
"import/no-commonjs": "error",
"import/no-default-export": "error",
"import/no-unused-modules": ["error", { "missingExports": true, "unusedExports": true }],
"import/order": [
"error",
{
"alphabetize": { "order": "asc", "caseInsensitive": true },
"groups": ["builtin", "external", "internal", "parent", "sibling"],
"pathGroups": [{ "pattern": "@/**", "group": "internal", "position": "before" }]
}
],
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-static-element-interactions": "off",
"camelcase": "error",
"no-async-promise-executor": "error",
"no-promise-executor-return": "error",
"no-restricted-syntax": "error",
"no-await-in-loop": "error",
"no-return-await": "error",
"consistent-return": "error",
"no-implied-eval": "off",
"no-param-reassign": ["error", { "props": false }],
"no-promise-executor-return": "error",
"no-restricted-syntax": "error",
"no-return-await": "error",
"react/forbid-prop-types": "off",
"react/function-component-definition": [
"error",
@@ -38,19 +50,7 @@
"react/no-unstable-nested-components": "off",
"react/prefer-stateless-function": "error",
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"import/no-default-export": "error",
"import/no-unused-modules": ["error", { "missingExports": true, "unusedExports": true }],
"import/no-commonjs": "error",
"import/order": [
"error",
{
"alphabetize": { "order": "asc", "caseInsensitive": true },
"groups": ["builtin", "external", "internal", "parent", "sibling"],
"pathGroups": [{ "pattern": "@/**", "group": "internal", "position": "before" }]
}
],
"import/prefer-default-export": "off"
"react-hooks/rules-of-hooks": "error"
},
"plugins": ["react", "react-hooks"],
"settings": {