@adonisjs/eslint-plugin
Advanced tools
Comparing version
@@ -6,2 +6,3 @@ declare const _default: { | ||
recommended: string; | ||
url: string; | ||
}, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
@@ -11,2 +12,3 @@ 'prefer-lazy-listener-import': import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferLazyListenerImport", [], { | ||
recommended: string; | ||
url: string; | ||
}, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
@@ -13,0 +15,0 @@ }; |
@@ -17,3 +17,4 @@ // src/rules/prefer_lazy_listener_import.ts | ||
description: "(Needed for HMR) Prefer lazy listener import over standard import", | ||
recommended: "recommended" | ||
recommended: "recommended", | ||
url: "https://github.com/adonisjs/eslint-plugin-adonisjs?tab=readme-ov-file#prefer-lazy-listener-import" | ||
}, | ||
@@ -91,3 +92,4 @@ schema: [], | ||
description: "(Needed for HMR) Prefer lazy controller import over standard import", | ||
recommended: "recommended" | ||
recommended: "recommended", | ||
url: "https://github.com/adonisjs/eslint-plugin-adonisjs?tab=readme-ov-file#prefer-lazy-controller-import" | ||
}, | ||
@@ -94,0 +96,0 @@ schema: [], |
@@ -7,3 +7,4 @@ /** | ||
recommended: string; | ||
url: string; | ||
}, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
export default _default; |
@@ -7,3 +7,4 @@ /** | ||
recommended: string; | ||
url: string; | ||
}, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
export default _default; |
@@ -5,5 +5,7 @@ import { ESLintUtils } from '@typescript-eslint/utils'; | ||
recommended: string; | ||
url: string; | ||
}>>) => ESLintUtils.RuleModule<MessageIds, Options, { | ||
description: string; | ||
recommended: string; | ||
url: string; | ||
}, ESLintUtils.RuleListener>; |
{ | ||
"name": "@adonisjs/eslint-plugin", | ||
"description": "ESLint plugin to enforce AdonisJS app specific linting rules", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "node": ">=20.6.0" |
@@ -59,2 +59,5 @@ # @adonisjs/eslint-plugin | ||
> [!IMPORTANT] | ||
> The HMR mode of AdonisJS only works with Lazy loaded controllers | ||
The `@adonisjs/prefer-lazy-controller-import` rule complains when you import a controller using the import expression and assign it to a route. For example: | ||
@@ -83,2 +86,5 @@ | ||
> [!IMPORTANT] | ||
> The HMR mode of AdonisJS only works with Lazy loaded event listeners | ||
The `@adonisjs/prefer-lazy-listener-import` rule complains when you import an event listener using the import expression and assign it to an event. For example: | ||
@@ -85,0 +91,0 @@ |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29697
2.72%206
4.04%121
5.22%0
-100%1
Infinity%