-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
49 lines (48 loc) · 1.33 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true
},
env: {
node: true,
es6: true
},
globals: {
node: true,
gulp: true,
$: true,
server: true,
through2: true,
PluginError: true,
NOOP: true,
BalmJS: true,
requireModule: true
},
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier'
],
rules: {
'prettier/prettier': 'error',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-empty-function': [2, { allow: ['arrowFunctions'] }],
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/no-floating-promises': 0
}
};