eslint-config-flair
v2.0.0
Published
ESLint configuration settings
Downloads
22
Readme
Flair - ESLint Shareable Config
An Shareable ESLint Config for JavaScript.
Install
npm install eslint-config-flair
Usage
To use the basic rules, extend the basic ruleset from your .eslintrc
config.
{
"extends": [
"flair"
]
}
Available extensions to use:
flair
- basic linting rulesflair/es6
- es6 linting rulesflair/node
- node linting rulesflair/react
- react linting rulesflair/browser
- browser linting rules
The rules can be mixed and matched depending on what kind of environment you are about to lint.
NodeJS linting rules
{
"extends": [
"flair",
"flair/node"
]
}
NodeJS ES6 linting rules
{
"extends": [
"flair",
"flair/es6",
"flair/node"
]
}
Browser ES6 linting rules
{
"extends": [
"flair",
"flair/es6",
"flair/browser"
]
}
React ES6 linting rules
{
"extends": [
"flair",
"flair/es6",
"flair/react"
]
}