Skip to content

Simple React app for exploring ESLint failures output with files grouped by failed rule.

Notifications You must be signed in to change notification settings

jakierice/eslint-output-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESLint Output Explorer

Explore ESLint failures with a very basic GUI.

Getting Started

Prerequisites

  1. Node and yarn are installed
  2. ESLint is installed and configured in your JavaScript or TypeScript project.

Generate and Explore ESLint Output

  1. Clone this repo:

    git clone git@github.com:jakierice/eslint-output-explorer.git
  2. Install dependencies for ESLint Output Explorer:

    cd eslint-output-explorer
    
    yarn
  3. Add the following command to your project's scripts in the package.json file. This will be used to generate a JSON formatted ESLint output file in to the proper file path of eslint-output-explorer/src/data/eslint-output.json:

    NOTE: Replace {path/to/eslint-output-explorer/src/data/eslint-output.json} with the appropriate path where you cloned the eslint-output-explorer directory on your local machine.

    "scripts": {
      "eslint-output": "eslint --format json --output-file {path/to/eslint-output-explorer/src/data/eslint-output.json}",
    },
  4. Run the new eslint-output script from your JavaScript or TypeScript project:

    yarn run eslint-output

    OR if your project is using NPM, run this command:

    npm run eslint-output
  5. Run the ESLint Output Explorer app locally to explore the ESLint output grouped by failed rule:

    # Run this command from the eslint-output-explorer project you cloned to your machine.
    yarn start
  6. View all files that have failed a specific rule by clicking on the rule name and expanding the list of files. Clicking on a file name will open the file in VS Code if you have it installed.

  7. Fix some errors, run the eslint-ouput command from your project again, and then refresh your locally running ESLint Output Explorer app to see the new results.

About

Simple React app for exploring ESLint failures output with files grouped by failed rule.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published