diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-04 17:03:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 17:03:53 +0200 |
commit | f39cbe7d803245702885b308ab1cee4551aea9a1 (patch) | |
tree | 56d2e5dbe6242bb64b03ba5028b8bac39ea0c7ed /.eslintrc | |
parent | Use namespaces when pulling docker base images since this is reqd for podman (diff) | |
download | ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.gz ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.zst ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.zip |
chore: remove what's new functionality (#1864)
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 46 |
1 files changed, 37 insertions, 9 deletions
@@ -2,20 +2,35 @@ | |||
2 | "root": true, | 2 | "root": true, |
3 | "parser": "@babel/eslint-parser", | 3 | "parser": "@babel/eslint-parser", |
4 | "extends": "eslint-config-airbnb", | 4 | "extends": "eslint-config-airbnb", |
5 | "plugins": ["jest"], | 5 | "plugins": [ |
6 | "jest" | ||
7 | ], | ||
6 | "overrides": [ | 8 | "overrides": [ |
7 | { | 9 | { |
8 | "files": ["**/*.ts", "**/*.tsx"], | 10 | "files": [ |
9 | "env": { "browser": true, "es6": true, "node": true }, | 11 | "**/*.ts", |
10 | "extends": ["airbnb-typescript"], | 12 | "**/*.tsx" |
13 | ], | ||
14 | "env": { | ||
15 | "browser": true, | ||
16 | "es6": true, | ||
17 | "node": true | ||
18 | }, | ||
19 | "extends": [ | ||
20 | "airbnb-typescript" | ||
21 | ], | ||
11 | "parser": "@typescript-eslint/parser", | 22 | "parser": "@typescript-eslint/parser", |
12 | "parserOptions": { | 23 | "parserOptions": { |
13 | "ecmaFeatures": { "jsx": true }, | 24 | "ecmaFeatures": { |
25 | "jsx": true | ||
26 | }, | ||
14 | "ecmaVersion": 2018, | 27 | "ecmaVersion": 2018, |
15 | "sourceType": "module", | 28 | "sourceType": "module", |
16 | "project": "./tsconfig.json" | 29 | "project": "./tsconfig.json" |
17 | }, | 30 | }, |
18 | "plugins": ["@typescript-eslint"], | 31 | "plugins": [ |
32 | "@typescript-eslint" | ||
33 | ], | ||
19 | "rules": { | 34 | "rules": { |
20 | // eslint | 35 | // eslint |
21 | "arrow-parens": 0, | 36 | "arrow-parens": 0, |
@@ -64,9 +79,13 @@ | |||
64 | "jsx-a11y/label-has-for": [ | 79 | "jsx-a11y/label-has-for": [ |
65 | 2, | 80 | 2, |
66 | { | 81 | { |
67 | "components": ["Label"], | 82 | "components": [ |
83 | "Label" | ||
84 | ], | ||
68 | "required": { | 85 | "required": { |
69 | "every": ["id"] | 86 | "every": [ |
87 | "id" | ||
88 | ] | ||
70 | }, | 89 | }, |
71 | "allowChildren": false | 90 | "allowChildren": false |
72 | } | 91 | } |
@@ -104,7 +123,15 @@ | |||
104 | "function-paren-newline": 0, | 123 | "function-paren-newline": 0, |
105 | "max-len": 0, | 124 | "max-len": 0, |
106 | "no-await-in-loop": 1, | 125 | "no-await-in-loop": 1, |
107 | "no-console": [1, { "allow": ["warn", "error"] }], | 126 | "no-console": [ |
127 | 1, | ||
128 | { | ||
129 | "allow": [ | ||
130 | "warn", | ||
131 | "error" | ||
132 | ] | ||
133 | } | ||
134 | ], | ||
108 | "no-param-reassign": 1, | 135 | "no-param-reassign": 1, |
109 | "no-restricted-syntax": 0, | 136 | "no-restricted-syntax": 0, |
110 | "no-underscore-dangle": 0, | 137 | "no-underscore-dangle": 0, |
@@ -121,6 +148,7 @@ | |||
121 | "react/destructuring-assignment": 0, | 148 | "react/destructuring-assignment": 0, |
122 | "react/jsx-curly-newline": 0, | 149 | "react/jsx-curly-newline": 0, |
123 | "react/jsx-filename-extension": 1, | 150 | "react/jsx-filename-extension": 1, |
151 | "react/jsx-one-expression-per-line": 0, | ||
124 | "react/jsx-no-bind": 1, | 152 | "react/jsx-no-bind": 1, |
125 | "react/jsx-props-no-spreading": 0, | 153 | "react/jsx-props-no-spreading": 0, |
126 | "react/prefer-stateless-function": 1, | 154 | "react/prefer-stateless-function": 1, |