JavaScript code analysis software
ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code. It was created by Nicholas C. Zakas in 2013. Rules in ESLint are configurable, and customized rules … Wikipedia
Factsheet
Original author Nicholas C. Zakas
Developer Nicholas C. Zakas
Initial release June 30, 2013; 12 years ago (2013-06-30)
Factsheet
Original author Nicholas C. Zakas
Developer Nicholas C. Zakas
Initial release June 30, 2013; 12 years ago (2013-06-30)
🌐
GitHub
github.com › eslint › eslint
GitHub - eslint/eslint: Find and fix problems in your JavaScript code. · GitHub
Find and fix problems in your JavaScript code. Contribute to eslint/eslint development by creating an account on GitHub.
Author   eslint
🌐
GitHub
github.com › eslint › eslintrc
GitHub - eslint/eslintrc: The legacy ESLintRC config file format for ESLint · GitHub
The legacy ESLintRC config file format for ESLint. Contribute to eslint/eslintrc development by creating an account on GitHub.
Author   eslint
🌐
GitHub
github.com › eslint › eslint-github-bot
GitHub - eslint/eslint-github-bot: Plugin-based GitHub bot for ESLint
Plugin-based GitHub bot for ESLint. Contribute to eslint/eslint-github-bot development by creating an account on GitHub.
Starred by 68 users
Forked by 21 users
Languages   JavaScript
🌐
GitHub
github.com › eslint › eslint-release
GitHub - eslint/eslint-release: The ESLint release tool · GitHub
The ESLint release tool. Contribute to eslint/eslint-release development by creating an account on GitHub.
Author   eslint
🌐
GitHub
github.com › eslint
ESLint · GitHub
Find and fix problems in your JavaScript code. ESLint has 34 repositories available. Follow their code on GitHub.
🌐
GitHub
github.com › eslint › eslint-scope
GitHub - eslint/eslint-scope: eslint-scope: ECMAScript scope analyzer
eslint-scope: ECMAScript scope analyzer. Contribute to eslint/eslint-scope development by creating an account on GitHub.
Starred by 127 users
Forked by 29 users
Languages   JavaScript
🌐
GitHub
github.com › github › eslint-plugin-github
GitHub - github/eslint-plugin-github: An opinionated collection of ESLint rules used by GitHub.
An opinionated collection of ESLint rules used by GitHub. - github/eslint-plugin-github
Starred by 326 users
Forked by 65 users
Languages   JavaScript
🌐
DEV Community
dev.to › jnybgr › how-to-visualize-eslint-errors-on-github-3f8p
How to visualize ESLint errors on Github! - DEV Community
March 17, 2020 - If you add the --output parameter to the ESLint command, you will not see the errors in the command line and only get a JSON file. So I tweaked the ESLint command that it will only generate a JSON file while in a Github environment:
Find elsewhere
🌐
GitHub
github.com › eslint › eslintrc › releases
Releases · eslint/eslintrc
The legacy ESLintRC config file format for ESLint. Contribute to eslint/eslintrc development by creating an account on GitHub.
Author   eslint
🌐
npm
npmjs.com › package › eslint-plugin-github
eslint-plugin-github - npm
An opinionated collection of ESLint shared configs and rules used by GitHub.. Latest version: 6.0.0, last published: 9 months ago. Start using eslint-plugin-github in your project by running `npm i eslint-plugin-github`. There are 33 other projects in the npm registry using eslint-plugin-github.
      » npm install eslint-plugin-github
    
Published   Mar 19, 2025
Version   6.0.0
Author   GitHub, Inc.
🌐
GitHub
github.com › jsx-eslint › eslint-plugin-react
GitHub - jsx-eslint/eslint-plugin-react: React-specific linting rules for ESLint · GitHub
React-specific linting rules for ESLint. Contribute to jsx-eslint/eslint-plugin-react development by creating an account on GitHub.
Author   jsx-eslint
🌐
GitHub
github.com › eslint › eslint-cli
GitHub - eslint/eslint-cli: The local eslint executor. · GitHub
The local eslint executor. Contribute to eslint/eslint-cli development by creating an account on GitHub.
Author   eslint
🌐
GitHub
github.com › typescript-eslint › typescript-eslint
GitHub - typescript-eslint/typescript-eslint: :sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript · GitHub
:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript - typescript-eslint/typescript-eslint
Author   typescript-eslint
🌐
GitHub
github.com › eslint › eslint.org › releases
Releases · eslint/eslint.org
ESLint website. Contribute to eslint/eslint.org development by creating an account on GitHub.
Author   eslint
🌐
GitHub
gist.github.com › wassname › 4693303388396c5f074b10865a969b43
eslint.recommended (annotated) · GitHub
eslint.recommended (annotated). GitHub Gist: instantly share code, notes, and snippets.
Top answer
1 of 2
9

You can specify --no-fix so that it doesn't autofix errors/warnings and set --max-warnings to 0 as it seems you have one warning in your project and want it treated as an error.

In your package.json:

{
  ....
  "scripts": {
    "lint": "vue-cli-service lint --no-fix --max-warnings 0",
    ....
  }
}

checkout documentation

Log output:

warning: Delete `⏎········` (prettier/prettier) at src/components/QuestionInfo.vue:5:25:
  3 |     <div class="question_card container">
  4 |       <BaseTag
> 5 |         :class="['tag', 
    |                         ^
  6 |         'p-5', 'pb-0', 'pl-0', 'ml-5']"
  7 |         :tag-name="this.tag"
  8 |       />


1 warning found.
1 warning potentially fixable with the `--fix` option.
Eslint found too many warnings (maximum: 0).
2 of 2
0

I figured out the issue. I was linting the file, but I couldn't see the changes in my PR due that I wasn't committing & pushing the new changes.

I have refactored my Github Action's workflow to lint the files & push them to the repository.

name: Lint files on push

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Installing node_modules
        run: npm install
      - name: Running ESLint
        run: npm run lint
      - name: Setting Github user.email
        run: git config --global user.email "<github-email-goes-here>"
      - name: Setting Github user.name
        run: git config --global user.name "<github-name-goes-here>"
      - name: Adding fixes for committing
        run: git add .
      - name: Committing ESLint fixes
        run: git commit -m "fixed ESLint issues"
      - name: Pushing fixes to current PR branch
        run: git push

You can get your user.email & user.name by typing in your terminal git config --global user.email & git config --global user.name respectively.

🌐
npm
npmjs.com › package › @eslint › github-action
eslint/github-action
Latest version: 0.1.0, last published: 6 years ago. Start using @eslint/github-action in your project by running `npm i @eslint/github-action`. There are 1 other projects in the npm registry using @eslint/github-action.
      » npm install @eslint/github-action
    
Published   Oct 17, 2019
Version   0.1.0
Author   Nicholas C. Zakas
🌐
GitHub
github.com › eslint › eslint › releases
Releases · eslint/eslint
Find and fix problems in your JavaScript code. Contribute to eslint/eslint development by creating an account on GitHub.
Author   eslint
🌐
GitHub
github.com › topics › eslint
eslint · GitHub Topics · GitHub
javascript styleguide eslint es6 style-linter linting style-guide es2015 naming-conventions arrow-functions es2017 es2016 tc39 es2018
🌐
GitHub
github.com › dustinspecker › awesome-eslint
GitHub - dustinspecker/awesome-eslint: A list of awesome ESLint plugins, configs, etc. · GitHub
A list of awesome ESLint plugins, configs, etc. Contribute to dustinspecker/awesome-eslint development by creating an account on GitHub.
Author   dustinspecker