Tweak ESLint rules

This commit is contained in:
Aarni Halinen
2019-07-05 00:42:39 +03:00
parent f1fdcf585a
commit d82af50d37
2 changed files with 12 additions and 15 deletions
+10 -13
View File
@@ -5,7 +5,7 @@
"node": true
},
"extends": [
"airbnb"
"eslint:recommended"
],
"globals": {
"Atomics": "readonly",
@@ -25,9 +25,7 @@
"@typescript-eslint"
],
"rules": {
"arrow-body-style": "off",
"arrow-parens": "off",
"camelcase": "off",
"arrow-parens": ["off", "always"],
"comma-dangle": [
"error",
{
@@ -39,19 +37,22 @@
}
],
"consistent-return": "warn",
"dot-notation": "warn",
"global-require": "warn",
"linebreak-style": "off",
"max-len": [
"off",
160
],
"no-console": "off",
"no-console": "warn",
"no-extra-boolean-cast": "warn",
"no-param-reassign": "warn",
"no-param-reassign": "error",
"no-shadow": "warn",
"no-unused-vars": "off",
"no-unused-vars": "warn",
"no-useless-constructor": "warn",
"object-curly-newline": "error",
"prefer-destructuring": "warn",
"prefer-template": "error",
"quote-props": ["error", "consistent"],
"quotes": [
"error",
"double"
@@ -62,10 +63,6 @@
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"import/prefer-default-export": "off",
"prefer-destructuring": "off",
"prefer-template": "off",
"object-curly-newline": "off",
"quote-props": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/click-events-have-key-events": "off",
@@ -87,4 +84,4 @@
"react/prefer-stateless-function": "off",
"react/self-closing-comp": "off"
}
}
}