Socket
Book a DemoInstallSign in
Socket

eslint-config-plus-prettier

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-plus-prettier

Standard config for ESLint and Prettier

1.0.2-alpha-8
npmnpm
Version published
Weekly downloads
81
268.18%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-plus-prettier

Standard config for ESLint and Prettier

Install

npm install --save-dev eslint-config-plus-prettier
npx install-peerdeps --dev eslint-config-plus-prettier

Add a .eslintrc.json file with the following:

{
  "extends": "eslint-config-plus-prettier"
}

Add prettier config to package.json:

"prettier": "eslint-config-plus-prettier/.prettierrc.json"

Add the following scripts:

"scripts": {
  "lint": "eslint . --ext .ts,.js --fix",
  "format": "prettier --write ."
}

Use

npm run lint
npm run format
  • Linting will check for errors and fix formatting in .ts and .js files.
  • Formatting will apply format rules to all possible files.

FAQs

Package last updated on 16 Dec 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.