-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 961 Bytes
/
.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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [ '@typescript-eslint' ],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json'
},
rules: {
'quotes': [ 'error', 'single' ],
'eqeqeq': [ 'error', 'always' ],
'no-var': 'error',
'semi': [ 'error', 'always' ],
'semi-style': [ 'error', 'last' ],
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': [ 'warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
} ],
'@typescript-eslint/strict-boolean-expressions': [ 'error', {
allowString: false,
allowNumber: false,
allowNullableObject: false
} ]
}
};