Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-file-progress

sibiraj-s415.1kMIT3.0.1TypeScript support: included

Eslint plugin to print file progress

eslint, eslintplugin, eslint-plugin, eslint-plugin-file-progress, eslint-progress, progress

readme

eslint-plugin-file-progress

Version Version Tests

Eslint plugin to print file progress

Getting Started

Installation

npm i -D eslint-plugin-file-progress
# or
yarn add --dev eslint-plugin-file-progress

Usage

// eslint.config.js

{
  name: 'progress',
  plugins: {
    progress
  },
  rules: {
    "progress/activate": 1
  },
  settings: {
    progress: {
      hide: false, // use this to hide the progress message, can be useful in CI
      hideFileName: false, // use this to hide the file name, would simply show "Linting..."
      successMessage: "Lint done..."
    }
  }
}

Or use the recommended config

// eslint.config.js
import progress from 'eslint-plugin-file-progress'

export default [
  progress.configs.recommended
]

or if you want to hide the progress message in CI

// eslint.config.js
import progress from 'eslint-plugin-file-progress'

export default [
  progress.configs['recommended-ci']
]

This configuration is similar to the recommended one, but it automatically detects CI environments by checking if the CI environment variable is set to true, and hides the progress message accordingly.

For CI's where CI is not set to true, you can use the settings.progress.hide option to hide the progress message.

Demo

Who likes a silent console ¯\_(ツ)_/¯

Progress

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

changelog

CHANGELOG

All notable changes to this project will be documented in this file.

Tags

  • Features
  • Bug Fixes
  • Performance Improvements
  • Enhancements
  • Dependency Updates
  • Breaking Changes
  • Documentation
  • Internal
  • Unreleased

v3.0.1 (2024-11-09)

  • fix hide option to hide the progress message (4228208)
  • add hideFileName option to hide the file name during linting (4228208)

v3.0.0 (2024-11-04)

  • rename noCI config to recommended-ci (f67c68a)

v2.1.2 (2024-11-04)

  • fix namespace for configuration presets (cdf1726)
  • fix noCI type not exported (50825d2)

v2.1.0 (2024-11-04)

  • add recommended and noCI configs (5a581b6)

v2.0.1 (2024-11-04)

  • fix supported nodejs version range for eslint (66e6b0b)

v2.0.0 (2024-11-04)

v1.5.0 (2024-08-12)

  • replace ora with nanospinner (96c5ccc)
  • replace chalk with picocolors (96c5ccc)

Dependency Updates

v1.4.0 (2024-05-11)

Features

v1.3.0 (2022-06-27)

Features

  • add option to hide progress (21ae39a)
  • add option to configure sucess message (21ae39a)

Bug Fixes

  • print path relative to eslint project (9c4600d)

v1.2.1 (2022-06-01)

Bug Fixes

  • fix relative file path in windows (9ebefd6)

v1.2.0 (2021-10-18)

Features

Internal

v1.1.1 (2020-12-13)

Internal

v1.1.0 (2020-08-10)

Enhancements

  • remove cli-spinners dependency (9845971)
  • color enhancements (ee170ea)

v1.0.0 (2020-08-09)

  • Initial Release: Eslint plugin to print file progress