-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
77 lines (76 loc) · 1.67 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
'use strict';
module.exports = {
env: {
browser: true,
node: true,
es6: true
},
plugins: ['react', 'prettier'],
globals: {
location: true
},
overrides: [
{
files: ['bin/*.js', 'lib/*.js'],
excludedFiles: '*.test.js',
rules: {
quotes: ['error', 'single']
}
}
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
modules: true
}
},
extends: ['airbnb-base', 'prettier', 'prettier/react'],
globals: {
React: 'writable'
},
rules: {
'no-underscore-dangle': 1,
'prefer-destructuring': 1,
'arrow-body-style': 0,
'import/no-extraneous-dependencies': 0,
'import/extensions': 0,
'prefer-const': 0,
'no-unused-expressions': [
1,
{
allowShortCircuit: true
}
],
'no-empty': [
2,
{
allowEmptyCatch: true
}
],
'default-case': 0,
'no-case-declarations': 0,
'class-methods-use-this': 0,
'no-script-url': 0,
semi: 0,
'eol-last': 0,
'no-unused-vars': 1,
'global-require': 0,
'react/jsx-uses-react': 2,
'react/jsx-uses-vars': 2,
'import/no-unresolved': 0,
'no-unneeded-ternary': 1,
'no-nested-ternary': 1,
'max-len': [2, 150],
'no-return-assign': 0,
'dot-notation': 1,
'func-names': 1,
'no-useless-constructor': 0,
'no-plusplus': 0,
'no-param-reassign': 0, // Disallow Reassignment of Function Parameters
'no-multi-assign': 0, // Disallow Use of Chained Assignment Expressions
'consistent-return': 0 // require return statements to either always or never specify values
}
};