-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.22 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
module.exports = {
extends: ['plugin:react/recommended', 'plugin:import/recommended', 'prettier', 'prettier/react'],
plugins: ['react', 'prettier', 'import'],
rules: {
eqeqeq: ['error', 'always'],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1 }],
'quote-props': ['error', 'as-needed'],
radix: 'error',
'unused-vars': 'warn',
'arrow-parens': ['off', 'always'],
'space-before-function-paren': ['error', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
'space-in-parens': ['off', 'never'],
'react/no-unescaped-entities': 'off',
'react-hooks/exhaustive-deps': 'off',
'react/jsx-curly-spacing': [
'warn',
{
attributes: { when: 'never' },
children: { when: 'never' },
allowMultiline: true,
},
],
'import/order': [
'warn',
{
groups: ['builtin', 'external', 'internal'],
pathGroups: [
{
pattern: 'react',
group: 'external',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['react'],
'newlines-between': 'always',
},
],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
},
};