[英]How to config Linter for React Native?
I made a React Native App (made by create-react-native-app). 我做了一个React Native App(由create-react-native-app制造)。 I installed the eslint linter, but I got no idea how can I config it? 我安装了eslint linter,但不知道如何配置它? ( https://www.npmjs.com/package/eslint-plugin-react-native ) I don't have the slightest idea where to put the: ( https://www.npmjs.com/package/eslint-plugin-react-native )我不知道该放在哪里:
{
"plugins": [
"react",
"react-native"
]
}
config. 配置。
type in your directory where you want to use it 在您要使用的目录中键入
eslint --init
After running eslint --init, you'll have a .eslintrc file in your directory. 运行eslint --init之后,您的目录中将有一个.eslintrc文件。 there can you config whatever u want 您可以在那里配置任何您想要的
furtehr information on: 进一步的信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.