eslint-config-jameslnewell
v3.2.0
Published
ESLint config for common gotch'yas for different JS environments.
Readme
eslint-config-jameslnewell
ESLint config for common gotch'yas for different JS environments.
Note: I think formatting code is important (find out why here) but nowdays I'm using prettier to take care of formatting code for me.
Installation
npm install --save eslint-config-jameslnewellUsage
In the root of your project, create a .eslintrc file with the following contents:
{
"extends": "jameslnewell/<env>"
}Now run eslint on your script files:
eslint **/*.jsConfigurations
jameslnewell/es5
Linting rules for ES5.
jameslnewell/es6
Linting rules for ES6.
jameslnewell/es
Linting rules for latest language features.
jameslnewell/react
Linting rules for ES6 and react.
jameslnewell/node
Linting rules for node v4.
Partial configurations
jameslnewell/test
Relax rules with useful behaviour for testing.
jameslnewell/debug
Relax rules with useful behaviour for debugging.
Change log
3.0.0-preview.*
- break: removed all rules that enforced formatting
- break: switch
jameslnewell/testfrommochatojest - break: removed rules already configured in
eslint:recommended
I bumped the major version because lots of people were using the preview.
2.0.0-preview.*
- break: use webpack config for resolution of
imports - break: moved
mocharules to thetestconfiguration - break: turned on a whole heap of new
import,reactandmocha` rules - break: using
babel-eslintto support class properties
I bumped the major version because lots of people were using the preview.
1.0.0-preview.*
- break: migrate to
eslintv2
0.5.1
- fix: moved
eslint-plugin-mochafromdevDependenciestodependencies
0.5.0
- add: added
eslint-plugin-mochato prevent.only()slipping through
