Closed bgp1 closed 7 months ago
Hi @bgp1 Thanks for the report.
Could you try using "files": ["**/*.html", "**/*.hbs"],
on your .eslintrc.js
? (not *.html
, *.hbs
)
Absolutely. I just made that change and it did not appear to have any affect. Got the same result of no issues found.
@bgp1 Got it! You missed an argument to the command for the input file.
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"lint": "eslint --config .eslintrc.js .", // <--- add '.' or whatever you want
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@html-eslint/eslint-plugin": "0.23.1",
"@html-eslint/parser": "0.23.0",
"eslint": "8.56.0"
}
}
Yeah that fixed it along with not having both an eslintrc.js and an eslint.config.js files. Thanks so much!
Hello,
I have followed the examples and this does not appear to work. Below are my files which should be finding issues in asdf.html (which has a location in the root with the config files as well as one folder level down) yet neither are reported.
package.json
eslint.config.js
.eslintrc.js
asdf.html (same in both locations)
Folder structure:
When I run
npm run lint
as seen in thepackage.json
this is all that is output:I would expect both asdf.html files to be reported actually for both intent as well as duplicate id. Neither are listed. I've also explicitly tried passing
--format stylish
in the CLI and still do not receive any errors about these issues in these test files.