[英]Eslint - File ignored because of a matching ignore pattern
when I run eslint package/**/*.ts **/*.ts
当我运行
eslint package/**/*.ts **/*.ts
get this warning:得到这个警告:
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
/home/njfamirm/One/package/util/index.d.ts
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
/home/njfamirm/One/package/util/persian-number.d.ts
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to override
My guess is that *.ts
include *.d.ts
file because I'm ignore *.d.ts
format in.eslintignore我的猜测是
*.ts
包含*.d.ts
文件,因为我忽略*.d.ts
格式 in.eslintignore
.eslintignore .eslintignore
*.js
*.mjs
*.map
*.d.ts
node_modules/
ts-lint.json ts-lint.json
{
"compilerOptions": {
"incremental": true,
"target": "ESNEXT",
"module": "ESNEXT",
"lib": ["ESNEXT", "DOM", "DOM.Iterable"],
"declaration": true,
"composite": true,
"importHelpers": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": ["demo/**/*.ts", "package/**/*.ts"],
"exclude": [],
"compileOnSave": false
}
Thanks in advance提前致谢
Please Test This请测试这个
{
"compilerOptions": {
"incremental": true,
"target": "ESNEXT",
"module": "ESNEXT",
"lib": ["ESNEXT", "DOM", "DOM.Iterable"],
"declaration": true,
"composite": true,
"importHelpers": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": ["demo/**/*.ts", "package/**/*.ts"],
"exclude": [
"**/*.d.ts",
"node_modules"
],
"compileOnSave": false
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.