Socket
Socket
Sign inDemoInstall

@foray1010/eslint-config

Package Overview
Dependencies
309
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @foray1010/eslint-config

It aims at providing a general eslint config for:


Version published
Weekly downloads
227
increased by53.38%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@foray1010/eslint-config

It aims at providing a general eslint config for:

  1. assisting developer to obtain better code quality

  2. no opinion on coding styles, leave it to @foray1010/prettier-config

Versioning

X.Y.Z

X for requiring newer eslint or node (breaking changes)

Y for stricter rules

Z for looser rules

Installation

  1. yarn add -DE eslint prettier @foray1010/eslint-config

  2. Create an .eslintrc.yml in the project root

    # for general purpose, support TypeScript
    extends:
      - '@foray1010/eslint-config'
    
    # for frontend React project, support TypeScript
    extends:
      - '@foray1010/eslint-config/react'
    
  3. Use default eslintignore via npm script

    {
      "scripts": {
        "eslint": "eslint --ext=cjs,cts,js,mjs,mts,ts,tsx --ignore-path=node_modules/@foray1010/eslint-config/eslintignore"
      }
    }
    

    then use npm run eslint or yarn eslint to replace eslint

FAQs

Last updated on 25 Apr 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc