【问题标题】:Rule space before class variables for prettier更漂亮的类变量之前的规则空间
【发布时间】:2021-06-09 03:41:42
【问题描述】:

我应该使用哪些规则在使用 prettier 的类变量之前添加额外的空间?

当前状态:

export class TestClassName {
    foo: number;

预期状态:

export class TestClassName {
    
    foo: number;

【问题讨论】:

    标签: prettier


    【解决方案1】:

    Prettier 没有“规则”。规则是 ESLint 的东西。您可能混淆了这两个工具。 Prettier 是一个固执己见的格式化程序。它不允许自定义这样的小事。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-22
      • 2019-04-02
      • 2020-11-26
      • 1970-01-01
      • 2017-05-06
      • 2017-03-13
      相关资源
      最近更新 更多