0.1.4 • Published 2 years ago

@duiyuan/eslint-config v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

The standard shareable eslint configuration shared by duiyuan Front-End team.

Installation

npm

$ npm install typescript eslint prettier @duiyuan/eslint-config --save-dev

yarn

$ yarn add typescript eslint prettier @duiyuan/eslint-config --D

Usage

Set your eslint config to

{
  "extends": "@duiyuan/eslint-config"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.
For example, to turn off the scss/dollar-variable-pattern rule:

{
  "extends": "@duiyuan/eslint-config",
  "rules": {
    "@typescript-eslint/no-empty-function": "off",
  }
}