-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
66 lines (66 loc) · 1.71 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
module.exports = {
'settings': {
'react': {
'version': 'detect'
}
},
'env': {
'browser': true,
'es2021': true
},
'extends': [
'standard',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:consistent-default-export-name/fixed'
],
'overrides': [
],
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'react'
],
'ignorePatterns': ['*.config.js'],
'rules': {
'max-len': [
'warn',
{
'code': 80,
'ignoreComments': true
}
],
'eqeqeq': 'off',
'semi': ['error', 'never'],
'quotes': ['error', 'single'],
'camelcase': 'warn',
'jsx-quotes': ['error', 'prefer-double'],
'no-unused-vars': [
'warn',
{
'argsIgnorePattern': '^_',
'destructuredArrayIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}
],
'quote-props': ['error', 'consistent'],
'linebreak-style': ['error', 'unix'],
'eol-last': 'off',
'react/prop-types': 'off',
'react/jsx-wrap-multilines': ['error', { return: 'parens-new-line' }],
'react/jsx-indent': [2, 2],
'react/jsx-indent-props': [2, 2],
'react/jsx-boolean-value': ['error', 'never'],
'react/jsx-curly-newline': 'error',
'react/jsx-curly-spacing': 'error',
'react/jsx-equals-spacing': ['error', 'never'],
'react/jsx-no-constructed-context-values': 'error',
'react/jsx-props-no-multi-spaces': 'error',
'react/jsx-tag-spacing': 'error',
'react/jsx-closing-bracket-location': 'error',
'consistent-default-export-name/default-export-match-filename': 'error',
'consistent-default-export-name/default-import-match-filename': 'error'
}
}