eslint-config-powel
ESLint configuration presets for Powel projects.
Usage
Common
npm i -D eslint eslint-config-powel eslint-config-semistandard
Add to your .eslintrc
{
"extends": "powel"
}
Babel
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"
}
Flow
To use the flow rule set:
npm i -D eslint eslint-config-powel babel-eslint eslint-plugin-flowtype eslint-plugin-flowtype-errors
Add this to your .eslintrc
:
{
"extends": "powel/flow"
}
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"
}
Import
To use the eslint-plugin-import
rule set:
npm i -D eslint eslint-config-powel eslint-plugin-import
Add this to your .eslintrc
:
{
"extends": "powel/import"
}
Composition
You can use any combination of these presets.
Install the dependencies:
npm i -D eslint eslint-config-powel eslint-config-semistandard babel-eslint eslint-plugin-babel eslint-plugin-flowtype eslint-plugin-flowtype-errors eslint-plugin-import eslint-plugin-react
.eslintrc
:
{
"extends": [
"powel",
"powel/babel",
"powel/flow",
"powel/import",
"powel/react"
],
"rules": {
}
}