Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
nz-tslint-rules
Advanced tools
TSLint rules for NG-ZORRO.
$ npm i nz-tslint-rules -D
# or
$ yarn add nz-tslint-rules -D
NG-ZORRO | TSLint Rules |
---|---|
8.x | 0.800.x |
9.x | 0.900.x |
This repository provides the following rules:
Rule name | Configuration | Description |
---|---|---|
nz-secondary-entry-imports | none | Updates the import paths to secondary entry point |
Using the current set of rules allows you to automatically migrate your project which uses primary entry to secondary entry.
// Before
import {
NzAutocompleteModule,
NzButtonModule,
NzCardModule,
NzTableModule,
NzToolTipModule
} from 'ng-zorro-antd';
import { NzNoAnimationModule } from 'ng-zorro-antd';
// After
import { NzAutocompleteModule } from 'ng-zorro-antd/auto-complete';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzCardModule } from 'ng-zorro-antd/card';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
import { NzNoAnimationModule } from 'ng-zorro-antd/core/no-animation';
Note: This rule does not applicable if you use import { NgZorroAntdModule } from 'ng-zorro-antd'
.
Add this rule set in your tslint.json
file.
{
"rulesDirectory": [
"node_modules/nz-tslint-rules"
],
"rules": {
"nz-secondary-entry-imports": true
}
}
MIT
FAQs
TSLint rules targeting NG-ZORRO
The npm package nz-tslint-rules receives a total of 1,518 weekly downloads. As such, nz-tslint-rules popularity was classified as popular.
We found that nz-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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.