-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (35 loc) · 1.05 KB
/
.eslintrc.cjs
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
module.exports = {
extends: [
'react-app',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: { modules: true },
ecmaVersion: 6,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier', 'simple-import-sort'],
root: true,
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': ['error', { multiline: { delimiter: 'none' } }],
complexity: ['warn', 10],
eqeqeq: 'error',
'linebreak-style': ['error', 'unix'],
'no-console': 'error',
'no-else-return': 'error',
'no-empty': 'error',
'no-shadow': 'error',
'prefer-destructuring': 'error',
'prefer-template': 'error',
'prettier/prettier': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
},
}