azu

Results 808 comments of azu

Oh, I misread that. In textlint kernal, presets are expanded as separate rules and then loaded. in script-compiler https://github.com/textlint/editor/blob/d5d5a875ed3fc4a720d056363c7f8bb61937ecf4/packages/@textlint/script-compiler/src/CodeGenerator/worker-codegen.ts#L152-L172 in textlint https://github.com/textlint/textlint/blob/e184d1f33340bb3fc0bc13c50f62d8feb6ecae8a/packages/%40textlint/config-loader/src/loader.ts#L215-L223 Probably, We need to treat `preset-abc: false` as...

> In addition, I would like to take this opportunity to ask a follow-up question: isn't it possible to "disable a specific rule" in merge-config? It is possible that the...

This is a rough image, but I think we will need the following logic to merge configs. ```js export const assignConfig = (currentConfig: { plugins: TextlintKernelPlugin[]; rules: TextlintKernelRule[]; filterRules: TextlintKernelFilterRule[];...

https://github.com/textlint/editor/issues/87#issuecomment-1874879652 This comment is probably wrong and hide it. - In textlint: - @textlint/config-loader expands preset to rules before passing config to kernel - ℹ️ This limitation come from that...

> The other is to design the config so that false is a special setting that disables the rule, so that when you merge, you do nothing special and false...

- 図を横なのか縦なのか適切な形がわからない - 実際に文章に入れた場合にわかりやすいのかが未確認

紙面はとりあえず置いておいて図を入れた

- https://github.com/secretlint/secretlint/issues/536 - https://github.com/secretlint/secretlint/pull/599 変数と正規表現を組み合わせるときに[regx](https://github.com/shannonmoeller/regx)というのがこれをやっていたけど、String.rawを使うことで素直に書ける

- 仕様: [Normative: add hashbang comments by ljharb · Pull Request #2816 · tc39/ecma262](https://github.com/tc39/ecma262/pull/2816) ```js (() => { #! HASH })(); ``` は許容されない。 けど、これがめちゃくちゃラフにstar of Script or Moduleという定義になってるだけ。 他のコメントは 特に場所は左右されないので、Hashbangだけ特殊なコメントになってる...

コメントっぽい何か ```js #! -- Comment Comment https://example.test/Comment Comment; ```