Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb72d6d

Browse files
committed
refactor: standardize import statements and improve test readability
1 parent bd03fd8 commit bb72d6d

16 files changed

Lines changed: 2647 additions & 1915 deletions

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CHANGELOG.md
2+
pnpm-lock.yaml
3+
CLAUDE.md
4+
README.md

eslint.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { defineConfig } from "eslint/config"
2+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
3+
4+
export default defineConfig(eslintPluginPrettierRecommended, {
5+
rules: {
6+
// Stylistic
7+
"@stylistic/quotes": "off",
8+
"@stylistic/brace-style": "off",
9+
"@stylistic/arrow-parens": "off",
10+
"@stylistic/member-delimiter-style": "off",
11+
"@stylistic/operator-linebreak": "off",
12+
"@stylistic/indent": "off",
13+
"@stylistic/quote-props": "off",
14+
},
15+
})

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
"scripts": {
4242
"build": "tsdown",
4343
"watch": "tsdown --watch",
44-
"lint": "oxlint --type-aware",
45-
"lint:fix": "oxlint --type-aware --fix",
46-
"format": "oxfmt",
47-
"format:check": "oxfmt --check",
44+
"lint": "eslint .",
45+
"lint:fix": "eslint . --fix",
46+
"format": "prettier --write .",
47+
"format:check": "prettier --check .",
4848
"test": "vitest run",
4949
"test:generate": "tsx scripts/generate.ts",
5050
"test:typecheck": "tsc --noEmit --project tsconfig.test.json",
@@ -69,12 +69,16 @@
6969
"@zenstackhq/language": "^3.0.0",
7070
"@zenstackhq/sdk": "^3.0.0",
7171
"changelogen": "^0.6.2",
72+
"eslint": "^9.39.2",
73+
"eslint-config-prettier": "10.1.8",
74+
"eslint-plugin-prettier": "5.5.4",
7275
"glob": "^13.0.0",
7376
"happy-dom": "^20.0.11",
7477
"nock": "^14.0.10",
7578
"oxfmt": "^0.21.0",
7679
"oxlint": "^1.36.0",
7780
"pinia": "^3.0.4",
81+
"prettier": "^3.7.4",
7882
"tsdown": "^0.18.3",
7983
"tsx": "^4.21.0",
8084
"typescript": "^5.9.3",

0 commit comments

Comments
 (0)