
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 2 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.