是否可以从webstorm中的Settings => Editor => Code Style => Typescript
文件导入格式设置(tslint.json
)?我在"node_modules/codelyzer"
文件中使用规则目录tslint.json
自2017年WebStorm版本以来,可以应用代码样式。
只需打开tslint.json,WebStorm就会询问是否可以导入它。
在WebStorm 2017.1 EAP, 171.2455: improved integration with TSLint中阅读它
目前还不可能。您可以投票并关注此功能请求的更新:https://youtrack.jetbrains.com/issue/WEB-19481
自2018年起,您可以手动应用TsLint设置:
tslint.json
文件(也可以是tslint.yaml
)事件日志应更新为:
TSLint: The project code style and editor settings were updated based on 'tslint.json'.
更多来自JetBrains(附图片):WebStorm Help | Importing code style from a TSLint configuration file