Socket
Book a DemoInstallSign in
Socket

@duiyuan/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@duiyuan/eslint-config

Duiyuan's eslint config

unpublished
latest
npmnpm
Version
0.1.4
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

eslint

FAQs

Package last updated on 29 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts