-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
54 lines (53 loc) · 1.24 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
/**@type {import('eslint').Linter.Config} */
// eslint-disable-next-line no-undef
module.exports = {
root: true,
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsonc/base',
'plugin:jsonc/recommended-with-json'
],
overrides: [
{
files: ['*.json', '*.json5', '*.jsonc'],
excludedFiles: ['package-lock.json', 'package.json'],
parser: 'jsonc-eslint-parser',
rules: {
'jsonc/array-bracket-newline': ['warn',
{
'multiline': true,
'minItems': 10
}
]
}
},
{
files: ['*.ts', '*.js'],
parser: '@typescript-eslint/parser',
rules: {
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/semi': ['warn', 'always'],
'@typescript-eslint/quotes': ['warn', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
'@typescript-eslint/indent': [
'warn',
'tab',
{
'SwitchCase': 1,
'ignoredNodes': [
'ConditionalExpression',
'PropertyDefinition[decorators]',
'TSUnionType'
]
}
],
}
}
],
};