-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
70 lines (69 loc) · 1.48 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
const config = {
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
sourceType: 'module',
},
env: {
browser: true,
node: true,
jest: true,
jasmine: true,
es6: true,
},
plugins: ['react'],
rules: {
'array-callback-return': 2,
'comma-dangle': 0,
'eol-last': 2,
indent: [2, 'tab'],
'jsx-quotes': [1, 'prefer-single'],
'no-console': 0,
'no-empty-pattern': 2,
'no-lone-blocks': 2,
'no-lonely-if': 2,
'no-multi-spaces': 2,
'no-negated-condition': 2,
'no-trailing-spaces': 2,
'no-unused-vars': [2, { args: 'none' }],
'no-use-before-define': 2,
'no-useless-call': 2,
'no-useless-concat': 2,
'no-useless-escape': 2,
'no-var': 2,
'no-whitespace-before-property': 2,
'prefer-const': 2,
'prefer-template': 2,
'quote-props': [2, 'as-needed'],
'require-jsdoc': [
2,
{
require: {
FunctionDeclaration: false,
ClassDeclaration: true,
},
},
],
'react/jsx-no-undef': 0,
'react/jsx-uses-react': 1,
'react/jsx-uses-vars': 1,
'react/no-deprecated': 2,
'react/no-string-refs': 1,
'react/react-in-jsx-scope': 2,
'react/jsx-wrap-multilines': 2,
'react/jsx-boolean-value': 2,
'react/jsx-equals-spacing': [2, 'never'],
'react/jsx-no-duplicate-props': 2,
'react/jsx-pascal-case': 2,
'react/jsx-uses-react': 2,
semi: 2,
'space-in-parens': [2, 'never'],
'spaced-comment': [2, 'always'],
strict: 0,
},
};
module.exports = config;