Skip to content

Commit 75b86ee

Browse files
committed
use createOnce for oxlint rule
1 parent d271435 commit 75b86ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/oxlint-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const preferVitePlusImportsRule: OxlintRule = {
126126
preferVitePlusImports: "Use '{{to}}' instead of '{{from}}' in Vite+ projects.",
127127
},
128128
},
129-
create(context: ReportContext) {
129+
createOnce(context: ReportContext) {
130130
return {
131131
ImportDeclaration(node: VisitorNode<'ImportDeclaration'>) {
132132
maybeReportLiteral(context, node.source);

0 commit comments

Comments
 (0)