-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
41 lines (41 loc) · 1.55 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier',
],
plugins: ['redos-detector'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.test.json'],
},
rules: {
'no-console': ['error'],
'no-shadow': ['error', { builtinGlobals: true }],
'sort-imports': ['error', { ignoreCase: true }],
'sort-keys': ['error'],
'sort-vars': ['error'],
'prefer-const': ['error'],
'no-var': ['error'],
'no-use-before-define': ['error'],
'no-warning-comments': ['error'],
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/no-unsafe-assignment': ['error'],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/explicit-function-return-type': ['error'],
'@typescript-eslint/naming-convention': ['error'],
'@typescript-eslint/no-explicit-any': ['error'],
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error'],
'@typescript-eslint/no-unnecessary-condition': ['error'],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
'@typescript-eslint/no-loss-of-precision': ['error'],
'@typescript-eslint/no-throw-literal': ['error'],
'@typescript-eslint/no-unused-expressions': ['error'],
'redos-detector/no-unsafe-regex': ['error'],
},
};