markuplint
markuplint copied to clipboard
An HTML linter for all markup developers.
Rel: https://github.com/whatwg/html/pull/10212 `preload` spec: https://html.spec.whatwg.org/multipage/links.html#translate-a-preload-destination
- Markuplint version: `4.9.2` - Parser lang: HTML Bug Report として提出していますが、とくに最後のもの(`` 関係)は議論の余地があるだろうとの認識です。 ## `output` 要素 `output` 要素は主に JS で操作するものであり、その使用方法からすると空であり得ます。 [ソースコード](https://github.com/markuplint/markuplint/blob/dev/packages/%40markuplint/rules/src/no-empty-palpable-content/index.ts)を見ると `textarea` 要素を例外的に除外していますが、理由付けとしてはこれと同様になるかと思います。 ## `audio`, `video`, `canvas` 要素 これらは [HTML 仕様](https://momdo.github.io/html/dom.html#palpable-content)の...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [svelte](https://svelte.dev) ([source](https://redirect.github.com/sveltejs/svelte/tree/HEAD/packages/svelte)) | [`4.2.19` -> `5.0.3`](https://renovatebot.com/diffs/npm/svelte/4.2.19/5.0.3) | [](https://docs.renovatebot.com/merge-confidence/) |...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typedoc](https://typedoc.org) ([source](https://redirect.github.com/TypeStrong/TypeDoc)) | [`0.26.9` -> `0.26.10`](https://renovatebot.com/diffs/npm/typedoc/0.26.9/0.26.10) | [](https://docs.renovatebot.com/merge-confidence/) |...
導入している際に設定が思うようにいかず調査に時間がかかったため、現在のrulesなどの設定が有効になっているか確認する方法がほしいです。 ESLint でいう `--print-config` オプション、TSCでいう `--showConfig` に相当する機能です。 https://zenn.dev/nananaoto/articles/9968d8f3966e90a46229 https://www.typescriptlang.org/docs/handbook/compiler-options.html 自分の場合は `.markuplintrc.ts` に vue の parser, specs を導入したうえで `{ extends: ['markuplint:recommended-vue'] }` をベースに、プロジェクト固有の事情で いくつかのルールをOFFにしたかったのですが、 `required-attr` と `invalid-attr` がどうしても無効にできませんでした。 暫定的には `{ nodeRules:...
The current implementation of the `order` function in the markuplint repository uses a backtracking approach which can be inefficient. To optimize this, we propose using a Non-deterministic Finite Automaton (NFA)....
Fixes #??? ## What is the purpose of this PR? - [x] Fix bug - [ ] Fix typo - [ ] Update specs - [ ] Add new rule...
nodeRulesでrequired-elementに省略可能要素を指定したときも、 HTML上に存在しなければ警告を出すことが可能になるとありがたいです。 ## 環境 Node.js 20.12.2 markuplint 4.9.3 ## 設定例 ``` "nodeRules": [ { "selector": "table", "rules": { "required-element": ["tbody"] } } ] ``` ## なってほしい状態 ### 以下のHTMLで警告が出てほしい ※現時点では、上記設定でも以下のHTMLはパスします ```...
- Markuplint version: `4.7.5` - VSCode version: 1.92.2 - Parser lang: HTML - Node.js version: `20.11.1` - OS: macOS ## バグの詳細 プラグインを使うように設定した場合、CLI(`npx markuplint XXX.html`)からは正常に実行できますが、vscode-markuplintをインストールしたVSCodeで同じHTMLファイルを開くと「XXXXXX could not be cloned」というエラーが表示されます。XXXXXXは`async (context) =>...
## Document or Issue Link - https://github.com/whatwg/html/issues/9799 - ~~https://github.com/whatwg/html/pull/10633~~ - https://github.com/whatwg/html/pull/10548 ### Needs - Parse5 supports parsing ``: https://github.com/inikulin/parse5/pull/1317