tslint排除不适用于tsoa路线

时间:2018-10-04 04:39:50

标签: node.js typescript eslint tslint

我想从tslint编译器选项中排除由tsoa路由创建的routes.ts文件。我尝试了排除选项,仍然没有成功。 排除选项适用于剩余文件,仅面临由tsoa路由生成的route.ts的问题。

这是我的tsconfig json

{ "compilerOptions": { "target": "ES6", "module": "commonjs", "moduleResolution": "node", "outDir": "outputdir/mysrc", "rootDir": "mysrc", "noUnusedParameters": true, "noUnusedLocals": false }, "filesglob": [ "typings", "mysrc/**/*.ts" ], "exclude": [ "node_modules", "typings", "outputdir", "mysrc/routes/routes.ts", "mysrc/helpers/temp.ts" ], "compileOnSave": false }

1 个答案:

答案 0 :(得分:0)

您在错误的配置文件中有MultiTapGestureRecognizer tapper = MultiTapGestureRecognizer(); PanGestureRecognizer panGesture = PanGestureRecognizer(); panGesture.onEnd = game.onPanEnd; panGesture.onUpdate = game.onPanUpdate; panGesture.onStart = game.onPanStart; panGesture.onCancel = game.onPanCancel; tapper.onTapDown = game.onTapDown; tapper.onTapUp = game.onTapUp; tapper.onTapCancel = game.onTapCancel; flameUtil.addGestureRecognizer(tapper); flameUtil.addGestureRecognizer(panGesture); 。您不希望在mysrc/routes/routes.ts中那样,而在tsconfig.json中这样,

tslint.json

您可以在此处了解更多信息:https://palantir.github.io/tslint/usage/configuration/