文章目录

Vanessa

成为 B3log 赞助者

标签: eslint (1)

React Native 系列【三】代码校验 (eslint)

SymApp Demo ToC https://hacpai.com/article/1496906863683 https://hacpai.com/article/1497002998658 https://hacpai.com/article/1497235254333 添加依赖 "devDependencies": { "babel-eslint": "^7.2.3", "eslint": "^4.0.0", "eslint-config-airbnb-base": "^11.2.0", "eslint-formatter-pretty": "^1.1.0", "eslint-plugin-import": "^2.3.0", "eslint-plugin-react": "^7.1.0", "eslint-plugin-react-native": "^2.3.2" }, 添加命令 "scripts": { "lint": "eslint . --fix --format=node_modules/eslint-formatter-pretty --quiet" } ....