azu

Results 808 comments of azu

npx(which is built-in npm 5) help this. - [Introducing npx: an npm package runner – Kat Marchán – Medium](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b "Introducing npx: an npm package runner – Kat Marchán – Medium")

Oneliner for textlint rules. ```shell $ npx -p textlint -p textlint-rule-no-todo textlint --rule no-todo README.md ```

Is this issue related with https://github.com/textlint-rule/textlint-rule-spellchecker ? Probably, it is a rule issue, not textlint issue. FYI: https://github.com/textlint-rule/textlint-rule-spellchecker use OS's native spellchecker. Maybe, the result is diffrent by OS.

textlint support [JavaScript config file](https://textlint.github.io/docs/configuring.html). `.textlintrc.js`: ```js const ENABLE_SPELLCHECKER = !!process.env.ENABLE_SPELLCHECKER; module.exports = { rules: { "spellchecker": ENABLE_SPELLCHECK } } ``` ``` $ ENABLE_SPELLCHECKER=true textlint README.md ```

WIP https://github.com/azu/textlint-plugin-asciidoc - [x] Covert textmate bundle to tokens - [ ] Create AST from tokens. it's difficult! :(

Experimental release https://github.com/azu/textlint-plugin-asciidoc-loose

@seikichi Great! > should I contribute to existing plugins instead of developing a new plugin? It is good thing that a developer who has a motivation develop plugin. I'm ok...

I have no idea for multiple extensions. We need to research that other program like ESLint, Editor(VSCode, Atom) support it. 📝 Note: textlint just use [`path.extname(path)`](https://nodejs.org/api/path.html#path_path_extname_path) and it return `.php`...

I think that endswith approach is reasonable. https://github.com/textlint/textlint/blob/d4c5075b5a7bcbf875d7cee122de7dc5253d325e/packages/%40textlint/kernel/src/descriptor/TextlintPluginDescriptors.ts#L42-L46 → ```ts findPluginDescriptorWithExt(ext: string) { return this.descriptors.find((descriptor) => { // availableExtensions are defined by each plugins // ext is current process file...

I agree with you. Probably, we need to use `npm install textlint --save-dev` on the documention by default like https://eslint.org/