-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
executable file
·53 lines (51 loc) · 1.33 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
49
50
51
52
53
module.exports = {
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:node/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
],
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
env: {
node: true,
},
settings: {
node: {
tryExtensions: ['.ts', '.js', '.json', '.node'],
},
},
ignorePatterns: ['package.json', 'package-lock.json'],
rules: {
'no-dupe-class-members': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'default',
format: ['camelCase', 'snake_case', 'UPPER_CASE'],
leadingUnderscore: 'allow',
},
{
selector: 'memberLike',
format: ['camelCase', 'snake_case', 'PascalCase'],
leadingUnderscore: 'allow',
},
{
selector: 'typeLike',
format: ['PascalCase'],
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'node/no-missing-import': 'error',
'node/no-unsupported-features/es-syntax': 'off',
'node/no-unpublished-import': 'off',
'node/shebang': 'off',
},
};