Skip to content

zhouchengi/eslint-config-zc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-zc

eslint config for zc

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-config-zc:

$ npm install eslint-config-zc --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-config-zc globally.

Usage

Add zc to the config section of your .eslintrc configuration file. You can omit the eslint-config- prefix:

Normal

{
  "extends": ["zc"]
}

React

{
  "extends": ["zc", "zc/react"]
}

Vue

{
  "extends": ["zc", "zc/vue"]
}

TypeScript

{
  "extends": ["zc", "zc/typescript"]
}

TypeScript React

{
  "extends": ["zc", "zc/react", "zc/typescript"]
}

Releases

No releases published

Packages

No packages published