Can't get Atom Linter to work

LintAtom Editor

Lint Problem Overview


I'm new to Atom, the text edit, and I installed many packages, including Linter

https://github.com/AtomLinter/Linter

But it's not showing errors or highlighting code, it's just getting ignored.

Do any of you know what I should do to get this to work?

Lint Solutions


Solution 1 - Lint

You have to additionally install a linter package for your desired language.

Here is a list: https://atomlinter.github.io/

Solution 2 - Lint

I needed to remove atom config and start from scratch to make linter working

mv ~/.atom ~/.atom.bak

Solution 3 - Lint

Instead of opening atom from the terminal like I normally do, I opened it from the application icon. Then atom asks if it was ok to install linter dependencies and presto it was working.

Hope this helps.

Solution 4 - Lint

When I start Atom up, the small UI panel in bottom left is present, but shows zero values for the 3 severities.

If I then do a CTRL-s/save (even with no changes), it starts working..

In my package settings, I have "Lint on Open" (which doesn't seem to work at all) and "Lint on Change" (which is "only for supported providers" so could be that) ticked.

Solution 5 - Lint

My problem with linter-eslint was because I accidentally installed eslint 8 which is not yet supported by atom linter or linter-eslint. After I installed eslint ^7.32.0 and typed npm i, restarted Atom and changed ecmaversion from 13 to 12 everything started working fine!

Solution 6 - Lint

I had to add the path of my project's node_modules dir to the Atom's eslint package settings, as well as create an .eslinterc.json file in my project. After doing both those, I had to restart Atom (I started it from the command line $ atom .) and it started working.

Solution 7 - Lint

Here is my .eslintrc. Hope it helps.

module.exports = {
  root: true,
  "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module",
      "ecmaFeatures": {
          "jsx": true,
      }
  },
  "extends" : "rallycoding",
  "rules": {
    "react/require-extension": "off"
  }
};

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionVictor FerreiraView Question on Stackoverflow
Solution 1 - LintgeistwcView Answer on Stackoverflow
Solution 2 - LintrofrolView Answer on Stackoverflow
Solution 3 - LintDC ITView Answer on Stackoverflow
Solution 4 - LinteversMccView Answer on Stackoverflow
Solution 5 - LintVityaSchelView Answer on Stackoverflow
Solution 6 - LintalewittView Answer on Stackoverflow
Solution 7 - LintPriyanshu TiwariView Answer on Stackoverflow