Skip to content

Commit

Permalink
style: use biome to format & lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccox committed Jan 16, 2025
1 parent 4c2824f commit 7173923
Show file tree
Hide file tree
Showing 107 changed files with 6,458 additions and 5,677 deletions.
8 changes: 0 additions & 8 deletions .prettierignore

This file was deleted.

15 changes: 0 additions & 15 deletions .prettierrc

This file was deleted.

50 changes: 50 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noUnusedTemplateLiteral": "warn",
"noNonNullAssertion": "warn"
},
"suspicious": {
"noExplicitAny": "warn",
"noArrayIndexKey": "warn"
},
"a11y": {
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off",
"noLabelWithoutControl": "off"
},
"complexity": {
"noForEach": "off"
},
"security": {
"noDangerouslySetInnerHtml": "warn"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
30 changes: 0 additions & 30 deletions eslint.config.js

This file was deleted.

197 changes: 99 additions & 98 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,100 +1,101 @@
{
"name": "meilisearch-ui",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"build": "vite build",
"build:safe": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint"
},
"repository": "https://github.com/riccox/meilisearch-ui",
"homepage": "https://github.com/riccox/meilisearch-ui#readme",
"author": "Ricco Xie <[email protected]> (https://riccox.com)",
"dependencies": {
"@arco-design/web-react": "^2.64.0",
"@arco-themes/react-meilisearch": "^0.0.1",
"@douyinfe/semi-ui": "^2.67.0",
"@emotion/react": "^11.13.3",
"@hookform/resolvers": "^3.9.0",
"@mantine/core": "^7.13.2",
"@mantine/form": "^7.13.2",
"@mantine/hooks": "^7.13.2",
"@mantine/modals": "^7.13.2",
"@monaco-editor/react": "^4.6.0",
"@nextui-org/react": "^2.4.8",
"@radix-ui/react-slot": "^1.1.0",
"@semi-bot/semi-theme-meilisearch": "^0.0.2",
"@tabler/icons-react": "^3.19.0",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query-devtools": "^5.59.8",
"@tanstack/react-router": "^1.64.0",
"ahooks": "^3.8.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"echarts-for-react": "^3.0.2",
"filesize": "^10.1.6",
"framer-motion": "^11.11.7",
"fuse.js": "^7.0.0",
"i18next": "^23.15.2",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-resources-to-backend": "^1.2.1",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"lucide-react": "^0.451.0",
"meilisearch": "0.44.1",
"qs": "^6.13.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.2",
"react-json-view": "^1.21.3",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.3",
"tailwind-variants": "^0.2.1",
"tailwindcss-animate": "^1.0.7",
"use-immer": "^0.10.0",
"vaul": "^1.0.0",
"zod": "^3.23.8",
"zustand": "5.0.0-rc.2"
},
"devDependencies": {
"@eslint/compat": "^1.2.0",
"@eslint/js": "^9.12.0",
"@iconify-json/lucide": "^1.2.8",
"@tanstack/router-devtools": "^1.64.0",
"@tanstack/router-plugin": "^1.64.0",
"@types/lodash": "^4.17.10",
"@types/node": "^22.7.5",
"@types/qs": "^6.9.16",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@unocss/preset-icons": "^0.63.4",
"@vitejs/plugin-react-swc": "^3.7.1",
"autoprefixer": "^10.4.20",
"eslint": "9.12.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.11.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"sass": "^1.79.4",
"tailwindcss": "^3.4.13",
"typescript": "5.6.3",
"typescript-eslint": "^8.8.1",
"unocss": "^0.63.4",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1"
},
"version": "0.11.0",
"main": "index.js",
"license": "Apache-2.0"
"name": "meilisearch-ui",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"build": "vite build",
"build:safe": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint"
},
"repository": "https://github.com/riccox/meilisearch-ui",
"homepage": "https://github.com/riccox/meilisearch-ui#readme",
"author": "Ricco Xie <[email protected]> (https://riccox.com)",
"dependencies": {
"@arco-design/web-react": "^2.64.0",
"@arco-themes/react-meilisearch": "^0.0.1",
"@douyinfe/semi-ui": "^2.67.0",
"@emotion/react": "^11.13.3",
"@hookform/resolvers": "^3.9.0",
"@mantine/core": "^7.13.2",
"@mantine/form": "^7.13.2",
"@mantine/hooks": "^7.13.2",
"@mantine/modals": "^7.13.2",
"@monaco-editor/react": "^4.6.0",
"@nextui-org/react": "^2.4.8",
"@radix-ui/react-slot": "^1.1.0",
"@semi-bot/semi-theme-meilisearch": "^0.0.2",
"@tabler/icons-react": "^3.19.0",
"@tanstack/react-query": "^5.59.8",
"@tanstack/react-query-devtools": "^5.59.8",
"@tanstack/react-router": "^1.64.0",
"ahooks": "^3.8.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"echarts-for-react": "^3.0.2",
"filesize": "^10.1.6",
"framer-motion": "^11.11.7",
"fuse.js": "^7.0.0",
"i18next": "^23.15.2",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-resources-to-backend": "^1.2.1",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"lucide-react": "^0.451.0",
"meilisearch": "0.44.1",
"qs": "^6.13.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.2",
"react-json-view": "^1.21.3",
"sonner": "^1.5.0",
"tailwind-merge": "^2.5.3",
"tailwind-variants": "^0.2.1",
"tailwindcss-animate": "^1.0.7",
"use-immer": "^0.10.0",
"vaul": "^1.0.0",
"zod": "^3.23.8",
"zustand": "5.0.0-rc.2"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@eslint/compat": "^1.2.0",
"@eslint/js": "^9.12.0",
"@iconify-json/lucide": "^1.2.8",
"@tanstack/router-devtools": "^1.64.0",
"@tanstack/router-plugin": "^1.64.0",
"@types/lodash": "^4.17.10",
"@types/node": "^22.7.5",
"@types/qs": "^6.9.16",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@unocss/preset-icons": "^0.63.4",
"@vitejs/plugin-react-swc": "^3.7.1",
"autoprefixer": "^10.4.20",
"eslint": "9.12.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.11.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"sass": "^1.79.4",
"tailwindcss": "^3.4.13",
"typescript": "5.6.3",
"typescript-eslint": "^8.8.1",
"unocss": "^0.63.4",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1"
},
"version": "0.11.0",
"main": "index.js",
"license": "Apache-2.0"
}
Loading

0 comments on commit 7173923

Please sign in to comment.