Skip to content

Commit 420d9e6

Browse files
committed
chore: fix prettier import sorting plugin
1 parent 1a729ba commit 420d9e6

File tree

13 files changed

+26
-25
lines changed

13 files changed

+26
-25
lines changed

.moon/project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tasks:
2020
format:
2121
command: "prettier --config @in(0) --ignore-path @in(1) --check ."
2222
inputs:
23-
- "/.prettierrc.js"
23+
- "/.prettierrc.json"
2424
- "/.prettierignore"
2525
- "@globs(sources)"
2626
- "@globs(tests)"

.prettierrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["prettier-plugin-organize-imports"]
3+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"jest": "^29.3.1",
2222
"jest-config": "^29.3.1",
2323
"prettier": "^2.7.1",
24-
"prettier-plugin-organize-imports": "^2.3.4",
24+
"prettier-plugin-organize-imports": "^3.2.2",
2525
"rollup": "^3.10.0",
2626
"rollup-plugin-dts": "^5.1.1",
2727
"rollup-plugin-esbuild": "^5.0.0",

packages/benchmark.js-plugin/rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from "rollup";
2-
import pkg from "./package.json" assert { type: "json" };
32
import { declarationsPlugin, jsPlugins } from "../../rollup.options";
3+
import pkg from "./package.json" assert { type: "json" };
44

55
const entrypoint = "src/index.ts";
66

packages/benchmark.js-plugin/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Benchmark from "benchmark";
21
import { initCore, measurement, optimizeFunctionSync } from "@codspeed/core";
3-
import { get as getStackTrace } from "stack-trace";
4-
import path, { dirname } from "path";
2+
import Benchmark from "benchmark";
53
import { findUpSync, Options } from "find-up";
4+
import path, { dirname } from "path";
5+
import { get as getStackTrace } from "stack-trace";
66

77
declare const __VERSION__: string;
88

packages/benchmark.js-plugin/tests/unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { mockDeep, mockReset } from "jest-mock-extended";
22
const mockCore = mockDeep<Measurement>();
33

4+
import type { Measurement } from "@codspeed/core";
45
import Benchmark from "benchmark";
56
import { withCodSpeed } from "..";
6-
import type { Measurement } from "@codspeed/core";
77

88
jest.mock("@codspeed/core", () => ({
99
...jest.requireActual("@codspeed/core"),

packages/core/rollup.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import resolve from "@rollup/plugin-node-resolve";
2-
import json from "@rollup/plugin-json";
3-
import commonjs from "@rollup/plugin-commonjs";
4-
import esbuild from "rollup-plugin-esbuild";
51
import { defineConfig } from "rollup";
62
import { declarationsPlugin, jsPlugins } from "../../rollup.options";
73

packages/tinybench-plugin/benches/sample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withCodSpeed } from "..";
21
import { Bench } from "tinybench";
2+
import { withCodSpeed } from "..";
33

44
const bench = withCodSpeed(new Bench({ time: 100 }));
55

packages/tinybench-plugin/rollup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from "rollup";
2-
import pkg from "./package.json" assert { type: "json" };
32
import { declarationsPlugin, jsPlugins } from "../../rollup.options";
3+
import pkg from "./package.json" assert { type: "json" };
44

55
const entrypoint = "src/index.ts";
66

0 commit comments

Comments
 (0)