npm.io
1.0.2 • Published 8 years agoCLI

eslint-git-filter

Licence
MIT
Version
1.0.2
Deps
1
Size
6 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

eslint-git-filter

git filter for eslint

Add to your git config:

[filter "eslint"]
  clean = eslint-git-filter [...switches] --filename="%f"

Add to your .gitattributes file:

*.js	filter=eslint

Possible switches are:

--standalone - Do not start service. Default is off.

--socket=<PortNumber|UnixPath> - Use this socket for the service instead of automatic detection. By default each git directory is handled by its own service.

--service-idle-time= - Default is 7200.