Socket
Book a DemoInstallSign in
Socket

@evan-yang/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evan-yang/eslint-plugin

My eslint plugin

1.0.9
latest
Source
npmnpm
Version published
Weekly downloads
99
-22.66%
Maintainers
1
Weekly downloads
 
Created
Source

@evan-yang/eslint-config

My ESLint config preset.

Usage

install

pnpm add -D eslint @evan-yang/eslint-config

Config .eslintrc

{
  "extends":"@evan-yang",
   "rules": {}
}

Add script for package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Auto Fix

.vscode/settings.json

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}

Packages

  • eslint-config: default config preset
  • eslint-plugin:
    • esnext: basic config
    • vue: vue support
    • react: react support
    • next: default config + next eslint config
    • json: parse json + package.json sort
    • yml: parse yml
    • typescript: typescript support
    • typescript-type-checking: typescript type checking

Development

# install pnpm
npm i -g pnpm

# install deps
pnpm i

# run release script
pnpm release

# lint
pnpm lint
pnpm lint:fix

License

MIT License © 2022 mohen

Keywords

eslint-plugin

FAQs

Package last updated on 23 Mar 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.