Skip to content

ezhome/eslint-config-ezhome

Repository files navigation

eslint-config-ezhome

Circle CI npm version npm license

This package provides Ezhome's .eslintrc as an extensible shared config.

Requirements

As of 1.0.0 release eslint-config-ezhome requires,

Usage

  1. Install eslint-config-ezhome and some other ESLint dev dependencies as,

    npm install --save-dev eslint-config-ezhome
    
  2. Add next snippet,

      "eslintConfig": {
        "extends": "ezhome"
      }
    

    to your package.json

Note on preferred ESLint versions

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.

Other Configs

ezhome/base

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.

ezhome/alternate

Alternate config which provides comma-dangling and uses 2 spaces for indent in JS and JSX code. Good config for new projects.