
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@qlover/eslint-plugin
Advanced tools
ESLint plugin for qlover's TypeScript projects.
👉 中文文档 | English Docs
npm install --save-dev @qlover/eslint-plugin
Add @qlover to the plugins section of your .eslintrc configuration file:
{
"plugins": ["@qlover"]
}
Then configure the rules you want to use:
{
"rules": {
"@qlover-eslint/ts-class-method-return": ["error", {
"allowConstructors": true,
"allowPrivateMethods": false
}]
}
}
Or use the recommended configuration:
{
"extends": ["plugin:@qlover-eslint/recommended"]
}
Enforces return type annotations for class methods to improve code readability and type safety.
allowConstructors (default: true) - When true, constructors are allowed to omit return type annotationsallowPrivateMethods (default: false) - When true, private methods (prefixed with #) are allowed to omit return type annotationsExample of incorrect code:
class Example {
method() { // Missing return type
return true;
}
#privateMethod() { // Missing return type (not allowed by default)
return 'private';
}
}
Example of correct code:
class Example {
constructor() { // Constructor return type is optional by default
// initialization
}
method(): boolean {
return true;
}
#privateMethod(): string {
return 'private';
}
}
For more detailed information about each rule, please check the rule documentation.
FAQs
ESLint plugin for qlover's TypeScript projects
The npm package @qlover/eslint-plugin receives a total of 31 weekly downloads. As such, @qlover/eslint-plugin popularity was classified as not popular.
We found that @qlover/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.