eslint-config-powel
Shareable ESLint configs to be used in Powel web projects. Based on semistandard.
Usage
Common
npm i -D eslint eslint-config-powel eslint-config-semistandard
Add to your .eslintrc
{
"extends": "powel"
}
Babel ES6
To use the Babel rule set:
npm i -D eslint eslint-config-powel babel-eslint eslint-plugin-babel
Add this to your .eslintrc
:
{
"extends": "powel/babel"
}
React
To use the React rule set:
npm i -D eslint eslint-config-powel eslint-plugin-react
Add this to your .eslintrc
:
{
"extends": "powel/react"
}
Composition
You can use any combination of these shareable configs.
Install the dependencies:
npm i -D eslint eslint-config-powel eslint-config-semistandard babel-eslint eslint-plugin-babel eslint-plugin-react
.eslintrc
:
{
"extends": [
"powel",
"powel/babel",
"powel/react"
],
"rules": {
}
}