diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-07-02 19:49:55 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 07:19:55 +0530 |
commit | 33123c354b79f7951423dd75097b11e7eb075f99 (patch) | |
tree | 29f6e857f02d0e0fc67d89a657a54a865ed5538a /.eslintrc | |
parent | Minor refactoring to move all runtime configs from 'config.js' into 'environm... (diff) | |
download | ferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.tar.gz ferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.tar.zst ferdium-app-33123c354b79f7951423dd75097b11e7eb075f99.zip |
Upgrade various dependencies to latest part 2 (#1557)
* Upgrade various dependencies to latest, remove unnecessary electron-hunspell
- upgrade eslint and friends to latest
- remove deprecated 'node-sass' in favor of 'sass'
- disable new rules from 'eslint-config-airbnb' that are conflicting with current code style
- add workspace config for 'vscode' that silences 'experimentalDecorator' warning and forces 'prettier' to single quote
* Run yarn lint to autofix with new ruleset and worked down lint issues to zero
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 30 |
1 files changed, 18 insertions, 12 deletions
@@ -3,19 +3,29 @@ | |||
3 | "extends": "eslint-config-airbnb", | 3 | "extends": "eslint-config-airbnb", |
4 | "plugins": ["jest"], | 4 | "plugins": ["jest"], |
5 | "rules": { | 5 | "rules": { |
6 | "arrow-parens": 0, | ||
6 | "consistent-return": 0, | 7 | "consistent-return": 0, |
7 | "no-param-reassign": 0, | 8 | "no-param-reassign": 0, |
8 | "import/extensions": 0, | 9 | "import/extensions": 0, |
9 | "import/no-extraneous-dependencies": 0, | 10 | "import/no-extraneous-dependencies": 0, |
10 | "import/no-unresolved": [2, { | 11 | "import/no-unresolved": [ |
11 | "ignore": ["electron"] | 12 | 2, |
12 | }], | 13 | { |
14 | "ignore": ["electron"] | ||
15 | } | ||
16 | ], | ||
13 | "import/prefer-default-export": 0, | 17 | "import/prefer-default-export": 0, |
14 | "linebreak-style": 0, | 18 | "linebreak-style": 0, |
19 | "react/static-property-placement": 0, | ||
20 | "react/state-in-constructor": 0, | ||
21 | "react/jsx-props-no-spreading": 0, | ||
15 | "react/prefer-stateless-function": 0, | 22 | "react/prefer-stateless-function": 0, |
16 | "react/jsx-filename-extension": [1, { | 23 | "react/jsx-filename-extension": [ |
17 | "extensions": [".js", ".jsx"] | 24 | 1, |
18 | }], | 25 | { |
26 | "extensions": [".js", ".jsx"] | ||
27 | } | ||
28 | ], | ||
19 | "react/forbid-prop-types": 0, | 29 | "react/forbid-prop-types": 0, |
20 | "react/destructuring-assignment": 0, | 30 | "react/destructuring-assignment": 0, |
21 | "prefer-destructuring": 1, | 31 | "prefer-destructuring": 1, |
@@ -32,13 +42,9 @@ | |||
32 | "jsx-a11y/label-has-for": [ | 42 | "jsx-a11y/label-has-for": [ |
33 | 2, | 43 | 2, |
34 | { | 44 | { |
35 | "components": [ | 45 | "components": ["Label"], |
36 | "Label" | ||
37 | ], | ||
38 | "required": { | 46 | "required": { |
39 | "every": [ | 47 | "every": ["id"] |
40 | "id" | ||
41 | ] | ||
42 | }, | 48 | }, |
43 | "allowChildren": false | 49 | "allowChildren": false |
44 | } | 50 | } |