@htmlacademy/check-editorconfig

0.0.5 • Public • Published

check-editorconfig

Simple command line interface (CLI) for .editorconfig based on the node-lintspaces module. Uses .editorconfig by default from current directory. To change default location use -e argument. Supports GLOB format.

Install

$ npm install -g @htmlacademy/check-editorconfig

Help

zeckson@mac ~/d/editorconfig-cli (master)> check-editorconfig --help                                                                                14:54:16

  Usage: check-editorconfig [options] <file ... or 'glob'>

  Options:

    -h, --help                              output usage information
    -e, --editorconfig <file>               pass .editorconfig (by default it will look in './.editorconfig')
    -i, --ignores <profile-name or regexp>  ignoring profiles. Like ('js-comments'|'java-comments'|'xml-comments'|'html-comments'|...). Defaults are 'js-comments'|'html-comments'
    -v, --verbose                           verbose output

Example Commands

Check all JavaScript files recursively, using ./.editorconfig as settings:

check-editorconfig **/*.js

The same as above but with GLOB format:

check-editorconfig '**/*.js'

Ignores

lintspaces supports built-in ignores.

Using built in ignores can be done like so:

check-editorconfig -i 'js-comments' -i 'c-comments'

If parameters are omitted, then js-comments and html-comments are used.

Package Sidebar

Install

npm i @htmlacademy/check-editorconfig

Weekly Downloads

2

Version

0.0.5

License

MIT

Last publish

Collaborators

  • nakleikoff
  • expa