Skip to content

Commit

Permalink
Adding example json file
Browse files Browse the repository at this point in the history
  • Loading branch information
DemeSzabolcs committed Jan 16, 2024
1 parent ed36f71 commit 15e43e2
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion Lombiq.Tests.UI/Docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,33 @@ Recommendations and notes for such configuration:

### HTML validation configuration

If you want to change some HTML validation rules from only a few specific tests, you can create a custom `.htmlvalidate.json` file (e.g. `TestName.htmlvalidate.json`), then you can change the configuration to use that:
If you want to change some HTML validation rules from only a few specific tests, you can create a custom `.htmlvalidate.json` file (e.g. `TestName.htmlvalidate.json`). For example:

```json
{
"extends": [
"html-validate:recommended"
],

"rules": {
"attribute-boolean-style": "off",
"element-required-attributes": "off",
"no-trailing-whitespace": "off",
"no-inline-style": "off",
"no-implicit-button-type": "off",
"wcag/h30": "off",
"wcag/h32": "off",
"wcag/h36": "off",
"wcag/h37": "off",
"wcag/h67": "off",
"wcag/h71": "off"
},

"root": true
}
```

Then you can change the configuration to use that:

```cs
changeConfiguration: configuration => configuration.HtmlValidationConfiguration.HtmlValidationOptions =
Expand Down

0 comments on commit 15e43e2

Please sign in to comment.