This package provides Ezhome's .eslintrc
as an extensible shared config.
As of 1.0.0
release eslint-config-ezhome
requires,
-
Install
eslint-config-ezhome
and some other ESLint dev dependencies as,npm install --save-dev eslint-config-ezhome
-
Add next snippet,
"eslintConfig": { "extends": "ezhome" }
to your
package.json
As of 1.0.0
release, eslint-config-ezhome
installs:
as its requirements. You still able to install other versions of ESLint packages, but we recommend use versions listed above.
Use ezhome/base
config in case your project still heavilly uses ES5 features.
In other words, if your project still uses var
statement you need to use this
config.
Alternate config which provides comma-dangling and uses 2 spaces for indent in JS and JSX code. Good config for new projects.