1.3.0 • Published 10 months ago
@adonisjs/eslint-plugin v1.3.0
@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',
},
}
2.0.0-beta.2
10 months ago
2.0.0-beta.1
10 months ago
2.0.0-beta.0
10 months ago
2.0.0-beta.5
10 months ago
2.0.0-beta.4
10 months ago
2.0.0-beta.3
10 months ago
1.3.0
1 year ago
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago