Skip to content

Commit 0a662dc

Browse files
authored
Change prettier configuration PR 8
Change prettier configuration
2 parents b8adb79 + ad88351 commit 0a662dc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
package-lock.json
3+
dist
4+
build
5+
coverage

.prettierrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
2-
"semi": true,
3-
"trailingComma": "es5",
4-
"singleQuote": true,
2+
"$schema": "https://json.schemastore.org/prettierrc",
53
"printWidth": 100,
64
"tabWidth": 2,
75
"useTabs": false,
6+
"semi": true,
7+
"singleQuote": true,
8+
"trailingComma": "es5",
89
"bracketSpacing": true,
9-
"arrowParens": "avoid"
10+
"arrowParens": "always",
11+
"endOfLine": "lf"
1012
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test:run": "vitest run",
2020
"lint": "eslint src --ext .ts",
2121
"lint:fix": "eslint src --ext .ts --fix",
22-
"format": "prettier --write src/**/*.ts",
22+
"format": "prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"",
2323
"prepublishOnly": "npm run clean && npm run build",
2424
"cli": "node dist/cli.js",
2525
"eval": "node dist/cli.js eval",

0 commit comments

Comments
 (0)