Skip to content

Commit

Permalink
fix(printer): 修正 axios 的导入
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcome committed May 5, 2023
1 parent f12c34c commit 61c5b17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/printers/BasePrinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import prettier from 'prettier';

export class BasePrinter {
static defaults: StrictPrinterOptions = {
axiosImport: `import { Axios } from 'axios';
const axios = new Axios();`,
axiosImport: `import axios from 'axios';`,
prettier: {
singleQuote: true,
},
Expand Down

0 comments on commit 61c5b17

Please sign in to comment.