在我最初的 React 应用程序中(由react-native init project_name
)。在我的项目文件夹中,我通过yarn add eslint --dev
. 然后我通过./node_modules/.bin/eslint --init
(使用Airbnb
样式指南、使用React
和JSON
配置文件格式)初始化我的配置。安装的 eslint 在./node_modules/.bin
文件夹中消失了。
初始化前:
ls ./node_modules/.bin
acorn eslint jest-runtime node-pre-gyp semver
atob esparse js-yaml nopt sshpk-conv
babylon esvalidate jsesc pegjs sshpk-sign
color-support handlebars json5 rc sshpk-verify
detect-libc image-size loose-envify react-native uglifyjs
envinfo import-local-fixture metro regjsparser uuid
escodegen is-ci mime rimraf watch
esgenerate jest mkdirp sane which
初始化后:
ls ./node_modules/.bin
babylon esparse esvalidate jsesc loose-envify semver
我错过了什么?
平台:macOS,react-native-cli:2.0.1,react-native:0.54.2