-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
48 lines (48 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
env: {
es2021: true,
node: true,
},
extends: ['airbnb-base', 'prettier', 'plugin:import/typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier'],
ignorePatterns: ['node_modules/', 'dist/'],
rules: {
'prettier/prettier': [
1,
{
trailingComma: 'es5',
singleQuote: true,
semi: true,
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'no-console': 0,
'import/no-cycle': 0,
'import/prefer-default-export': 0,
'import/no-named-as-default': 0,
'class-methods-use-this': 0,
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
},
],
'import/no-extraneous-dependencies': 0,
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-await-in-loop': 'off',
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};