azu
azu
`import(rule)` return `Promise` So. `const default = interop(await import(rule)).default` Edit: `const default = interop(await import(rule).default)` is correct
1. Refactor Config - Inject config into TextlintEngine from outside like constructor DI - Or. No use class. instaed of it, use async function - constructor does not support async...
Related Note: I want to get file list that are linted from RuleContext. A rule lint the reference of the document. Currently, a rule does not get the reference of...
Dead simple implementation: Use Proxy. ```js kernel.lintText(text, { ext: path.extname(filePath), filePath, rules: [ { ruleId: "file-size", rule: fileSizeRule } ], plugins: [ { pluginId: "markdown", plugin: markdown } ], contextProxyHandler:...
Related: https://github.com/eslint/eslint/issues/2949#issuecomment-121788210
https://github.com/textlint/textlint/commit/b0eba3bd3013a1425f61fde9fd5272d8d65b4a0b is actual example.
:bulb: JavaScript SpellCheck rule?
:bulb: emoji lang - is uniformal language. Welcome to emoji world :globe_with_meridians: Emoji world has three rule: 1. A sentence should start with any emoji. 2. Do not use together...
Reopend by #438 `yarn-check` in `precommit` or `prepush` is conflict with `lerna publish` workflow - https://github.com/lerna/lerna#publish lerna modified `package.json` and commit, and `yarn-check` is failed. Additionaly, we should `yarn bootstrap`...
> yarn-check in precommit or prepush is conflict with lerna publish workflow This was lerna bug. It is fixed in 2.8.0 - [Release v2.8.0 · lerna/lerna](https://github.com/lerna/lerna/releases/tag/v2.8.0 "Release v2.8.0 · lerna/lerna")...