forked from opentiny/tiny-engine-webservice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (35 loc) · 1003 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 = {
parserOptions: {
// recommend to use another config file like tsconfig.eslint.json and extends tsconfig.json in it.
// because you may be need to lint test/**/*.test.ts but no need to emit to js.
project: './tsconfig.eslint.json'
},
rules: {
'@typescript-eslint/no-empty-interface': [
'error',
{
'allowSingleExtends': true
}
],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/comma-spacing': [
'error', { before: false, after: true }
],
'arrow-spacing': [
'error', { before: true, after: true }
],
'@typescript-eslint/keyword-spacing': 'warn',
'@typescript-eslint/space-infix-ops': 'warn',
'@typescript-eslint/type-annotation-spacing': 'warn',
"@typescript-eslint/semi": "warn",
"max-len": [
"error",
{
"code": 160,
"comments": 160,
"tabWidth": 2
},
],
}
};