@kyh/prettier-config 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cache/.prettiercache +1 -0
- package/.turbo/turbo-format.log +7 -0
- package/CHANGELOG.md +6 -0
- package/base.js +0 -23
- package/package.json +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[["1","2","3","4"],{"key":"5","value":"6"},{"key":"7","value":"8"},{"key":"9","value":"10"},{"key":"11","value":"12"},"/Users/kyh/Documents/Projects/kyh/config/tooling/prettier/CHANGELOG.md",{"size":1318,"mtime":1734248664328,"hash":"13","data":"14"},"/Users/kyh/Documents/Projects/kyh/config/tooling/prettier/package.json",{"size":651,"mtime":1739123965232,"hash":"15","data":"16"},"/Users/kyh/Documents/Projects/kyh/config/tooling/prettier/tsconfig.json",{"size":94,"mtime":1723392759143,"hash":"17","data":"18"},"/Users/kyh/Documents/Projects/kyh/config/tooling/prettier/base.js",{"size":846,"mtime":1739898841620,"hash":"19","data":"20"},"ecad0aa319c234f8f3bae894346f8677",{"hashOfOptions":"21"},"d8ddc3a5e89f207b9170e47e639e530e",{"hashOfOptions":"22"},"5e60f7d12fea81abebae05eec8fdcbc1",{"hashOfOptions":"23"},"acb1b547639cbe65e96381755b747177",{"hashOfOptions":"24"},"373789911","2322726646","2517378481","1403119938"]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @kyh/prettier-config@1.1.3 format /Users/kyh/Documents/Projects/kyh/config/tooling/prettier
|
|
4
|
+
> prettier --check . --ignore-path ../../.gitignore --cache --cache-location .cache/.prettiercache --write
|
|
5
|
+
|
|
6
|
+
Checking formatting...
|
|
7
|
+
base.js[2K[1GCHANGELOG.md[2K[1Gpackage.json[2K[1Gtsconfig.json[2K[1GAll matched files use Prettier code style!
|
package/CHANGELOG.md
CHANGED
package/base.js
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
|
|
4
|
-
const fileExists = async (filePath) => {
|
|
5
|
-
try {
|
|
6
|
-
await fs.promises.access(filePath);
|
|
7
|
-
return true;
|
|
8
|
-
} catch {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const tailwindConfigPath = path.join(
|
|
14
|
-
process.cwd(),
|
|
15
|
-
"packages/tailwind/src/web.ts",
|
|
16
|
-
);
|
|
17
|
-
const tailwindConfigExists = await fileExists(tailwindConfigPath);
|
|
18
|
-
|
|
19
1
|
/** @typedef {import("prettier").Config} PrettierConfig */
|
|
20
2
|
/** @typedef {import("prettier-plugin-tailwindcss").PluginOptions} TailwindConfig */
|
|
21
3
|
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
|
|
@@ -43,9 +25,4 @@ const config = {
|
|
|
43
25
|
importOrderTypeScriptVersion: "4.4.0",
|
|
44
26
|
};
|
|
45
27
|
|
|
46
|
-
if (tailwindConfigExists) {
|
|
47
|
-
console.log("Using Tailwind config from", tailwindConfigPath);
|
|
48
|
-
config.tailwindConfig = tailwindConfigPath;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
28
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kyh/prettier-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
".": "./base.js"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.
|
|
13
|
-
"prettier": "^3.
|
|
14
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
12
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
13
|
+
"prettier": "^3.5.1",
|
|
14
|
+
"prettier-plugin-tailwindcss": "^0.6.11"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"typescript": "^5.7.
|
|
18
|
-
"@kyh/tsconfig": "^1.1.
|
|
17
|
+
"typescript": "^5.7.3",
|
|
18
|
+
"@kyh/tsconfig": "^1.1.4"
|
|
19
19
|
},
|
|
20
20
|
"prettier": "@kyh/prettier-config",
|
|
21
21
|
"scripts": {
|