azu

Results 808 comments of azu

[markuplint](https://github.com/YusukeHirao/markuplint "markuplint") has localize function. - [markuplint/index.ts at 0f66234b3be36312e008591c290aa2fe77337996 · YusukeHirao/markuplint](https://github.com/YusukeHirao/markuplint/blob/0f66234b3be36312e008591c290aa2fe77337996/src/rules/messages/index.ts "markuplint/index.ts at 0f66234b3be36312e008591c290aa2fe77337996 · YusukeHirao/markuplint") ```js const message = await messages(locale, 'error'); ```

ESLint get `messageId` feature. - https://eslint.org/docs/developer-guide/working-with-rules#messageids It will help to localize message. - [Could we put lint messages in rule metadata? · Issue #6740 · eslint/eslint](https://github.com/eslint/eslint/issues/6740) - [New: Add context.report({...

I have thought about it and [meta](https://eslint.org/docs/developer-guide/working-with-rules#rule-basics) data for rule. ``` src/ - textlint.meta.json - rule.js ``` `textlint.meta.json`: ```json { "messages": { "id-a": "message a {key}", "id-b": { "ja": "メッセージ...

Option Schema is related

https://github.com/secretlint/secretlint/blob/master/docs/secretlint-rule.md Secretlint implment messageId system. It works and TypeSafe

Related issue: https://github.com/eslint/eslint/issues/2715

I think that to support WebWorker is good thing. [Web Workers to the rescue – Rastislav Svarba – Medium](https://medium.com/@ra100x/web-workers-to-the-rescue-4ecf4279953c "Web Workers to the rescue – Rastislav Svarba – Medium")

> I think it is better to define rules like a Babel. textlint need to key of the rule/plugin. The key is used for results of linting. https://github.com/textlint/textlint/blob/54873c02a2f9267806b402566105d546ee5339e8/packages/%40textlint/kernel/src/textlint-kernel-interface.ts#L170-L190 This is...

> I think we should support WebWorker. Yes. Probaly, main use-case of textlint/browser is an editor like application. That app run linting with high frequency. This task should be split...

Overview of textlint ![image](https://user-images.githubusercontent.com/19714/40547558-3e5d7122-606d-11e8-9f55-7100972fbd3c.png) https://github.com/textlint/textlint/tree/master/packages/textlint/src [`textlint`](https://github.com/textlint/textlint/tree/master/packages/textlint) includes CLI, Engine, and Core. (This term is historical reasons...) [`@textlint/kernel`](https://github.com/textlint/textlint/tree/master/packages/%40textlint/kernel) is Kernel. Probably, `@textlint/browser` is a sister/brother of Core. Engine's tasks include loading...