-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
35 lines (35 loc) · 1.11 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:react/recommended',
'airbnb-base',
'airbnb/rules/react',
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true
}
},
env: {
browser: true,
es6: true,
node: true
},
rules: {
"no-console": 0,
"no-unused-vars": 0,
"no-plusplus": [2, { allowForLoopAfterthoughts: true }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-param-reassign": 0,
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "minProperties": 5, "consistent": true},
"ObjectPattern": { "multiline": true, "minProperties": 5, "consistent": true},
"ImportDeclaration": { "multiline": true, "minProperties": 5, "consistent": true},
"ExportDeclaration": { "multiline": true, "minProperties": 5, "consistent": true}
}]
}
};