trailing-whitespaces
removes removes trailing whitespaces from your files
Last updated a month ago by o175 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install trailing-whitespaces 
SYNC missed versions from official npm registry.

trailing-whitespaces

removes trailing whitespaces from your files

Instalition:

npm install trailing-whitespaces

Run from command line:

Install globally:

npm install trailing-whitespaces -g

Then run with filenames or globs as arguments:

trailing-whitespaces ./src/**/.js

Remove trailing whitespaces on pre-commit:

Insall husky to set up pre-commit hooks

Then lint-staged. We should run linters only on staged files, right?

npm install trailing-whitespaces husky lint-staged -s

And then add to you package.json root object:

  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.js": [
      "trailing-whitespaces"
    ]
  }

Current Tags

  • 1.0.7                                ...           latest (a month ago)

6 Versions

  • 1.0.7                                ...           a month ago
  • 1.0.6                                ...           2 months ago
  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 23
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |