-
Notifications
You must be signed in to change notification settings - Fork 68
/
.eslintrc.js
36 lines (35 loc) · 799 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
33
34
35
36
module.exports = {
root: true,
parserOptions: {
// ecmaVersion: 2017,
sourceType: 'module',
// project: "./tsconfig.json",
tsconfigRootDir: __dirname,
project: ['./test.tsconfig.json'],
},
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
// 'eslint:recommended',
// 'plugin:@typescript-eslint/eslint-recommended',
// 'plugin:@typescript-eslint/recommended',
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
],
env: {
browser: true,
node: true,
es6: true,
},
// plugins: [
// "promise"
// ],
rules: {
"@typescript-eslint/no-floating-promises": "error",
// "await-promise": 2,
// "no-debugger": 0,
// "no-console": 0,
// "no-mixed-spaces-and-tabs": 0,
}
};