Closed LucEnden closed 10 months ago
You need to provide the rulesdir via cli not configuration file e.g. npx htmlhint --rulesdir linting/htmlhint/
You need to provide the rulesdir via cli not configuration file e.g.
npx htmlhint --rulesdir linting/htmlhint/
I will be trying this tonight
I will be trying this tonight The error persists when specifying the rules dir via the CLI
@LucEnden did you find out a solution? i'm trying to add custom rules & i got the same result as you
@LucEnden did you find out a solution? i'm trying to add custom rules & i got the same result as you
I opted to use custom logic (Python script) to implement my linting. I have removed HTMLHint from my application
So no, I did not find a solution for this particular problem.
Describe the bug None of my custom rules seem to work.
Bellow is a testing rule I have setup (
linting/htmlhint/no-div.js
):.htmlhintrc
:test file (
test.html
):I run
npx htmlhint
, which finds the right config file, but my rule does not trigger.To Reproduce Steps to reproduce the behavior:
npm install --save-dev htmlhint@1.1.4
npx htmlhint
, which finds the right config file, but my rule does not trigger.Expected behavior An error should be reported that I am using a div
Screenshots
Edit: I already tried the following;
rulesdir
option