-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (31 loc) · 1.06 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
module.exports = {
extends: ['react-app', 'plugin:react/recommended'],
plugins: ['simple-import-sort', 'sort-destructure-keys', 'sort-keys-fix'],
rules: {
'no-console': ['warn', { allow: ['warn', 'error', 'debug'] }],
quotes: ['error', 'single'],
'react/display-name': 'off',
'react/jsx-closing-bracket-location': [2, 'tag-aligned'],
'react/jsx-first-prop-new-line': [2, 'multiline'],
'react/jsx-indent-props': [2, 2],
'react/jsx-max-props-per-line': [2, { maximum: 1, when: 'multiline' }],
'react/jsx-pascal-case': 'off',
'react/jsx-sort-props': [
1,
{
callbacksLast: true,
ignoreCase: true,
noSortAlphabetically: false,
reservedFirst: ['key', 'ref'],
shorthandFirst: true,
},
],
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'sort-destructure-keys/sort-destructure-keys': 2,
'sort-keys-fix/sort-keys-fix': 'warn',
},
}