This repository has been archived by the owner on Jun 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
/
.eslintrc.json
65 lines (65 loc) · 1.62 KB
/
.eslintrc.json
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
{
"extends": [
"recommended/node",
"plugin:prettier/recommended",
"plugin:import/react"
],
"rules": {
"comma-dangle": ["warn", "only-multiline"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"camelcase": "off",
"object-shorthand": "off",
"guard-for-in": "warn",
"arrow-body-style": "off",
"consistent-return": "warn",
"no-throw-literal": "warn",
"quote-props": "off",
"new-cap": "off",
"default-case": "off",
"no-empty": "warn",
"curly": "off",
"padded-blocks": "off",
"no-use-before-define": "warn",
"no-param-reassign": ["error", { "props": false }],
"max-len": "off",
"no-underscore-dangle": "off",
"strict": "off",
"global-require": "off",
"no-restricted-syntax": "off",
"no-multi-spaces": "off",
"spaced-comment": "off",
"no-trailing-spaces": "off",
"key-spacing": "off",
"func-names": "off",
"no-empty-function": "off",
"no-console": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-commonjs": "off",
"import/no-nodejs-modules": "off",
"no-sync": "off",
"eqeqeq": "off",
"require-yield": "off",
"class-methods-use-this": "off",
"prettier/prettier": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"env": {
"jest": true,
"browser": true,
"jquery": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx"]
}
}
},
"plugins": ["react", "prettier"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
}