-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (46 loc) · 1.17 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
extends:
- eslint-config-shakacode
- prettier
- prettier/react
plugins:
- prettier
globals:
__DEBUG_SERVER_ERRORS__: true
__SERVER_ERRORS__: true
env:
browser: true
node: true
mocha: true
jest: true
overrides:
- files: ["**/*.ts", "**/*.tsx"]
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 2018
sourceType: module
project: "./tsconfig.json"
extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
plugins:
- "@typescript-eslint"
rules:
"@typescript-eslint/no-namespace": 0
"@typescript-eslint/no-shadow": ["error"]
rules:
no-shadow: 0
no-console: 0
function-paren-newline: 0
object-curly-newline: 0
no-restricted-syntax: ["error", "SequenceExpression"]
# https://stackoverflow.com/a/59268871/5241481
import/extensions: ['error', 'ignorePackages', {"js": 'never',"ts": "never"}]
# https://github.com/benmosher/eslint-plugin-import/issues/340
import/no-extraneous-dependencies: 0
settings:
import/core-modules:
- react-redux
import/resolver:
node:
extensions: [".js", ".ts", ".d.ts"]