zhouchengi / eslint-config-zc

eslint config for zc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"]
}

About

eslint config for zc


Languages

Language:JavaScript 100.0%