-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (48 loc) · 1.23 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
45
46
47
48
module.exports = {
root: true,
extends: [
'plugin:jest-formatting/strict',
'plugin:jest/recommended',
'plugin:jest/style',
'airbnb-base',
'airbnb-typescript/base',
'plugin:prettier/recommended',
],
plugins: ['jest', 'jest-formatting', 'prettier'],
env: {
node: true,
es2020: true,
jest: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
settings: {
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
},
},
reportUnusedDisableDirectives: true,
rules: {
'max-len': ['error', { code: 120 }],
'max-classes-per-file': 'off',
'import/prefer-default-export': 'off',
curly: 'error',
'no-continue': 'off',
'no-console': 'error',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type', 'unknown'],
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-use-before-define': ['error', { variables: false }],
'no-restricted-syntax': 'off',
'@typescript-eslint/no-loop-func': 'off',
},
};