-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 886 Bytes
/
.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
module.exports = {
extends: [
'react-app',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
settings: {
react: {
version: 'detect',
},
},
rules: {
'no-console': 'error',
'import/export': 'off',
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/consistent-type-imports': 'off',
quotes: ['error', 'double'],
semi: ['error', 'always'],
'comma-dangle': ['error', 'only-multiline'],
'max-lines-per-function': ['error', { max: 120 }],
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 3 }],
'import/order': [
'error',
{
'newlines-between': 'always',
groups: ['builtin', 'external', 'internal', 'sibling', 'unknown'],
},
],
},
};