-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint-config-linter.js
45 lines (45 loc) · 1.09 KB
/
eslint-config-linter.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
module.exports = {
rules: {
'eol-last': ['error', 'always'],
semi: [2, 'never'],
'comma-dangle': ['error', 'only-multiline'],
'jsx-quotes': ['error', 'prefer-single'],
quotes: ['error', 'single', { avoidEscape: true }],
'no-trailing-spaces': 'error',
'react/react-in-jsx-scope': 'off',
'no-unused-vars': 0,
'react/jsx-curly-brace-presence': [2, 'never'],
'react/jsx-sort-props': [
2,
{
callbacksLast: true,
shorthandFirst: true,
noSortAlphabetically: false,
reservedFirst: ['key'],
},
],
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal'],
pathGroups: [
{
pattern: 'react',
group: 'external',
position: 'before',
},
{
pattern: 'src/**',
group: 'internal',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['react'],
alphabetize: {
order: 'asc',
caseInsensitive: false,
},
},
],
},
}