Skip to content

Commit 8d7b6f6

Browse files
committed
chore(prettier): upgrade to latest and sort imports
1 parent 237d95e commit 8d7b6f6

33 files changed

+86
-74
lines changed

.prettierrc

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+
}

__tests__/core/generate.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import fs from "fs";
2-
32
import { generate } from "../../lib/core";
43
import { describeAllImplementations } from "../helpers";
54

__tests__/core/list-different.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { listDifferent } from "../../lib/core";
2-
32
import { describeAllImplementations } from "../helpers";
43

54
describeAllImplementations((implementation) => {

__tests__/core/remove-file.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import fs from "fs";
22
import path from "path";
3-
4-
import { DEFAULT_OPTIONS } from "../../lib/load";
53
import { alerts } from "../../lib/core/alerts";
64
import { removeSCSSTypeDefinitionFile } from "../../lib/core/remove-file";
5+
import { DEFAULT_OPTIONS } from "../../lib/load";
76

87
describe("removeFile", () => {
98
const originalTestFile = path.resolve(__dirname, "..", "removable.scss");

__tests__/core/write-file.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import fs from "fs";
22
import path from "path";
3-
43
import { writeFile } from "../../lib/core";
5-
64
import { describeAllImplementations } from "../helpers";
75

86
describeAllImplementations((implementation) => {
@@ -276,7 +274,7 @@ describeAllImplementations((implementation) => {
276274
outputFolder: null,
277275
});
278276

279-
expect(fs.statSync).not.toBeCalled();
277+
expect(fs.statSync).not.toHaveBeenCalledWith(testFile);
280278
});
281279
});
282280
});

__tests__/dart-sass/dart-sass.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from "fs";
22
import slash from "slash";
3-
43
import { alerts } from "../../lib/core";
54
import { main } from "../../lib/main";
65

__tests__/implementations/get-implementation.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import sass from "sass";
21
import nodeSass from "node-sass";
3-
2+
import sass from "sass";
43
import { getImplementation } from "../../lib/implementations";
54

65
describe("getImplementation", () => {

__tests__/load.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "path";
2-
import { loadConfig, mergeOptions, DEFAULT_OPTIONS } from "../lib/load";
2+
import { DEFAULT_OPTIONS, loadConfig, mergeOptions } from "../lib/load";
33

44
const CONFIG_CASES = [
55
"js-default-export",

__tests__/main.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import fs from "fs";
22
import path from "path";
33
import slash from "slash";
4-
54
import { alerts } from "../lib/core";
65
import { main } from "../lib/main";
76
import { describeAllImplementations } from "./helpers";

__tests__/prettier/prettier.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import prettier from "prettier";
12
import { attemptPrettier } from "../../lib/prettier";
23
import { classNamesToTypeDefinitions } from "../../lib/typescript";
34

4-
import prettier from "prettier";
5-
65
const input =
76
"export type Styles = {'myClass': string;'yourClass': string;}; export type Classes = keyof Styles; declare const styles: Styles; export default styles;";
87

0 commit comments

Comments
 (0)