question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin does not work with autofix

See original GitHub issue

ref: https://github.com/AtomLinter/linter-eslint/issues/815

Everything just started with https://github.com/AtomLinter/linter-eslint/issues/779.

I just have a markdown file, javascript file and eslintrc.

I’m using:

% ❯ npm ls | grep eslint                                                                               February 12, 12:34:53
├── eslint@3.15.0
├── eslint-config-standard@6.2.1
├── eslint-plugin-markdown@1.0.0-beta.3
├── eslint-plugin-promise@3.4.1
├── eslint-plugin-standard@2.0.1

and have this config

{
  "extends": ["standard"],
  "plugins": ["markdown"],
  "rules": {
    "semi": [
      2,
      "always"
    ]
  }
}

Intentionally makes standard to always want semicolons so it is easy to see if autofixing works.

Initially I was thinking it is Linter-ESLint bug, but seems it isn’t. Because when run the following ESLint still report errors and does not fix them.

eslint --fix --ext md README.md
eslint --fix --ext md .
eslint --fix -c .eslintrc --ext md README.md

the code fences in the markdown file is both jsx and js

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KaiSchwarz-cniccommented, Sep 21, 2017

This got merged, so +1

1reaction
not-an-aardvarkcommented, Aug 13, 2017

No. However, this might be possible soon if https://github.com/eslint/eslint/pull/9090 is merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint-plugin-no-autofix - npm
Start using eslint-plugin-no-autofix in your project by running `npm i eslint-plugin-no-autofix`. There are 14 other projects in the npm ...
Read more >
eslint-plugin-no-autofix | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Grade Report “Auto Fix” Feature Not Working - WordPress.org
This could be due to a plugin/theme conflict or a server configuration issue. Our troubleshooting efforts did not fix the above condition.
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
Deprecated: Use rules from plugins Fix problems: --fix Automatically fix ... editor plugins) which need to autofix text from the command line without...
Read more >
Custom ESLint plugin doesn't suggest auto-fix in editor
I created a custom eslinter plugin which warns the usage of a specific function. It is working as expected, the only issue is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found