-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.js
60 lines (60 loc) · 1.87 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
54
55
56
57
58
59
60
module.exports = {
env: {
commonjs: true,
es6: true,
jest: true,
node: true,
},
extends: [
'eslint:all',
'plugin:@typescript-eslint/all',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:jest/all',
'plugin:node/recommended',
'plugin:promise/recommended',
'standard-with-typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
project: 'tsconfig.eslint.json',
},
plugins: [
'@typescript-eslint',
'import',
'jest',
'node',
'promise',
'standard',
],
root: true,
rules: {
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'@typescript-eslint/indent': ['error', 2],
'@typescript-eslint/no-magic-numbers': ['off'],
'@typescript-eslint/no-shadow': ['off'],
'@typescript-eslint/no-type-alias': ['off'],
'@typescript-eslint/prefer-enum-initializers': ['off'],
'@typescript-eslint/prefer-readonly-parameter-types': ['off'],
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/semi': ['error', 'always'],
'array-bracket-newline': ['error', 'consistent'],
'array-element-newline': ['error', 'consistent'],
'comma-dangle': ['error', 'always-multiline'],
'consistent-return': ['off'],
'func-style': ['off'],
'function-call-argument-newline': ['error', 'consistent'],
'function-paren-newline': ['error', 'consistent'],
'max-len': ['error', 120],
'max-lines-per-function': ['off'],
'max-statements': ['off'],
'multiline-comment-style': ['error', 'separate-lines'],
'multiline-ternary': ['error', 'always-multiline'],
'no-ternary': ['off'],
'node/no-missing-import': ['error', { tryExtensions: ['.ts'] }],
'node/no-unsupported-features/es-syntax': ['error', { ignores: ['modules'] }],
semi: ['error', 'always'],
},
};