-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
31 lines (29 loc) · 912 Bytes
/
.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
module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: true,
ecmaVersion: 6,
},
env: {
browser: true,
},
rules: {
// FORMATTING
indent: ['error', 4, {
SwitchCase: 1, // case should be more indented than switch
}],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'object-curly-spacing': ['error', 'never'],
'object-curly-newline': ['error', {multiline: true, consistent: true}],
'curly': ['error', 'all'],
'max-len': ['error', 140],
// REACT
'react/jsx-filename-extension': ['error', {extensions: ['.js']}],
'react/jsx-props-no-spreading': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-else-return': 'off',
},
};