forked from Giphy/giphy-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (74 loc) · 2.22 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
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
},
"useJSXTextNode": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": ["standard", "plugin:import/errors", "plugin:import/warnings"],
"rules": {
"no-unused-expressions": 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,
"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" }]
},
"settings": {
"import/parser": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/ignore": "node_modules",
"import/resolver": {
"typescript": {}
},
"react": {
"version": "16.10.2"
}
}
}