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