forked from kiennt23/react-recaptcha-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
111 lines (110 loc) · 2.51 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module.exports = {
'parser': 'babel-eslint',
'extends': [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
'plugin:react-perf/recommended',
'standard',
'standard-react',
'plugin:jsx-a11y/recommended'
],
'plugins': [
'dependencies',
'babel',
'import',
'filenames',
'jsx-a11y',
'html',
'ascii',
'promise',
'promiseparams',
'react',
'optimize-regex',
'react-perf',
'standard',
'no-inferred-method-name',
'react-functional-set-state'
],
'env': {
'browser': true,
'es6': true
},
'globals': {
'__DEV__': false,
'__PROD__': false,
'__PLAYER_DEBUG__': false,
'__BASENAME__': false
},
'settings': {
'ecmascript': 6,
'import/resolver': 'webpack'
},
'rules': {
'ascii/valid-name': 2,
'optimize-regex/optimize-regex': 'warn',
'promiseparams/promiseparams': 2,
'filenames/no-index': 0,
'filenames/match-regex': [2, '^[a-z0-9-.]+$', true],
'filenames/match-exported': [2, ['camel', 'kebab', null]],
'template-curly-spacing': ["error", "never"],
indent: ["error", 2],
'comma-dangle': [
'error',
{
objects: 'only-multiline',
arrays: 'only-multiline',
imports: 'never',
exports: 'never',
functions: 'never',
},
],
'dependencies/case-sensitive': 1,
'dependencies/no-cycles': 1,
'dependencies/no-unresolved': 1,
'dependencies/require-json-ext': 1,
'react-functional-set-state/no-this-state-props': 2,
'no-void': 2,
'no-restricted-globals': 2,
'no-use-before-define': 2,
'func-names': 1,
'no-unused-vars': 2,
'guard-for-in': 2,
'no-restricted-syntax': 2,
'jsx-a11y/label-has-for': 'off',
'no-console': 'off',
// 'react/no-typos': 'off',
'max-len': 'off',
'no-nested-ternary': 'off',
'camelcase': [
2,
{
'properties': 'never'
}
],
'react-redux/prefer-separate-component-file': 'off',
'react/destructuring-assignment': 'off',
'babel/no-invalid-this': 1,
'babel/semi': 0,
'spaced-comment': 0,
'brace-style': 0,
'no-trailing-spaces': 0,
'import/default': 2,
'import/no-unresolved': [
2,
{
'commonjs': true,
'amd': true
}
],
'import/named': 2,
'import/namespace': 2,
'import/export': 2,
'import/no-duplicates': 2,
'import/imports-first': 2
},
'parserOptions': {
'sourceType': 'module'
}
}