You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@adonisjs/eslint-plugin

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/eslint-plugin

ESLint plugin to enforce AdonisJS app specific linting rules

1.3.1
Source
npmnpm
Version published
Weekly downloads
18K
-21.12%
Maintainers
3
Weekly downloads
 
Created
Source

@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.

Installation

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

Usage

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',
  },
}

Keywords

eslint

FAQs

Package last updated on 24 May 2025

Did you know?

Socket

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.

Install

Related posts