-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.js
43 lines (43 loc) · 1.17 KB
/
.eslintrc.js
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
module.exports = {
'extends': 'airbnb',
'env': {
'browser': true,
'commonjs': true,
'es6': true
},
'installedESLint': true,
'parserOptions': {
'ecmaFeatures': {
'experimentalObjectRestSpread': true,
'jsx': true
},
'sourceType': 'module'
},
'plugins': [
'react'
],
'parser': 'babel-eslint',
'rules': {
'strict': 0,
'indent': [0],
'linebreak-style': [2, 'unix'],
'quotes': [2, 'single'],
'semi': [0],
'react/jsx-indent': [2, 4],
'react/jsx-indent-props': [2, 4],
'max-len': [2, 121],
'no-console': [2, {
"allow": ["warn", "error"]
}],
"func-names": 0,
"react/jsx-closing-bracket-location": [1, {
"nonEmpty": "props-aligned", // Align the bracket with the last prop
"selfClosing": "props-aligned" // Align the bracket with the opening tag
}],
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"no-prototype-builtins": 0,
"jsx-a11y/no-static-element-interactions": 0,
}
};