diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-09-14 11:03:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 11:03:28 +0200 |
commit | 087113d8a1214ba4c7df03bfe66747d8d944280c (patch) | |
tree | 4d853a03057138dfa845cd6a7d91ccf63565a1a6 /.eslintrc | |
parent | chore: codebase improvements (#1930) (diff) | |
download | ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.tar.gz ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.tar.zst ferdium-app-087113d8a1214ba4c7df03bfe66747d8d944280c.zip |
chore: convert JS to TS (#1934)
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 31 |
1 files changed, 24 insertions, 7 deletions
@@ -2,16 +2,23 @@ | |||
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": [ |
11 | "**/*.ts", | ||
12 | "**/*.tsx" | ||
13 | ], | ||
9 | "env": { | 14 | "env": { |
10 | "browser": true, | 15 | "browser": true, |
11 | "es6": true, | 16 | "es6": true, |
12 | "node": true | 17 | "node": true |
13 | }, | 18 | }, |
14 | "extends": ["airbnb-typescript"], | 19 | "extends": [ |
20 | "airbnb-typescript" | ||
21 | ], | ||
15 | "parser": "@typescript-eslint/parser", | 22 | "parser": "@typescript-eslint/parser", |
16 | "parserOptions": { | 23 | "parserOptions": { |
17 | "ecmaFeatures": { | 24 | "ecmaFeatures": { |
@@ -21,13 +28,16 @@ | |||
21 | "sourceType": "module", | 28 | "sourceType": "module", |
22 | "project": "./tsconfig.json" | 29 | "project": "./tsconfig.json" |
23 | }, | 30 | }, |
24 | "plugins": ["@typescript-eslint"], | 31 | "plugins": [ |
32 | "@typescript-eslint" | ||
33 | ], | ||
25 | "rules": { | 34 | "rules": { |
26 | // eslint | 35 | // eslint |
27 | "arrow-parens": 0, | 36 | "arrow-parens": 0, |
28 | "array-callback-return": 1, | 37 | "array-callback-return": 1, |
29 | "class-methods-use-this": 0, | 38 | "class-methods-use-this": 0, |
30 | "consistent-return": 0, | 39 | "consistent-return": 0, |
40 | "function-paren-newline": 0, | ||
31 | "implicit-arrow-linebreak": 0, | 41 | "implicit-arrow-linebreak": 0, |
32 | "linebreak-style": 0, | 42 | "linebreak-style": 0, |
33 | "max-len": 0, | 43 | "max-len": 0, |
@@ -70,9 +80,13 @@ | |||
70 | "jsx-a11y/label-has-for": [ | 80 | "jsx-a11y/label-has-for": [ |
71 | 2, | 81 | 2, |
72 | { | 82 | { |
73 | "components": ["Label"], | 83 | "components": [ |
84 | "Label" | ||
85 | ], | ||
74 | "required": { | 86 | "required": { |
75 | "every": ["id"] | 87 | "every": [ |
88 | "id" | ||
89 | ] | ||
76 | }, | 90 | }, |
77 | "allowChildren": false | 91 | "allowChildren": false |
78 | } | 92 | } |
@@ -113,7 +127,10 @@ | |||
113 | "no-console": [ | 127 | "no-console": [ |
114 | 1, | 128 | 1, |
115 | { | 129 | { |
116 | "allow": ["warn", "error"] | 130 | "allow": [ |
131 | "warn", | ||
132 | "error" | ||
133 | ] | ||
117 | } | 134 | } |
118 | ], | 135 | ], |
119 | "no-param-reassign": 1, | 136 | "no-param-reassign": 1, |