Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

prettier-eslint-cli

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-eslint-cli

CLI for prettier-eslint

  • 8.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
376K
decreased by-8.98%
Maintainers
5
Weekly downloads
ย 
Created

What is prettier-eslint-cli?

The prettier-eslint-cli package is a command-line interface that combines the functionality of Prettier and ESLint. It allows you to format your code using Prettier and then apply ESLint fixes, ensuring that your code adheres to both formatting and linting rules.

What are prettier-eslint-cli's main functionalities?

Format and Lint Files

This command formats all JavaScript files in the 'src' directory and its subdirectories using Prettier, and then applies ESLint fixes to them.

prettier-eslint --write "src/**/*.js"

Use Custom Configuration

This command allows you to specify custom configuration files for both Prettier and ESLint. It formats and fixes the files according to the rules defined in '.prettierrc' and '.eslintrc'.

prettier-eslint --write "src/**/*.js" --prettier-config .prettierrc --eslint-config .eslintrc

Check Mode

This command checks which files in the 'src' directory and its subdirectories would be changed by Prettier and ESLint, without actually modifying the files.

prettier-eslint --list-different "src/**/*.js"

Other packages similar to prettier-eslint-cli

FAQs

Package last updated on 14 Oct 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