- ✨ Features
- 🦾 Installation
- ♾️Usage
- ⚙️ API
- 🛠️ Contributing
- 🗺️ Roadmap
- ❤️Support or Donate
- 💕Special Thanks
- Add
/* eslint-disable */
for all the files.
yarn add @borisshulyak/eslint-disable-files@latest
OR
npm install @borisshulyak/eslint-disable-files@latest
- 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.
eslintDisableFiles
- method with the following arguments:
Argument | Type | Default |
---|---|---|
rootDir |
String | ‘./’ |
pattern |
RegExp | /\.[cm]?[jt]sx?$/ |
See the CONTRIBUTING.mddocument.
- Create the backward method
eslintEnableFile
If you are enjoying this plugin and feel extra appreciative, you could buy me a book 📖 or 3 📖📖📖.
- I want to say thank you tomy wife Dianafor her love, daily support, motivation and inspiration.