Socket
Book a DemoInstallSign in
Socket

eslint-config-varp-common

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-varp-common

Common ESLint Rules by Varp

2.2.0
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

eslint-config-varp-common

Go in

Setup

  • Install with peer dependencies:
npm install -D eslint-config-varp-common
  • Create .prettierrc.js file with content:
module.exports = {
  /* Rrettier rules */
};
  • Create .eslintrc.js file with content:
module.exports = {
  extends: ["varp-common"],
  rules: {
    /* Eslint rules */
  }
};
  • Add .vscode/settings.json file with content:
{
  "editor.tabSize": 2,
  "editor.defaultFormatter": "dbaeumer.vscode-eslint",
  "eslint.format.enable": true,
  "editor.codeActionsOnSave": {      
    "source.fixAll.eslint": "always"
  },
  "eslint.validate": ["typescript", "typescriptreact", "javascript", "javascriptreact", "markdown", "json"],
}
  • Add new scripts to package.json:
"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
}

User cases

Override rules

  • Create file in selected folder: .eslintrc.js
  • Add content:
module.exports = {
  extends: '../.eslintrc.js',
  rules: {
    /* Overridden rules */
  }
};

Ignore path

  • Create file: .eslintignore
  • Add content:
disc

Keywords

typescript

FAQs

Package last updated on 24 Jun 2024

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.