-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
44 lines (44 loc) · 1.27 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 = {
env: {
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-base',
'airbnb-typescript/base',
'prettier',
'plugin:node/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.eslint.json'],
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
'no-unused-vars': 'warn',
'no-console': 'off',
'func-names': 'off',
'no-plusplus': 'off',
'no-process-exit': 'off',
'class-methods-use-this': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'import/no-unresolved': 'off',
'node/no-missing-import': [
'error',
{
tryExtensions: ['.ts'],
},
],
'import/extensions': 'off',
'no-param-reassign': ['error', { props: false }],
'import/prefer-default-export': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error', { ignoreTypeValueShadow: true }],
},
};