eslint-config-legao
v1.1.1
Published
ESlint rules for Legao with `[ 'ES5', 'ES.NEXT', 'React' ]` support.
Downloads
23
Readme
eslint-config-legao
ESlint rules for Legao with [ 'ES5', 'ES.NEXT', 'React' ]
support.
Based on Airbnb JavaScript Style Guide
Install
tnpm i eslint-config-legao@latest -D
Usage
ES5
{
"extends": "legao",
"env": {
"browser": true
}
}
ES.NEXT
{
"extends": "legao/es6",
"env": {
"browser": true
}
}
React
{
"extends": "legao/react",
"env": {
"browser": true
}
}
Tips
- If you use some experimental features with Babel, you may need babel-eslint
Development
Edit rules in rules
to override rules of Airbnb.
Test
npm test