【问题标题】:How to config Linter for React Native?如何为 React Native 配置 Linter?
【发布时间】:2018-11-17 00:47:47
【问题描述】:

我制作了一个 React Native App(由 create-react-native-app 制作)。 我安装了 eslint linter,但我不知道如何配置它? (https://www.npmjs.com/package/eslint-plugin-react-native) 我完全不知道该放在哪里:

{
  "plugins": [
    "react",
    "react-native"
  ]
}

配置。

【问题讨论】:

    标签: react-native eslint linter eslintrc


    【解决方案1】:

    输入你想要使用它的目录

      eslint --init
    

    运行 eslint --init 后,您的目录中将有一个 .eslintrc 文件。 你可以配置任何你想要的

    更多信息:

    【讨论】:

    • 我的荣幸 :) 玩得开心^^
    • 如果我能帮助您解决问题,请标记为答案
    猜你喜欢
    • 1970-01-01
    • 2020-02-20
    • 1970-01-01
    • 2019-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多