【发布时间】:2016-10-21 00:08:44
【问题描述】:
是否可以在 webstorm 中从我的 tslint.json 文件中导入格式设置 (Settings => Editor => Code Style => Typescript)?我在tslint.json 文件中使用规则目录"node_modules/codelyzer"
【问题讨论】:
是否可以在 webstorm 中从我的 tslint.json 文件中导入格式设置 (Settings => Editor => Code Style => Typescript)?我在tslint.json 文件中使用规则目录"node_modules/codelyzer"
【问题讨论】:
从 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
【讨论】: