New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-plus-prettier

Package Overview
Dependencies
Maintainers
1
Versions
55
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
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by103.7%
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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc