Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 6, 2023
1 parent 5a5d49d commit 4601589
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 87 deletions.
89 changes: 13 additions & 76 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/array.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { parseModule } from "magicast";
import { generate } from "./_utils";
import { parseModule } from "magicast";

describe("array", () => {
it("array operations", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/builders/expression.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { builders, parseModule } from "magicast";
import { generate } from "../_utils";
import { builders, parseModule } from "magicast";

describe("builders/expression", () => {
it("new expression", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/builders/function-call.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { builders, parseModule } from "magicast";
import { generate } from "../_utils";
import { builders, parseModule } from "magicast";

describe("builders/functionCall", () => {
it("new", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/builders/raw.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { builders, parseModule } from "magicast";
import { generate } from "../_utils";
import { builders, parseModule } from "magicast";

describe("builders/raw", () => {
it("object", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/errors.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, describe, it } from "vitest";
import { parseExpression, parseModule } from "magicast";
import { generate } from "./_utils";
import { parseExpression, parseModule } from "magicast";

describe("errors", () => {
it("ternary", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/exports.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, it, describe } from "vitest";
import { parseModule } from "magicast";
import { generate } from "./_utils";
import { parseModule } from "magicast";

describe("exports", () => {
it("manipulate exports", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/function-call.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from "vitest";
import { builders, parseModule, ProxifiedModule } from "magicast";
import { generate } from "./_utils";
import { builders, parseModule, ProxifiedModule } from "magicast";

describe("function-calls", () => {
it("function wrapper", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/general.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, it, describe } from "vitest";
import { generateCode, parseModule, parseExpression } from "magicast";
import { generate } from "./_utils";
import { generateCode, parseModule, parseExpression } from "magicast";

describe("general", () => {
it("basic object and array", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/nuxt.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { it, describe, expect } from "vitest";
import { parseModule } from "magicast";
import { generate } from "../_utils";
import { parseModule } from "magicast";
import { addNuxtModule } from "magicast/helpers";

describe("helpers > nuxt", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/vite.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { it, describe, expect } from "vitest";
import { parseModule } from "magicast";
import { generate } from "../_utils";
import { parseModule } from "magicast";
import { addVitePlugin, updateVitePluginConfig } from "magicast/helpers";

describe("helpers > vite", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/imports.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, it, describe } from "vitest";
import { parseModule } from "magicast";
import { generate } from "./_utils";
import { parseModule } from "magicast";

describe("imports", () => {
it("manipulate imports", async () => {
Expand Down

0 comments on commit 4601589

Please sign in to comment.