Socket
Book a DemoInstallSign in
Socket

prettier-plugin-delete-eslint-disable

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-delete-eslint-disable

Plugin for prettier. Which removes the eslint-disable rules when editing a file and many other useful things

1.0.7
latest
Source
npmnpm
Version published
Weekly downloads
90
40.63%
Maintainers
1
Weekly downloads
 
Created
Source

prettier-plugin-delete-eslint-disable

Plugin for prettier. Which removes the eslint-disable rules when editing a file and many other useful things

Wallaby.js

main-branch

master test

develop-branch

develop test

npm prettier-plugin-delete-eslint-disable

install yarn

yarn add -D prettier-plugin-delete-eslint-disable

or npm

npmm install --save-dev prettier-plugin-delete-eslint-disable

Deleting comments /* eslint-disable */ in ours code

.prettierrc

{
  //...,
  "deleteEslintDisable": true
}

not remove comment /* eslint-disable */ with comment in ours file // eslint-disable-remove-ignore

// eslint-disable-remove-ignore
/* eslint-disable */

Local development

in prettier-plugin-delete-eslint-disable project

npm link

other project

npm link prettier-plugin-delete-eslint-disable

when ending development other project

npm unlink prettier-plugin-delete-eslint-disable

or use yalc

install

npm install -g yalc

or

yarn global add yalc

in package use command

after the package is ready for verification, run...

npm run local:push

or

yarn local:push

in our (target) project

add this script in yours package.json file

if you use npm

"link:prettier-plugin-delete-eslint-disable": "yalc add prettier-plugin-delete-eslint-disable && yalc link prettier-plugin-delete-eslint-disable && npm install"

and run

npm run link:prettier-plugin-delete-eslint-disable

or if you use yarn

"link:prettier-plugin-delete-eslint-disable": "yalc add prettier-plugin-delete-eslint-disable && yalc link prettier-plugin-delete-eslint-disable && yarn"
yarn link:prettier-plugin-delete-eslint-disable

Updating the .gitignore file

Both the .yalc directory and yalc.lock file that Yalc creates in the root of your Git repo are not intended to be committed to Git.

Therefore it’s probably best to add them to the .gitignore file:

# Yalc
/.yalc
yalc.lock

Removing Yalc packages (elegant way)

if you use npm

"unlink:prettier-plugin-delete-eslint-disable": "yalc remove prettier-plugin-delete-eslint-disable && npm install",
npm run unlink:prettier-plugin-delete-eslint-disable

or if you use yarn

"unlink:prettier-plugin-delete-eslint-disable": "yalc remove prettier-plugin-delete-eslint-disable && yarn"
yarn unlink:prettier-plugin-delete-eslint-disable

Keywords

prettier

FAQs

Package last updated on 04 Apr 2025

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.