textlint / textlint

The pluggable natural language linter for text and markdown.
https://textlint.github.io/
MIT License
2.85k stars 158 forks source link

Install plugins/rules from given .textlintrc configuration file #825

Closed raphaelstolt closed 2 years ago

raphaelstolt commented 3 years ago

It would be nice to have a single source of configuration i.e. .textlintrc. So that a given .textlintrc configuration file would also define the rulesets to be installed. Therefor the textlint CLI could have an additional option e.g. --install-rules which takes the configured rules from the configuration file and installs the corresponding rule npm packages.

Didn't find a similar issue for this feature request, so feel free to close this one if it's a duplicate.

azu commented 3 years ago

e.g. --install-rules which takes the configured rules from the configuration file and installs the corresponding rule npm packages.

Probably, we will not implement it in textlint core because textlint not want to depended on npm/yarn/pnpm etc…

Maybe, this utility cli help you to install packages. https://github.com/textlint/textlintrc-to-package-list

$ npm install -g textlintrc-to-package-list
$ textlintrc-to-package-list .textlintrc | xargs npm install
azu commented 2 years ago

Closed. Feel free to re-open if this isssue was not resolved