aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc165
1 files changed, 0 insertions, 165 deletions
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index 26159ed87..000000000
--- a/.eslintrc
+++ /dev/null
@@ -1,165 +0,0 @@
1{
2 "root": true,
3 "parser": "@babel/eslint-parser",
4 "extends": "eslint-config-airbnb",
5 "plugins": [
6 "jest"
7 ],
8 "overrides": [
9 {
10 "files": [
11 "**/*.ts",
12 "**/*.tsx"
13 ],
14 "env": {
15 "browser": true,
16 "es6": true,
17 "node": true
18 },
19 "extends": [
20 "airbnb-typescript"
21 ],
22 "parser": "@typescript-eslint/parser",
23 "parserOptions": {
24 "ecmaFeatures": {
25 "jsx": true
26 },
27 "ecmaVersion": 2018,
28 "sourceType": "module",
29 "project": "./tsconfig.json"
30 },
31 "plugins": [
32 "@typescript-eslint"
33 ],
34 "rules": {
35 // eslint
36 "arrow-parens": 0,
37 "array-callback-return": 1,
38 "class-methods-use-this": 0,
39 "consistent-return": 0,
40 "function-paren-newline": 0,
41 "implicit-arrow-linebreak": 0,
42 "linebreak-style": 0,
43 "max-len": 0,
44 "no-confusing-arrow": 0,
45 "no-console": 0,
46 "no-param-reassign": 0,
47 "no-return-assign": 1,
48 "no-underscore-dangle": 0,
49 "no-use-before-define": 0,
50 "prefer-destructuring": 1,
51 "object-curly-newline": 0,
52 "operator-linebreak": 0,
53 // @typescript-eslint
54 "@typescript-eslint/indent": 0,
55 "@typescript-eslint/no-shadow": 0,
56 "@typescript-eslint/no-unused-expressions": 0,
57 // eslint-plugin-import
58 "import/extensions": 0,
59 "import/no-cycle": 1,
60 "import/no-extraneous-dependencies": 0,
61 "import/no-unresolved": 0,
62 "import/prefer-default-export": 0,
63 // eslint-plugin-react
64 "react/destructuring-assignment": 0,
65 "react/button-has-type": 0,
66 "react/forbid-prop-types": 0,
67 "react/jsx-curly-newline": 0,
68 "react/jsx-no-bind": 0,
69 "react/jsx-no-target-blank": 0,
70 "react/jsx-props-no-spreading": 0,
71 "react/no-deprecated": 1,
72 "react/no-array-index-key": 0,
73 "react/prefer-stateless-function": 0,
74 "react/sort-comp": 0,
75 "react/state-in-constructor": 0,
76 "react/static-property-placement": 0,
77 // eslint-plugin-jsx-a11y
78 "jsx-a11y/click-events-have-key-events": 1,
79 "jsx-a11y/mouse-events-have-key-events": 1,
80 "jsx-a11y/label-has-for": [
81 2,
82 {
83 "components": [
84 "Label"
85 ],
86 "required": {
87 "every": [
88 "id"
89 ]
90 },
91 "allowChildren": false
92 }
93 ],
94 "jsx-a11y/no-static-element-interactions": 0,
95 "jsx-a11y/no-noninteractive-element-interactions": 1
96 }
97 }
98 ],
99 "settings": {
100 "react": {
101 "pragma": "React", // Pragma to use, default to "React"
102 "version": "detect" // React version. "detect" automatically picks the version you have installed.
103 }
104 },
105 "globals": {
106 "window": true,
107 "document": true,
108 "FormData": true,
109 "localStorage": true,
110 "navigator": true,
111 "Element": true,
112 "use": true,
113 "FileReader": true
114 },
115 "env": {
116 "jest/globals": true
117 },
118 "rules": {
119 // eslint
120 "arrow-parens": 0,
121 "class-methods-use-this": 0,
122 "consistent-return": 1,
123 "implicit-arrow-linebreak": 0,
124 "function-paren-newline": 0,
125 "max-len": 0,
126 "no-await-in-loop": 1,
127 "no-console": [
128 1,
129 {
130 "allow": [
131 "warn",
132 "error"
133 ]
134 }
135 ],
136 "no-param-reassign": 1,
137 "no-restricted-syntax": 0,
138 "no-underscore-dangle": 0,
139 "operator-linebreak": 0,
140 "prefer-destructuring": 1,
141 "object-curly-newline": 0,
142 // eslint-plugin-import
143 "import/extensions": 1,
144 "import/prefer-default-export": 0,
145 "import/no-extraneous-dependencies": 0, // various false positives, re-enable at some point
146 "import/no-unresolved": 1,
147 // eslint-plugin-react
148 "react/forbid-prop-types": 1,
149 "react/destructuring-assignment": 0,
150 "react/jsx-curly-newline": 0,
151 "react/jsx-filename-extension": 1,
152 "react/jsx-one-expression-per-line": 0,
153 "react/jsx-no-bind": 1,
154 "react/jsx-props-no-spreading": 0,
155 "react/prefer-stateless-function": 1,
156 "react/prop-types": 0,
157 "react/static-property-placement": 0,
158 "react/state-in-constructor": 1,
159 "react/sort-comp": 0,
160 // eslint-plugin-jsx-a11y
161 "jsx-a11y/click-events-have-key-events": 1,
162 "jsx-a11y/no-static-element-interactions": 1,
163 "jsx-a11y/no-noninteractive-element-interactions": 1
164 }
165}