atom-linter-xo
atom-linter-xo copied to clipboard
Linting in HTML documents does not work
XO seems to try to lint the whole HTML document instead of just the JavaScript code within the <script>
tags.
Probably because of https://github.com/xojs/atom-linter-xo/blob/1797d384b88f57b5147a1b58c082cc0d98be14a5/index.js#L12 I had assumed it would just get the text inside the script block then.
Exactly 👍 For example, linter-js-standard (which I’m a maintainer of) finds the code using regular expressions. Although, eventually I’d like to move to eslint-plugin-html which is also used by linter-eslint.
I've removed the HTML scope. We should indeed use eslint-plugin-html
instead.
Closing as Atom is abandoned.