Command line interface for project files with .editorconfig
Last updated 4 years ago by htmlacademy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @htmlacademy/check-editorconfig 
SYNC missed versions from official npm registry.


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.


$ npm install -g @htmlacademy/check-editorconfig


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

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


    -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'


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.

Current Tags

  • 0.0.5                                ...           latest (4 years ago)

4 Versions

  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 1
Last Month 2
Dependencies (5)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |