-
Notifications
You must be signed in to change notification settings - Fork 20
/
.eslintrc.js
44 lines (44 loc) · 1.38 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
42
43
44
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react'],
rules: {
curly: 'error',
eqeqeq: 'error',
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-multiple-empty-lines': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'import/order': ['error', { alphabetize: { order: 'asc' } }],
'react-hooks/exhaustive-deps': 'error',
'react/jsx-no-target-blank': ['error', { allowReferrer: true }],
},
settings: {
react: { version: 'detect' },
},
ignorePatterns: [
'config/**/*.js',
'config/**/*.mjs',
'scripts/*.js',
'test/env.js',
'.eslintrc.js',
'.prettierrc.js',
'craco.config.js',
],
};