forked from oacore/about
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
45 lines (40 loc) · 918 Bytes
/
.eslintrc.yml
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
extends:
- airbnb
- prettier
- prettier/react
env:
browser: true
parser: babel-eslint
parserOptions:
ecmaVersion: 2018
plugins:
- prettier
rules:
curly: [error, multi-or-nest]
eqeqeq: [error, smart]
no-plusplus: [error, { allowForLoopAfterthoughts: true }]
no-param-reassign: [error, { props: false }]
max-len: [error, {
code: 80,
tabWidth: 2,
ignoreComments: false,
ignoreTrailingComments: false,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
}]
new-parens: off
prettier/prettier: error
react/destructuring-assignment: off
react/prop-types: [error, {
skipUndeclared: true,
ignore: [class, className, id, children, tag],
}]
settings:
import/resolver:
alias:
map:
- ['components', './components']
- ['data', './data']
extensions: ['.js', '.jsx', '.json']