-
Notifications
You must be signed in to change notification settings - Fork 53
/
.eslintrc
91 lines (91 loc) · 2.67 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"ignorePatterns": [
"node_modules/",
"dist/",
"esm/",
"stories/",
"build/",
"coverage/",
"public/",
"cypress/",
"storybook-static/"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": ["standard", "plugin:import/errors", "plugin:import/warnings"],
"rules": {
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-unused-expressions": 0,
"no-unused-vars": 0,
"no-undef": 0,
"@typescript-eslint/no-unused-expressions": [2, { "allowTernary": true, "allowShortCircuit": true }],
"@typescript-eslint/no-unused-vars": [2, { "args": "after-used", "argsIgnorePattern": "^_" }],
"react/prop-types": 0,
"react/no-unknown-property": 0,
"handle-callback-err": 0,
"no-unmodified-loop-condition": 0,
"prefer-promise-reject-errors": 0,
"camelcase": 0,
"no-tabs": 0,
"no-useless-escape": 0,
"import/first": 0,
"import/no-duplicates": 1,
"multiline-ternary": "off",
"import/no-unresolved": ["error", { "ignore": ["^react$", "^react-dom$"] }],
"no-throw-literal": 0,
"radix": 0,
"one-var": 0,
"consistent-return": 0,
"max-len": 0,
"indent": 0,
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"no-multiple-empty-lines": 0,
"no-trailing-spaces": 0,
"padded-blocks": 0,
"semi": 1,
"comma-dangle": [
1,
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }]
},
"overrides": [
{
"files": ["**/cypress/**/*.ts", "**/cypress/**/*.tsx"],
"rules": {
"@typescript-eslint/no-unused-expressions": 0
}
}
],
"settings": {
"import/parser": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/ignore": "node_modules",
"import/resolver": {
"typescript": {}
},
"react": {
"version": "16.10.2"
}
}
}