Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
nwronski-tslint-rules
Advanced tools
This repo contains my TSLint rule configurations for projects that use TypeScript and/or Angular.
Use the TypeScript Rules Installation for plain Node + TypeScript projects or the Angular Rules Installation for Angular + TypeScript projects.
Install the nwronski-tslint-rules
and tslint
modules.
npm i -D nwronski-tslint-rules tslint
Create a tslint.json
file in the root folder of your project and add
the following:
{
"extends": "nwronski-tslint-rules"
}
Install the nwronski-tslint-rules
, tslint
, and codelyzer
modules.
npm i -D nwronski-tslint-rules tslint codelyzer
Create a tslint.json
file in the root folder of your project and add
the following:
{
"extends": "nwronski-tslint-rules/tslint-ng2.json",
"rules": {
"directive-selector": [ true, "attribute", "nw", "camelCase" ],
"component-selector": [ true, "element", "nw", "kebab-case" ]
}
}
Don't forget to change nw
to your preferred prefix for component and directive
selectors.
Add a script to the scripts
section of your package.json
, making sure to
set the correct pattern for your source files (the example uses src/**/*.ts
):
{
"scripts": {
"lint": "tslint --fix --config ./tslint.json --project ./tsconfig.json 'src/**/*.ts'"
}
}
If you have a build script then you should modify it so that the linting is done before the project can be successfully built. For example, you could prepend the linting command to your build command to make sure the linting is run first.
npm run lint
FAQs
TSLint rule configuration for Node and Angular projects
The npm package nwronski-tslint-rules receives a total of 3 weekly downloads. As such, nwronski-tslint-rules popularity was classified as not popular.
We found that nwronski-tslint-rules 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.