Skip to content

BorysShulyak/eslint-disable-files

Repository files navigation

eslint-disable-files

Table of Contents

✨ Features

  • Add /* eslint-disable */ for all the files.

🦾 Installation

yarn add @borisshulyak/eslint-disable-files@latest

OR

npm install @borisshulyak/eslint-disable-files@latest

♾️ Usage

  • Create a temporary file tempEslintDisableFiles.js in some folder.
  • Paste the following code to the file:
import { eslintDisableFiles } from '@borisshulyak/eslint-disable-files';

eslintDisableFiles()
  • Run the file with Node.js from any folder.
  • All the files by the following pattern /\.[cm]?[jt]sx?$/ in the current folder would have the /* eslint-disable */ as the first line.

⚙️ API

eslintDisableFiles - method with the following arguments:

Argument Type Default
rootDir String ‘./’
pattern RegExp /\.[cm]?[jt]sx?$/

🛠️ Contributing

See the CONTRIBUTING.mddocument.

🗺️ Roadmap

  • Create the backward method eslintEnableFile

❤️ Support or Donate

If you are enjoying this plugin and feel extra appreciative, you could buy me a book 📖 or 3 📖📖📖.

💕 Special Thanks

  • I want to say thank you tomy wife Dianafor her love, daily support, motivation and inspiration.

About

The package that would help you to add the `/* eslint-disable */` for each file

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks