Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 543 Bytes

eslint.md

File metadata and controls

24 lines (17 loc) · 543 Bytes

ESLint

npm install --save-dev babel-eslint eslint-config-airbnb-base eslint-plugin-react eslint-plugin-react-native

init

node_modules/.bin/eslint --init

選擇 style

? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Airbnb
? Do you use React? Yes
? What format do you want your config file to be in? JavaScript

延伸閱讀

Airbnb JavaScript Style Guide