【问题标题】:ESlint Airbnb Config Complains about QuotesESlint Airbnb Config 抱怨报价
【发布时间】:2016-07-02 19:39:50
【问题描述】:

我正在使用 Airbnb 的 linting 规则,其中特别包含以下内容:

"react/jsx-quotes": 1,

所有其他规则似乎都按预期运行。然而,当我对'use strict;' 使用单引号时,我会看到一个警告标志:

(这是整个 eslint 文件的 link)。

这可能有什么问题?

【问题讨论】:

    标签: ecmascript-6 atom-editor eslint


    【解决方案1】:

    react/jsx-quotes 规则于 2015 年 9 月被弃用。最初它在 airbnb 项目中,但是作为 jsx-quotes 的重要 linting 规则被转移到主 eslint 项目中;并且 airbnb 在其后续版本中删除了 react/jsx-quotes 规则。

    https://github.com/eslint/eslint/blob/master/docs/rules/jsx-quotes.md

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-02-02
      • 2021-01-16
      • 2023-03-18
      • 1970-01-01
      • 2017-10-04
      • 2017-01-22
      • 1970-01-01
      • 2021-02-28
      相关资源
      最近更新 更多