-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.json
More file actions
26 lines (26 loc) · 850 Bytes
/
.eslintrc.json
File metadata and controls
26 lines (26 loc) · 850 Bytes
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": ["error", "multi-line", "consistent"],
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
// 禁止使用 \ 串联多行字符串
"no-multi-str": "error",
// 推荐使用字符串模板连接字符串
"prefer-template": "warn",
// 模板字符串中的花括号内不使用空格
"template-curly-spacing": "error",
// 禁用不必要的转义
"no-useless-escape": "error"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}