![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.