This repository has been archived by the owner on Nov 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
80 lines (80 loc) · 2.14 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
78
79
80
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
createjs: false,
TimelineMax: false,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
'array-bracket-newline': 'warn',
'array-bracket-spacing': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'import/extensions': [{ js: 'always', json: 'never' }],
'no-plusplus': 'off',
'object-curly-newline': 'warn',
'class-methods-use-this': 'off',
'no-unused-expressions': 'off',
'no-use-before-define': 'error',
'object-shorthand': 'error',
'no-multi-spaces': 'warn',
'arrow-spacing': ['error', { before: true, after: true }],
'space-in-parens': 'warn',
'consistent-return': 'off',
'no-mixed-operators': 'warn',
'no-bitwise': 'warn',
'no-multiple-empty-lines': 'warn',
'no-new': 'warn',
'no-eval': 'warn',
'no-lone-blocks': 'off',
'no-return-assign': 'warn',
'no-duplicate-case': 'error',
'class-methods-use-this': 'off',
'import/prefer-default-export': 'off',
'prefer-rest-params': 'warn',
'react/no-string-refs': 'off',
'react/require-default-props': 'off',
'react/no-deprecated': 'off',
'react/prefer-stateless-function': 'warn',
'react/jsx-filename-extension': 'off',
'react/forbid-prop-types': 'off',
'react/no-unused-prop-types': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-restricted-properties': ['off', {
object: 'Math',
property: 'pow',
}],
'no-continue': 'warn',
'max-len': 'warn',
'no-param-reassign': 'off',
'new-cap': 'warn',
'quote-props': 'off',
'no-use-before-define': 'warn',
'object-curly-newline': 'warn',
'no-multi-spaces': 'warn',
'arrow-spacing': ['error', {
before: true,
after: true,
}],
'space-in-parens': 'warn',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/forbid-prop-types': 'off',
},
};