-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc
70 lines (70 loc) · 1.53 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"jest/globals": true
},
"plugins": ["jest", "import", "@typescript-eslint"],
"extends": [
"airbnb-typescript/base",
"eslint-config-airbnb-base",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"indent": [2, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
"@typescript-eslint/indent": [2, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
"no-tabs": 0,
"comma-dangle": 0, // WTF air-bnb?!
"@typescript-eslint/comma-dangle": 0,
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"@typescript-eslint/quotes": [
"error",
"double"
],
"no-console": "off",
"curly": [2, "all"],
"brace-style": [2, "stroustrup"],
"@typescript-eslint/brace-style": [2, "stroustrup"],
"semi": ["error", "always"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "error"
},
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["!.storybook", "jest.config.js"],
"settings": {
"import/extensions": [
".js",
".ts"
]
},
}