Skip to content

textlint/textlintrc-to-package-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlintrc-to-package-list Actions Status: test

Listing package name from .textlintrc

Main use case is installing npm package from .textlinrc

Installation

npm install textlintrc-to-package-list -g

Usage

$ textlintrc-to-package-list ./path/to/.textlintrc

Exaple

Input .textlintrc

{
  "plugins": [
    "@textlint/html"
  ],
  "filters": {
    "comments": true
  },
  "rules": {
    "@textlint/preset-ja-technical-writing": true,
    "textlint-rule-no-todo": true,
    "sentence-length": {
      "max": 100
    }
  }
}

Output

@textlint/textlint-plugin-html
textlint-filter-rule-comments
@textlint/textlint-rule-preset-ja-technical-writing
textlint-rule-no-todo
textlint-rule-sentence-length

UseCase

Install npm package from .textlintrc

npm install -g textlintrc-to-package-list
textlintrc-to-package-list .textlintrc | xargs npm install

or

npx --quiet textlintrc-to-package-list .textlintrc.json | xargs npm install

Do Install all package from .textlintrc!

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

About

Command line util: Listing package name from .textlintrc

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published