-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlintconfig.js
60 lines (60 loc) · 1.52 KB
/
lintconfig.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
env: {
es6: true,
browser: true,
},
globals: {},
plugins: ['react', 'react-hooks'],
rules: {
'semi': 2,
'comma-dangle': 0,
'react/jsx-uses-vars': 1,
'no-unused-vars': 1,
'no-undef': 1,
'no-unexpected-multiline': 1,
'no-debugger': 2,
'no-alert': 1,
'no-console': 1,
'no-await-in-loop': 1,
'no-return-assign': ['error', 'except-parens'],
'no-unused-expressions': [
2,
{
allowTaggedTemplates: true,
},
],
'import/prefer-default-export': 0,
'import': 0,
'react/require-default-props': 0,
'quotes': [
2,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
'eqeqeq': 1,
},
settings: {
'import/resolver': 'webpack',
'react': {
createClass: 'createReactClass',
pragma: 'React',
fragment: 'Fragment',
version: 'detect',
flowVersion: '0.53',
},
'propWrapperFunctions': [
'forbidExtraProps',
{ property: 'freeze', object: 'Object' },
{ property: 'myFavoriteWrapper' },
],
'linkComponents': ['Hyperlink', { name: 'Link', linkAttribute: 'to' }],
},
};