-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (45 loc) · 1.12 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
44
45
46
const path = require('path')
module.exports = {
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:promise/recommended',
'plugin:import/recommended',
'standard',
],
env: {
browser: true,
node: true,
},
rules: {
'no-console': 'off',
'react/display-name': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-confusing-arrow': 'off',
'import/unambiguous': 'off',
semi: ['error', 'never'],
'import/newline-after-import': 'error',
'import/no-unresolved': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'no-return-assign': 'off',
'react/prop-types': 'off',
'arrow-parens': ['error', 'always'],
'space-before-function-paren': [
'error',
{ anonymous: 'always', named: 'never', asyncArrow: 'always' },
],
},
plugins: ['standard', 'import', 'promise', 'react'],
settings: {
'import/resolver': {
webpack: {
config: path.resolve('webpack.config.js'),
},
},
},
}