markuplint
markuplint copied to clipboard
An HTML linter for all markup developers.
This is an idea that selects an element that matches its spec. The selector imitates the `aria/` selector of Puppeteer to start with `spec/`. ```js element.matches("spec/[disabled]"); ``` A selector follows...
In React, Svelte, and more, It cannot evaluate custom components as HTML elements. The `pretenders` option resolves that. It evaluates components as HTML elements on each rule if you specify...
related: https://github.com/markuplint/markuplint/issues/468 CSS in JS, such as [styled-components](https://styled-components.com/), [emotion](https://emotion.sh/), and [linaria](https://linaria.dev/), can map JSX tags to HTML tags through clever parsing. ```jsx const Button = styled.button` padding: 32px; background-color: hotpink;...
There is a bug in smarty-parser that causes parsing to fail because it does not distinguish between brackets in inline JS code and brackets for Smarty. ```smarty {literal} const obj...
Forgotten end tag usually causes unexpected bugs. In my opinion, `end-tag` rule should be enabled in recommendation. Current markuplint-recommended.json: https://github.com/markuplint/markuplint/blob/373c916d5ebbba463f5e088696666a383ee96492/packages/%40markuplint/ml-core/markuplint-recommended.json#L16
https://markuplint.dev/ - [ ] h1 should be larger than h2. - [ ] Fix overflow contents in narrow viewport. - [ ] Set favicon - [ ] Add search system...
[markuplintのウェブサイト](https://markuplint.dev/)は現在英語のみですが、 日本語でもドキュメントが参照できるようになると嬉しいです。 個別ルールの説明にはすでにREADME.ja.mdが用意されているため、これがサイト上でも参照できるとありがたいです。 ウェブサイトで使用しているNext.jsにはビルトインでi18n機能が備わっており、言語切り替え機能自体はこれを使用することで実装できそうです。 言語切り替え機能を実装してみましたので、後ほどPRを出します。
こちらが参考になります https://github.com/rx-ts/markuplint
- [x] Add `overrides` option - [x] Add `excludeFiles` option - [ ] Support `.markuplintignore` file
Want to parse the complex syntax that is unsupported currently. https://markuplint.dev/docs/guides/besides-html#note:-unsupported-syntax:~:text=UNSUPPORTED%20SYNTAXES