forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
50 lines (43 loc) · 829 Bytes
/
.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
env:
es6: true
browser: true
node: true
rules:
# Errors
comma-dangle: [2, always-multiline]
no-var: 2
eqeqeq: [2, allow-null]
eol-last: 2
yoda: 2
no-unused-expressions: 2
dot-notation: 2
dot-location: [2, property]
no-undef: 2
comma-spacing: 2
jsx-quotes: [2, prefer-double]
# Disabled
key-spacing: 0
no-underscore-dangle: 0
no-shadow: 0
no-shadow-restricted-names: 0
no-extend-native: 0
curly: 0
new-cap: 0
quotes: 0
semi-spacing: 0
space-unary-ops: 0
space-infix-ops: 0
consistent-return: 0
strict: 0
# React
react/jsx-curly-spacing: 2
react/jsx-max-props-per-line: [2, {maximum: 4}]
react/jsx-no-duplicate-props: 2
react/jsx-no-undef: 2
# React disabled
react/jsx-boolean-value: 0
parser: babel-eslint
plugins:
- react
ecmaFeatures:
jsx: true