如何为React Native配置Linter?

时间:2018-06-07 07:41:14

标签: react-native eslint linter eslintrc

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

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

配置。

1 个答案:

答案 0 :(得分:1)

在您要使用它的目录中输入

    $query = "INSERT INTO feedetails (subjects,price) VALUES ";
    for ($z=0; $z < count($subject); $z++) {
        $query .= "('" . $subject[$z] . "','".$price."'),";
    }

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

furtehr信息: