-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (32 loc) · 875 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
32
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true
}
},
extends: 'airbnb',
env: {
node: true,
browser: true,
jest: true
},
settings: {
'import/resolver': {
node: {
paths: ['src', 'node_modules']
}
}
},
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'function-paren-newline': ['error', 'multiline'],
'comma-dangle': ['error', 'never'],
'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
'jsx-a11y/media-has-caption': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/stories/*.js'] }]
}
};