Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

HTML Files aren't linted when opened #1276

Open
3 tasks done
Standard8 opened this issue Jun 20, 2019 · 0 comments
Open
3 tasks done

HTML Files aren't linted when opened #1276

Standard8 opened this issue Jun 20, 2019 · 0 comments
Labels

Comments

@Standard8
Copy link

Issue Type

Bug

Issue Description

If I have a .js file with an ESLint error in it, and I open the file, then linter-eslint displays the error straight away.

However, if I have a .html file with an ESLint error in it, when I open the file, the ESLint error is not displayed. To get the linter to run, I have to modify part of the file within the <script> tags.

Bug Checklist

  • Restart Atom
  • Verify the eslint CLI gives the proper result, while linter-eslint does not
  • Paste the output of the Linter Eslint: Debug command from the Command Palette below
Atom version: 1.38.2
linter-eslint version: 8.5.5
ESLint version: 5.16.0
Hours since last Atom restart: 0
Platform: darwin
Using local project ESLint from: /Users/mark/dev/gecko/node_modules/eslint
Current file's scopes: [
  "text.html.basic"
]
linter-eslint configuration: {
  "lintHtmlFiles": true,
  "scopes": [
    "source.js",
    "source.jsx",
    "source.js.jsx",
    "source.babel",
    "source.js-semantic",
    "text.xml",
    "text.xul"
  ],
  "advancedLocalNodeModules": "",
  "autofix": {
    "fixOnSave": false,
    "ignoreFixableRulesWhileTyping": false,
    "rulesToDisableWhileFixing": []
  },
  "global": {
    "useGlobalEslint": false,
    "eslintrcPath": "",
    "globalNodePath": ""
  },
  "disabling": {
    "disableWhenNoEslintConfig": true,
    "rulesToSilenceWhileTyping": []
  },
  "advanced": {
    "disableEslintIgnore": false,
    "disableFSCache": false,
    "showRuleIdInMessage": true,
    "eslintRulesDirs": [],
    "localNodeModules": ""
  }
}
@UziTech UziTech added the bug label Mar 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants