From 8bbb46e5901f57b3e049edc54bbd1de95ef84e65 Mon Sep 17 00:00:00 2001 From: "sam.li" Date: Mon, 29 Apr 2024 21:56:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20eslint(=E7=89=88=E6=9C=AC=E6=9B=B4?= =?UTF-8?q?=E6=96=B0,=E5=B7=B2=E8=A2=AB=E5=BC=83=E7=94=A8=E7=9A=84=20CLIEn?= =?UTF-8?q?gine=20=E6=96=B9=E6=B3=95=E3=80=82=E5=9C=A8=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=9A=84=20ESLint=20=E4=B8=AD=EF=BC=8CCLIEng?= =?UTF-8?q?ine=20=E6=96=B9=E6=B3=95=E5=B7=B2=E7=BB=8F=E8=A2=AB=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E4=BA=86=E3=80=82=E7=9B=B8=E5=8F=8D=EF=BC=8C=E6=82=A8?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E4=BD=BF=E7=94=A8=20ESLint=20=E7=B1=BB?= =?UTF-8?q?=E6=9D=A5=E5=88=9B=E5=BB=BA=E4=B8=80=E4=B8=AA=E6=96=B0=E7=9A=84?= =?UTF-8?q?=20ESLint=20=E5=AE=9E=E4=BE=8B=EF=BC=8C=E7=84=B6=E5=90=8E?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=AE=83=E7=9A=84=20API=E3=80=82)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-transformer-wx/src/eslint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-transformer-wx/src/eslint.ts b/packages/taro-transformer-wx/src/eslint.ts index e28af9bcdc0b..793ab1bdb25a 100644 --- a/packages/taro-transformer-wx/src/eslint.ts +++ b/packages/taro-transformer-wx/src/eslint.ts @@ -1,11 +1,11 @@ // import * as t from '@babel/types' import { PluginPass } from '@babel/core' import { Visitor } from '@babel/traverse' -import { CLIEngine } from 'eslint' +import { ESLint } from 'eslint' import { codeFrameError } from './utils' -const cli = new CLIEngine({ +const cli = new ESLint({ baseConfig: { extends: ['plugin:taro/transformer'], },