
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
@adonisjs/eslint-plugin
Advanced tools
@adonisjs/eslint-plugin
ESLint plugin to enforce AdonisJS specific linting rules. Following is the list of available rules.
prefer-lazy-controller-import
: Enforces and auto fixes standard HTTP controller imports inside the routes file to lazy imports. Lazy imports improves the application load time.prefer-lazy-listener-import
: Enforces and auto fixes standard event listener imports inside the events file to lazy imports. Lazy imports improves the application load time.Install the package as a development dependency from the npm packages registry.
npm i -D @adonisjs/eslint-plugin
# For yarn lovers
yarn add -D @adonisjs/eslint-plugin
# For pnpm believers
pnpm add -D @adonisjs/eslint-plugin
Add the following rule to your eslint config file.
{
plugins: ['@adonisjs/eslint-plugin'],
rules: {
'@adonisjs/prefer-lazy-controller-import': 'error',
'@adonisjs/prefer-lazy-listener-import': 'error',
},
}
FAQs
ESLint plugin to enforce AdonisJS app specific linting rules
The npm package @adonisjs/eslint-plugin receives a total of 13,171 weekly downloads. As such, @adonisjs/eslint-plugin popularity was classified as popular.
We found that @adonisjs/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.