
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
tslint-gitstaged
Advanced tools
Please use v5.4.3 or higher version of tslint
Using current git status to find out modfied and added files passing tslint, to prevent lint the whole repository again and again. This is a nice package to use along with git precommit
.
npm install tslint-gitstaged
Install global
npm i -g tslint-gitstaged
Usage
Usage: tslintgs [options] [command]
Commands:
help Display help
Options:
-e, --ext [value] extension names, can use multiple extensions seperate with comma (defaults to "ts,tsx")
-g, --git [value] your git directory, where your .git exist (defaults to "./")
-h, --help Output usage information
-t, --tslint [value] tslint.json file path (defaults to "./tslint.json")
-v, --version Output the version number
.git
string | string[]
: which kind of extensions do you want to lint with tslint.// TslintGitStaged(<tslint.json path>, <git repository path>, <extension default 'ts'>)
new TslintGitStaged(resolve(__dirname, "./tslint.json"), resolve(__dirname, "../"), ".ts").start()
.then((result) => {
// success no lint error, done lint
})
.catch((err) => {
// err, when lint failed
});
MIT
FAQs
tslint-gitstaged
We found that tslint-gitstaged demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.