Skip to content

Commit

Permalink
chore: cleaner configs
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Jan 30, 2024
1 parent 75f862d commit 04a2742
Show file tree
Hide file tree
Showing 9 changed files with 657 additions and 849 deletions.
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh

npm run lint:commit -- --edit
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

npm run lint:staged
npm run build:typescript
9 changes: 5 additions & 4 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"*": ["editorconfig-checker"],
"*.{js,ts,jsx,tsx}": ["prettier --write", "eslint --fix"],
"*.{yml,json}": ["prettier --write"],
"*.md": ["prettier --write", "markdownlint --dot --fix"]
"**/*": ["editorconfig-checker", "prettier --write --ignore-unknown"],
"**/*.md": ["markdownlint-cli2 --fix --no-globs"],
"**/*.{js,jsx,ts,tsx}": [
"eslint --fix --max-warnings 0 --report-unused-disable-directives"
]
}
9 changes: 5 additions & 4 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"config": {
"extends": "markdownlint/style/prettier",
"relative-links": true,
"default": true,
"MD033": false
"relative-links": true,
"no-duplicate-heading": false,
"no-inline-html": false,
},
"globs": ["**/*.{md,mdx}"],
"globs": ["**/*.md"],
"ignores": ["**/node_modules"],
"customRules": ["markdownlint-rule-relative-links"]
"customRules": ["markdownlint-rule-relative-links"],
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can combine **html-w3c-validator** with [start-server-and-test](https://gith

### Prerequisites

- [Node.js](https://nodejs.org/) >= 16.0.0
[Node.js](https://nodejs.org/) >= 16.0.0

### Installation (with [start-server-and-test](https://github.com/bahmutov/start-server-and-test))

Expand All @@ -59,8 +59,8 @@ npm install --save-dev html-w3c-validator start-server-and-test
"start": "serve \"./build\"",

// Command to validate your HTML pages
"test:html-w3c-validator": "start-server-and-test \"start\" \"http://127.0.0.1:3000\" \"html-w3c-validator\""
}
"test:html-w3c-validator": "start-server-and-test \"start\" \"http://127.0.0.1:3000\" \"html-w3c-validator\"",
},
}
```

Expand All @@ -74,7 +74,7 @@ npm install --save-dev html-w3c-validator start-server-and-test
"files": ["./index.html", "./about.html"],

// Specify the severities of the validator (default: ["warning", "error"])
"severities": ["info", "warning", "error"]
"severities": ["info", "warning", "error"],
}
```

Expand Down
61 changes: 32 additions & 29 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 04a2742

Please sign in to comment.