aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json191
1 files changed, 0 insertions, 191 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index 82f5d58..0000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,191 +0,0 @@
1{
2 "root": true,
3 "env": {
4 "node": true,
5 "browser": true,
6 "es2021": true
7 },
8 "extends": [
9 "eslint-config-airbnb-typescript",
10 "plugin:import/recommended",
11 "plugin:import/typescript"
12 ],
13 "parser": "@typescript-eslint/parser",
14 "parserOptions": {
15 "ecmaFeatures": {
16 "jsx": true
17 },
18 "ecmaVersion": 2021,
19 "project": "./tsconfig.json"
20 },
21 "plugins": [
22 "react",
23 "@typescript-eslint"
24 ],
25 "rules": {
26 "indent": [
27 2,
28 2,
29 {
30 "SwitchCase": 1
31 }
32 ],
33 "quotes": [
34 "error",
35 "single"
36 ],
37 "linebreak-style": [
38 "error",
39 "unix"
40 ],
41 "semi": [
42 "error",
43 "always"
44 ],
45 "import/extensions": [
46 "error",
47 "ignorePackages",
48 {
49 "js": "always",
50 "jsx": "always",
51 "json": "never",
52 "ts": "never",
53 "tsx": "never"
54 }
55 ],
56 "import/no-unresolved": [
57 "error",
58 {
59 "caseSensitive": false
60 }
61 ],
62 "import/no-extraneous-dependencies": [
63 "error",
64 {
65 // "devDependencies": true,
66 // "optionalDependencies": true,
67 // "peerDependencies": true,
68 "bundledDependencies": true
69 }
70 ],
71 // Best practices
72 "block-scoped-var": 1,
73 "complexity": [
74 1,
75 4
76 ],
77 "consistent-return": 1,
78 "curly": 1,
79 "default-case": 1,
80 "dot-location": [
81 1,
82 "property"
83 ],
84 "dot-notation": 1,
85 "eqeqeq": 2,
86 "guard-for-in": 1,
87 "no-alert": 2,
88 "no-caller": 2,
89 "no-case-declarations": 2,
90 "no-console": 0,
91 "no-div-regex": 1,
92 "no-else-return": 0,
93 "no-empty": 0,
94 "no-empty-pattern": 2,
95 "no-eq-null": 2,
96 "no-eval": 2,
97 "no-extend-native": 1,
98 "no-extra-bind": 1,
99 "no-fallthrough": 1,
100 "no-floating-decimal": 1,
101 "no-implicit-coercion": 1,
102 "no-implied-eval": 1,
103 "no-invalid-this": 2,
104 "no-iterator": 2,
105 "no-labels": 1,
106 "no-lone-blocks": 1,
107 "no-loop-func": 2,
108 "no-magic-numbers": [
109 "error",
110 {
111 "ignore": [
112 -1,
113 0,
114 1,
115 2,
116 100,
117 200,
118 422,
119 3600000,
120 1453449120000,
121 1453445460000
122 ]
123 }
124 ],
125 "no-multi-spaces": 1,
126 "no-multi-str": 1,
127 "no-native-reassign": 1,
128 "no-new-func": 2,
129 "no-new-wrappers": 2,
130 "no-new": 1,
131 "no-octal-escape": 1,
132 "no-octal": 1,
133 "no-param-reassign": 1,
134 "no-process-env": 2,
135 "no-proto": 2,
136 "no-redeclare": 1,
137 "no-return-assign": 2,
138 "no-script-url": 2,
139 "no-self-compare": 1,
140 "no-sequences": 1,
141 "no-throw-literal": 2,
142 "no-unused-expressions": [
143 1,
144 {
145 "allowTernary": true
146 }
147 ],
148 "no-useless-call": 2,
149 "no-useless-concat": 1,
150 "no-void": 2,
151 "no-warning-comments": 0,
152 "no-with": 2,
153 "radix": 1,
154 "vars-on-top": 0,
155 "wrap-iife": 2,
156 "yoda": 0,
157 "strict": 1,
158 // Variables
159 "init-declarations": 0,
160 "no-catch-shadow": 2,
161 "no-delete-var": 2,
162 "no-label-var": 2,
163 "no-shadow-restricted-names": 2,
164 "no-shadow": 2,
165 "no-undef-init": 1,
166 "no-undef": 2,
167 "no-undefined": 0,
168 "no-unused-vars": 2,
169 "no-use-before-define": 2
170 },
171 "globals": {
172 "__dirname": false
173 },
174 "overrides": [
175 {
176 "files": [
177 "**/__tests__/*"
178 ],
179 "globals": {
180 "after": false,
181 "afterEach": false,
182 "beforeAll": false,
183 "beforeEach": false,
184 "describe": false,
185 "Electron": false,
186 "expect": false,
187 "it": false
188 }
189 }
190 ]
191}