Not all of the ESLint rules are fixable (actually most of the rules are not fixable as of yet). You can find out which rules can be autofixed by looking for wrench glyph on this page: http://eslint.org/docs/rules/

None of the rules that you have errors for are currently autofixable. Some because the ESLint team hasn't gotten to them yet (like newline-after-var), some, because it's very likely to create a different logic then was intended in the original code (like eqeqeq) and some, because it's impossible to figure out the right way to autofix it (like no-unused-vars and no-redeclare)

Answer from Ilya Volodin on Stack Overflow

Not all of the ESLint rules are fixable (actually most of the rules are not fixable as of yet). You can find out which rules can be autofixed by looking for wrench glyph on this page: http://eslint.org/docs/rules/

None of the rules that you have errors for are currently autofixable. Some because the ESLint team hasn't gotten to them yet (like newline-after-var), some, because it's very likely to create a different logic then was intended in the original code (like eqeqeq) and some, because it's impossible to figure out the right way to autofix it (like no-unused-vars and no-redeclare)

Answer from Ilya Volodin on Stack Overflow
🌐
GitHub
github.com › eslint › eslint › issues › 7456
eslint --fix not fixing when running by npm · Issue #7456 · eslint/eslint
October 26, 2016 - eslint --fix --ext .js,.vue src - it is throwing errors, but not fixing them at all.
Author   murbanowicz
🌐
ESLint
eslint.org
Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter
ESLint fixes are syntax-aware so you won't experience errors introduced by traditional find-and-replace algorithms. Learn more about fixing problems automatically with ESLint · Preprocess code, use custom parsers, and write your own rules that work alongside ESLint's built-in rules.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360003397220--Fix-ESLint-Issues-Does-Not-Work
"Fix ESLint Issues" Does Not Work – IDEs Support (IntelliJ Platform) | JetBrains
When right clicking and selecting 'Fix ESLint Issues', the loading bar for fixing ESLint issues blips for a split second, then disappears without fixing anything. If I run the command manually through Power Shell, `./node_modules/bin/eslint --fix testFile.ts` it works properly without issue.
🌐
ESLint
eslint.org › docs › latest › use › command-line-interface
Command Line Interface Reference - ESLint - Pluggable JavaScript Linter
If you want to fix code from stdin or otherwise want to get the fixes without actually writing them to the file, use the --fix-dry-run option. ... This option has the same effect as --fix with the difference that the fixes are not saved to the ...
🌐
Reddit
reddit.com › r/learnjavascript › eslint is running but not showing any lint errors/warnings
r/learnjavascript on Reddit: eslint is running but not showing any lint errors/warnings
June 6, 2023 -

I've created a new Vue project using this command npm init vue@latest I have added prettier and eslint.

But I have a problem with eslint, it doesn't lint the code (I have inconsistency in the code, some lines end with a ; others not, mixing single and double quotes).

after running the npm run lint I get no error but the code is kept as it is, this is the output of the command:

> find-apartment@0.0.0 lint
> eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore

I installed the eslint vs code extension but nothing changed.

Please how can I make the eslint work?

This is the content of the package.json and .eslintrc.cjs files

package.json

{
  "name": "find-apartment",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview",
    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
    "format": "prettier --write src/"
  },
  "dependencies": {
    "@supabase/supabase-js": "^2.24.0",
    "pinia": "^2.0.36",
    "vue": "^3.3.2",
    "vue-router": "^4.2.0"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.2.0",
    "@vitejs/plugin-vue": "^4.2.3",
    "@vue/eslint-config-prettier": "^7.1.0",
    "eslint": "^8.39.0",
    "eslint-plugin-vue": "^9.11.0",
    "prettier": "^2.8.8",
    "vite": "^4.3.5"
  }
}

.eslintrc.cjs

