eslint-plugin-file-progress
Eslint plugin to print file progress
Getting Started
Installation
npm i -D eslint-plugin-file-progress
yarn add --dev eslint-plugin-file-progress
Usage
{
name: 'progress',
plugins: {
progress
},
rules: {
"progress/activate": 1
},
settings: {
progress: {
hide: false,
successMessage: "Lint done..."
}
}
}
Or use the recommended config
import progress from 'eslint-plugin-file-progress'
export default [
progress.configs.recommended
]
or if you want to hide the progress message in CI
import progress from 'eslint-plugin-file-progress'
export default [
progress.configs.noCI
]
CI is detected by checking if the CI
environment variable is set to true
.
Demo
Who likes a silent console ¯\_(ツ)_/¯
Only on CLI
Some eslint plugins for code editors may conflict with this plugin rule (or, in that context, a file progress is not relevant)
npx eslint . --plugin file-progress --rule 'file-progress/activate: 1'
Or, in your package.json's command:
{
"scripts: [
- "lint": "eslint ."
+ "lint": "eslint . --plugin file-progress --rule \"file-progress/activate: 1\""
]
}
Use file-progress/activate: 0
to disable the plugin. See https://eslint.org/docs/latest/user-guide/command-line-interface#specifying-rules-and-plugins for more details on how to use CLI