Comments (6)
textlint-plugin-html側で修正されたと思います
from textlint-rule-no-synonyms.
@azu ご対応ありがとうございました。想定通りに検出されることを確認しました。
$ npx textlint --c textlintrc test.html
/project/home/hankei6km/workspace/test.html
8:12 error 同義語である「サーバ」と「サーバー」が利用されています @textlint-ja/no-synonyms
9:13 error 同義語である「雇入」と「雇入れ」が利用されています @textlint-ja/no-synonyms
✖ 2 problems (2 errors, 0 warnings)
確認は下記 CodeSandbox のサンドボックスで行いました。
https://codesandbox.io/p/sandbox/test-textlint-rule-no-synonyms-bdbhdo
from textlint-rule-no-synonyms.
HTMLプラグインが<html lang="en">
を Html
nodeとして扱っちゃうのが良くない感じがしますね。。
(Markdown中の <p>
など任意のHTMLをHtml
nodeとして扱うためのtypeなので、なんか混在してしまっている…)
HTMLプラグイン側で <html>
を DocumentHtml
とか別の名前にするなどした方が汎用的に修正できそうな気がしますね…
Syntax.Html
を無視しているルールは他にもあると思うので。
https://github.com/textlint/textlint-plugin-html
📝 Syntax.Html === "Html
なので値が偶然一致してしまっているのが主な原因。Syntax.Html
の値を変えるというのもあるがちょっと影響が大きいかも知れない…
from textlint-rule-no-synonyms.
言われてみれば、他のルールでも無視されてしまいそうですね。
HTMLプラグイン側で を DocumentHtml とか別の名前にするなどした方が汎用的に修正できそうな気がしますね…
textlint を使い始めたばかりなので全体的な判断は難しいのですが、
感覚的には <html>
の node を Html
以外に変更していただくは良いように感じます。
from textlint-rule-no-synonyms.
ref textlint/textlint-plugin-html#19
from textlint-rule-no-synonyms.
確認ありがとうございます!
from textlint-rule-no-synonyms.
Related Issues (2)
- 同義語である「1」「一」が利用されています HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textlint-rule-no-synonyms.