Socket
Socket
Sign inDemoInstall

eslint-config-vamp

Package Overview
Dependencies
88
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-vamp

ESLint config for vampires 🩸


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source
Logo

eslint-config-vamp

ESLint config for vampires 🩸

GitHub

Report Bug · Request Feature


📖 Table of Contents

🔫 Overview

This package includes ESLint configuration files, this configuration files only include rules to prevent environment problems and conflicts with other rules.

Currently, there is 2 configurations:

  1. javascript - the default one that includes ESLint rules only
  2. typescript - includes typescript/eslint rules only

🛠️ Installation

npm i -D eslint-config-vamp

⚡️ Usage

javascript

The javascript configuration requires only eslint package to be installed.

.eslintrc.json

{
  "extends": [
    "vamp/javascript"
  ]
}

Example of advanced configuration with javascript:

Packages required:

  • eslint
  • eslint-config-prettier

.eslintrc.json

{
  "extends": [
    "eslint:recommended",
    "vamp/javascript",
    "prettier"
  ]
}

typescript

The typescript configuration require those packages in order to work:

  • eslint
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser

.eslintrc.json

{
  "extends": [
    "vamp/javascript",
    "vamp/typescript"
  ]
}

Example of advanced configuration with typescript:

Packages required:

  • eslint
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • prettier

.eslintrc.json

{
  "extends": [
    "eslint:recommended",
    "vamp/javascript",
    "plugin:@typescript-eslint/recommended",
    "vamp/typescript",
    "prettier"
  ]
}

Annoying Rules

All the rules considered as best practices but some of them can make to your existing projects problems, so those rules can be disabled easily with the rules object:

{
  "rules": {
    "id-length": "off",
    "max-classes-per-file": "off",
    "max-depth": "off",
    "max-nested-callbacks": "off",
    "max-params": "off"
  }
}

📜 License

MIT

Keywords

FAQs

Last updated on 12 Aug 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