diff options
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 31 |
1 files changed, 8 insertions, 23 deletions
@@ -2,23 +2,16 @@ | |||
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": [ | 5 | "plugins": ["jest"], |
6 | "jest" | ||
7 | ], | ||
8 | "overrides": [ | 6 | "overrides": [ |
9 | { | 7 | { |
10 | "files": [ | 8 | "files": ["**/*.ts", "**/*.tsx"], |
11 | "**/*.ts", | ||
12 | "**/*.tsx" | ||
13 | ], | ||
14 | "env": { | 9 | "env": { |
15 | "browser": true, | 10 | "browser": true, |
16 | "es6": true, | 11 | "es6": true, |
17 | "node": true | 12 | "node": true |
18 | }, | 13 | }, |
19 | "extends": [ | 14 | "extends": ["airbnb-typescript"], |
20 | "airbnb-typescript" | ||
21 | ], | ||
22 | "parser": "@typescript-eslint/parser", | 15 | "parser": "@typescript-eslint/parser", |
23 | "parserOptions": { | 16 | "parserOptions": { |
24 | "ecmaFeatures": { | 17 | "ecmaFeatures": { |
@@ -28,9 +21,7 @@ | |||
28 | "sourceType": "module", | 21 | "sourceType": "module", |
29 | "project": "./tsconfig.json" | 22 | "project": "./tsconfig.json" |
30 | }, | 23 | }, |
31 | "plugins": [ | 24 | "plugins": ["@typescript-eslint"], |
32 | "@typescript-eslint" | ||
33 | ], | ||
34 | "rules": { | 25 | "rules": { |
35 | // eslint | 26 | // eslint |
36 | "arrow-parens": 0, | 27 | "arrow-parens": 0, |
@@ -79,13 +70,9 @@ | |||
79 | "jsx-a11y/label-has-for": [ | 70 | "jsx-a11y/label-has-for": [ |
80 | 2, | 71 | 2, |
81 | { | 72 | { |
82 | "components": [ | 73 | "components": ["Label"], |
83 | "Label" | ||
84 | ], | ||
85 | "required": { | 74 | "required": { |
86 | "every": [ | 75 | "every": ["id"] |
87 | "id" | ||
88 | ] | ||
89 | }, | 76 | }, |
90 | "allowChildren": false | 77 | "allowChildren": false |
91 | } | 78 | } |
@@ -126,10 +113,7 @@ | |||
126 | "no-console": [ | 113 | "no-console": [ |
127 | 1, | 114 | 1, |
128 | { | 115 | { |
129 | "allow": [ | 116 | "allow": ["warn", "error"] |
130 | "warn", | ||
131 | "error" | ||
132 | ] | ||
133 | } | 117 | } |
134 | ], | 118 | ], |
135 | "no-param-reassign": 1, | 119 | "no-param-reassign": 1, |
@@ -152,6 +136,7 @@ | |||
152 | "react/jsx-no-bind": 1, | 136 | "react/jsx-no-bind": 1, |
153 | "react/jsx-props-no-spreading": 0, | 137 | "react/jsx-props-no-spreading": 0, |
154 | "react/prefer-stateless-function": 1, | 138 | "react/prefer-stateless-function": 1, |
139 | "react/prop-types": 0, | ||
155 | "react/static-property-placement": 0, | 140 | "react/static-property-placement": 0, |
156 | "react/state-in-constructor": 1, | 141 | "react/state-in-constructor": 1, |
157 | "react/sort-comp": 0, | 142 | "react/sort-comp": 0, |