Opinionated rule settings to be used with ESLint. Can be used with ESLint v3.17.1 and eslint-plugin-react v6.10.0, or above.
npm install --save-dev eslint-config-remitbriYou may:
- add the following line to the
.eslintrcor to theeslintConfigfield of thepackage.jsonof your project
{
"extends" : "remitbri"
}- or use the command line
eslint -c remitbri *.jsConsult the ESLint documentation for more information about extending configuration files.
This default configuration corresponds to react (see below) — because it's opinionated :)
Other than those specified in the available configurations, no language option (ecmaFeatures), parser, environment, global or plugin is set. Add them as needed in your own .eslintrc!
This is a collection of rules regarding possible errors, best practices, strict mode, variables and stylistic issues.
{
"extends" : "remitbri/es5"
}This
- extends the
es5configuration - add rules related to es2015
- adds the
es6environment
{
"extends" : "remitbri/es6"
}This
- extends the
es6configuration - add rules related to es2017
{
"extends" : "remitbri/es2017"
}This
- adds rules related to Node.js
- adds the
nodeenvironment
It's not meant to be used on its own, rather with other configurations. E.g
{
"extends" : ["remitbri/es5", "remitbri/node"]
}or
{
"extends" : ["remitbri/es6", "remitbri/node"]
}This
- extends the
es5configuration - adds a couple of rule modifications because hello ECMAScript 3…
- adds the
browserenvironment
{
"extends" : "remitbri/ie8"
}This is the default configuration. This
- extends the
es6andnodeconfigurations - adds rules related to eslint-plugin-react
- adds the
browserenvironment - adds the
jsx,modulesandexperimentalObjectRestSpreadecmaFeatures (the other ones are already added in thees6environment)
{
"extends" : "remitbri/react"
}