Skip to content

Commit 27fcae6

Browse files
committed
Switch Prettier config to TypeScript
1 parent 7bd2376 commit 27fcae6

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-options="--experimental-strip-types --no-warnings=ExperimentalWarning"
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { type Config } from "prettier";
2+
13
/**
24
* @see https://prettier.io/docs/en/configuration.html
3-
* @type {import("prettier").Config}
45
*/
5-
const config = {
6+
const config: Config = {
67
plugins: ["prettier-plugin-tailwindcss"],
78
overrides: [
89
{

tsconfig.node.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"compilerOptions": {
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
44
"target": "ES2023",
5-
"lib": ["ES2023"],
5+
"lib": [
6+
"ES2023"
7+
],
68
"module": "ESNext",
79
"skipLibCheck": true,
810
/* Bundler mode */
@@ -19,5 +21,10 @@
1921
"noFallthroughCasesInSwitch": true,
2022
"noUncheckedSideEffectImports": true
2123
},
22-
"include": ["vite.config.ts", "vitest.config.ts", "lingui.config.ts"]
23-
}
24+
"include": [
25+
"vite.config.ts",
26+
"vitest.config.ts",
27+
"lingui.config.ts",
28+
"prettier.config.ts"
29+
],
30+
}

0 commit comments

Comments
 (0)