Skip to content

Commit c1fabf9

Browse files
committed
style: lint code
1 parent 14c5c0b commit c1fabf9

25 files changed

+1305
-621
lines changed

.vscode/settings.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,28 @@
22
"files.associations": {
33
"*.css": "tailwindcss"
44
},
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": "explicit",
7+
"source.organizeImports": "never"
8+
},
9+
"eslint.useFlatConfig": true,
10+
"editor.formatOnSave": false,
11+
"eslint.validate": ["html", "css", "scss", "json", "jsonc"],
12+
"files.watcherExclude": {
13+
"**/.git/objects/**": true,
14+
"**/.git/subtree-cache/**": true,
15+
"**/node_modules/*/**": true,
16+
"**/.hg/store/**": true
17+
},
18+
"prettier.enable": false,
19+
"typescript.tsdk": "node_modules/typescript/lib",
520
"tailwindCSS.experimental.classRegex": [
621
["cva\\(((?:[^()]|\\([^()]*\\))*)\\)", "[\"'`]?([^\"'`]+)[\"'`]?"],
722
["cn\\(((?:[^()]|\\([^()]*\\))*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
823
// "cva\\(([^)]*)\\)",
924
// "[\"'`]([^\"'`]*).*?[\"'`]"
1025
],
1126
"editor.quickSuggestions": {
12-
"strings": "on"
13-
}
14-
}
27+
"strings": "on"
28+
}
29+
}

package.json

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
{
22
"name": "skyroc-ui",
3+
"type": "module",
34
"private": true,
5+
"packageManager": "pnpm@9.0.0",
6+
"engines": {
7+
"node": ">=18"
8+
},
49
"scripts": {
510
"build": "turbo run build",
11+
"check-types": "turbo run check-types",
612
"dev": "turbo run dev",
7-
"lint": "turbo run lint",
813
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
9-
"check-types": "turbo run check-types"
14+
"lint": "turbo run lint",
15+
"lint:fix": "eslint . --fix"
1016
},
1117
"devDependencies": {
12-
"prettier": "^3.6.0",
13-
"turbo": "^2.5.4",
18+
"@soybeanjs/eslint-config": "1.7.0",
19+
"@unocss/eslint-config": "66.3.2",
20+
"eslint-plugin-react": "7.37.5",
21+
"eslint-plugin-react-hooks": "5.2.0",
22+
"eslint-plugin-react-refresh": "0.4.20",
23+
"eslint-plugin-sort": "4.0.0",
24+
"prettier": "3.6.0",
25+
"turbo": "2.5.4",
1426
"typescript": "5.8.2"
15-
},
16-
"packageManager": "pnpm@9.0.0",
17-
"engines": {
18-
"node": ">=18"
1927
}
2028
}

packages/ui-variants/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"sideEffects": false,
88
"exports": {
99
".": {
10-
"types": "./dist/index.d.ts",
11-
"import": "./dist/index.mjs"
10+
"types": "./src/index.ts",
11+
"import": "./src/index.ts"
1212
}
1313
},
1414
"main": "./dist/index.mjs",
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"clsx": "2.1.1",
2424
"tailwind-merge": "3.3.0",
25-
"class-variance-authority": "0.7.1"
25+
"tailwind-variants": "1.0.0"
2626
},
2727
"devDependencies": {
2828
"vite": "6.3.5",

0 commit comments

Comments
 (0)