Export three ESLint configurations for usage.
Including ES6 eslint rules, base on eslint-config-standard. Requires eslint
and babel-eslint
.
npm install --save-dev eslint-config-commandp babel-eslint eslint
- add
"extends": "commandp"
to your.eslintrc
{
"extends": "commandp"
}
Lint ES6+ and React, base on eslint-config-airbnb. Requires eslint
, babel-eslint
and eslint-plugin-react
.
npm install --save-dev eslint-config-commandp eslint babel-eslint eslint-plugin-react
- add
"extends": "commandp/react"
to.eslintrc
{
"extends": "commandp/react"
}
Lint ES6+, React and add some available global values for React Native.
npm install --save-dev eslint-config-commandp eslint babel-eslint eslint-plugin-react
- add
"extends": "commandp/react-native"
to.eslintrc
{
"extends": "commandp/react-native"
}