UNPKG
eslint-config-mlt
Version:
beta (1.0.0)
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.5-patch.1
1.0.4
1.0.3
1.0.3-0
1.0.2
1.0.0
0.1.0
MLT ESLint 规则
hulu.voc.mlamp.cn/kaleidoscope/eslint-config-mlt
eslint-config-mlt
/
test
/
typescript
/
triple-slash-reference
/
.eslintrc.js
10 lines
(9 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.
exports
= { rules: {
/** * 禁止使用三斜杠导入文件 *
@reason
三斜杠是已废弃的语法,但在类型声明文件中还是可以使用的 */
'@typescript-eslint/triple-slash-reference'
: [
'error'
, { path:
'never'
, types:
'always'
, lib:
'always'
}], }, };