-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
26 lines (26 loc) · 867 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
createDefaultProgram: true,
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier/@typescript-eslint',
'plugin:prettier/recommended' // Make sure this is always the last configuration in the extends array.
],
rules: {
'no-eval': 2,
'@typescript-eslint/no-shadow': 2,
//ignored
'no-shadow': 0,
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/restrict-template-expressions': 0
}
};