Skip to content

Commit

Permalink
feat: ✨ add shadcn/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
AndryOre committed Sep 15, 2023
1 parent 4fddc5a commit f7f720e
Show file tree
Hide file tree
Showing 12 changed files with 691 additions and 147 deletions.
12 changes: 11 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/recommended',
'eslint-config-prettier',
'plugin:import/typescript',
],
overrides: [
{
Expand All @@ -24,7 +25,15 @@ module.exports = {
},
},
],
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite-env.d.ts', '**/*.css', 'commitlint.config.cjs'],
ignorePatterns: [
'dist',
'.eslintrc.cjs',
'vite-env.d.ts',
'**/*.css',
'commitlint.config.cjs',
'postcss.config.js',
'tailwind.config.js',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
Expand All @@ -43,6 +52,7 @@ module.exports = {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
typescript: true,
},
},
rules: {
Expand Down
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,29 @@
]
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"lucide-react": "^0.277.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/node": "^20.6.1",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.3.2",
"autoprefixer": "^10.4.15",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-n": "^16.1.0",
Expand All @@ -43,7 +52,9 @@
"eslint-plugin-react-refresh": "^0.4.3",
"husky": "^8.0.0",
"lint-staged": "^14.0.1",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
Expand Down
Loading

0 comments on commit f7f720e

Please sign in to comment.