Replace numbers in eslintrules with strings for readability

This commit is contained in:
Otto Ahoniemi
2021-07-14 13:20:39 +03:00
parent 14e0c1ba47
commit 90f6292209
3 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -18,8 +18,8 @@
"cypress"
],
"rules": {
"no-console": 0,
"prettier/prettier": "error",
"react/no-unescaped-entities": 0,
"no-console": "off",
"react/no-unescaped-entities": "off",
"prettier/prettier": "error"
}
}
+1 -1
View File
@@ -12,7 +12,7 @@
"updater:real": "./run.sh updater real up --detach",
"both": "docker-compose --profile oodikone --profile updater up --detach",
"both:real": "./run.sh both real up --detach",
"docker:down": "./run.sh both down --remove-orphans",
"docker:down": "docker-compose down --remove-orphans",
"lint:backend": "eslint services/backend",
"lint:frontend": "concurrently 'eslint --ext .jsx,.js services/frontend' 'stylelint services/frontend/src/**/*.css'",
"lint:userservice": "eslint services/userservice",
+28 -28
View File
@@ -12,38 +12,38 @@
"plugin:prettier/recommended"
],
"rules": {
"react/no-did-mount-set-state": "off",
"react/destructuring-assignment": "off",
"react/no-typos": "off",
"react/sort-comp": "off",
"react/forbid-prop-types": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-plusplus": "off",
"no-shadow": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": "off",
"no-async-promise-executor": "off",
"no-implied-eval": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"react/no-deprecated": "off",
"react/no-unescaped-entities": "off",
"react/prefer-stateless-function": "error",
"import/no-unresolved": "error",
"react/jsx-no-bind": "error",
"prefer-object-spread/prefer-object-spread": "error",
"babel/no-invalid-this": "error",
"react-hooks/rules-of-hooks": "error",
"prettier/prettier": "error",
"no-param-reassign": [
2,
"error",
{
"props": false
}
],
"import/no-unresolved": 2,
"react/jsx-no-bind": 2,
"react/no-did-mount-set-state": 0,
"react/prefer-stateless-function": 2,
"react/destructuring-assignment": 0,
"react/no-typos": 0,
"react/sort-comp": 0,
"react/forbid-prop-types": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": 0,
"prefer-object-spread/prefer-object-spread": 2,
"babel/no-invalid-this": 2,
"no-plusplus": 0,
"no-shadow": 0,
"react-hooks/rules-of-hooks": "error",
"prettier/prettier": "error",
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": 0,
"no-async-promise-executor": 0,
"no-implied-eval": 0,
"react/state-in-constructor": 0,
"react/static-property-placement": 0,
"react/no-deprecated": 0,
"react/no-unescaped-entities": 0
]
},
"plugins": [
"react",