/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
  root: true,
  'extends': [
    'plugin:vue/vue3-essential',
    'eslint:recommended',
    '@vue/eslint-config-prettier/skip-formatting'
  ],
  parserOptions: {
    ecmaVersion: 'latest'
  }
}
🌐
Mastering JS
masteringjs.io › tutorials › eslint › fix
Using ESLint's --fix Flag - Mastering JS
In order to run eslint --fix, you need to run npm run lint -- --fix. Note the extra --. You only need the -- if you're running ESLint in an npm script!
Find elsewhere
🌐
DEV Community
dev.to › jenchen › how-to-fix-common-eslint-errors-troubleshooting-unknown-or-strange-issues-4m39
How to Fix Common ESLint Errors: Troubleshooting Unknown or Strange Issues - DEV Community
November 7, 2024 - The issue arises because I use Bun to manage the packages in my project, but when running npm run lint -w myFolder, it uses npm (the Node.js package manager) instead of Bun. This causes a version mismatch, as npm installs or uses a different version of ESLint than the one managed by Bun.
🌐
GitHub
github.com › eslint › eslint › issues › 13490
eslint --fix not working when running by npm · Issue #13490 · eslint/eslint
July 14, 2020 - archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbugESLint is working incorrectlyESLint is working incorrectlytriageAn ESLint team member will look at this issue soonAn ESLint team member will look at this issue soon ... Tell us about your environment Eslint find many problems "122 errors and 0 warnings potentially fixable with the --fix option." but fixable not work.
Author   ChumakovaAnna
🌐
GitHub
github.com › eslint › eslint › discussions › 18420
Bug: Eslint not working with `eslint src/**/*.ts --fix` · eslint/eslint · Discussion #18420
I was experiencing a similar error, but I was able to fix it by setting the environment variable ESLINT_USE_FLAT_CONFIG to false.
Author   eslint
🌐
IBM
developer.ibm.com › articles › auto-fix-and-format-your-javascript-with-eslint
Autofix and format your JavaScript with ESLint
Get the quick tips and tricks you need to use ESLint to autofix and format your JavaScript.
🌐
DEV Community
dev.to › tillsanders › eslint-not-working-in-vscode-help-build-a-troubleshooting-checklist-fdc
ESLint not working in VSCode? Help build a troubleshooting checklist! - DEV Community
January 11, 2021 - The problem I've found by inspecting the VSCode ESlint log was that some of my plugin settings were out of date and breaking it... so the ESlint service on VSCode was not starting. What I had to do was remove the extensions property from the eslint....
🌐
JetBrains
jetbrains.com › help › idea › eslint.html
ESLint | IntelliJ IDEA Documentation
Open the Settings dialog (Ctrl+Alt+S) , go to Languages & Frameworks | JavaScript | Code Quality Tools | ESLint, and select the Run eslint --fix on save checkbox. Enabling this option also enables Run eslint --fix in Settings | Tools | Actions ...
🌐
GitHub
github.com › eslint › eslint › issues › 19846
Bug: When running without --fix, eslint still wastes time "Applying fixes" · Issue #19846 · eslint/eslint
June 12, 2025 - bugESLint is working incorrectlyESLint is working incorrectlyrepro:neededThis issue should include a reproducible exampleThis issue should include a reproducible example ... Node version: 20.18.1 npm version: 10.8.2 Local ESLint version: 9.28.0 Global ESLint version: - Operating System: macOS ... I'm running npx eslint . --debug, and going through the logs, and I see for each file: eslint:source-code-fixer Applying fixes +45ms eslint:source-code-fixer shouldFix parameter was false, not attempting fixes +0ms
Author   Floriferous
🌐
GitHub
github.com › eslint › eslint › issues › 17603
Bug: Different behavior using `npx eslint --fix` to same code in two files · Issue #17603 · eslint/eslint
September 25, 2023 - But codes are different after I use npx eslint --fix to the same code in two files. And when I use eslint plugin for vscode to "Quick Fix", the behaviors are different too. You can have a try clicking "Quick Fix" in the first and fifth line of the js code bellow. When I use npx prettier --write, it works normally.
Author   Annie972297
🌐
Package Control
packagecontrol.io › packages › ESLint Fix
ESLint Fix - Packages - Package Control
Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins. When the plugin list appears, type eslint fix.