forked from Yuvaleros/material-ui-dropzone
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
95 lines (95 loc) · 2.7 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
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
92
93
94
95
{
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"React": true
},
"settings": {
"react": {
"version": "15.0"
}
},
"plugins": [
"babel",
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-parens": "error",
"arrow-spacing": "error",
"brace-style": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-return": "off",
"consistent-this": ["error", "self"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"generator-star-spacing": "error",
"id-blacklist": ["error", "e"],
"indent": ["error", 4, {"SwitchCase": 1}],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": "error",
"keyword-spacing": "error",
"max-len": ["error", 120, 4, {"ignoreComments": true}],
"new-cap": ["off", {"capIsNew": true, "newIsCap": true}],
"no-await-in-loop": "error",
"no-case-declarations": "off",
"no-cond-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-pattern": "error",
"no-extra-boolean-cast": "error",
"no-extra-semi": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-shadow": "off",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-underscore-dangle": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"one-var": ["error", "never"],
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "off",
"prefer-const": "error",
"quotes": ["error", "single", "avoid-escape"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": "error",
"strict": "off",
"yoda": "error",
"babel/new-cap": "off",
"babel/object-shorthand": "off"
}
}