Skip to content

Commit 704071d

Browse files
committed
feat: init repo
1 parent 2872342 commit 704071d

File tree

11 files changed

+6410
-67
lines changed

11 files changed

+6410
-67
lines changed

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "explicit"
4+
}
5+
}
6+

commitlint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ["@commitlint/config-conventional"] };

components.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

eslint.config.cjs

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
const typescriptEslintPlugin = require('@typescript-eslint/eslint-plugin');
2+
const typescriptEslintParser = require('@typescript-eslint/parser');
3+
const importPlugin = require('eslint-plugin-import');
4+
const prettier = require('eslint-plugin-prettier');
5+
const react = require('eslint-plugin-react');
6+
const reactHooks = require('eslint-plugin-react-hooks');
7+
const { resolve } = require('path');
8+
module.exports = [
9+
{
10+
ignores: ['node_modules/**', '.next/**', './eslint.config.cjs','.gitignore'],
11+
},
12+
{
13+
files: ['**/*.{js,jsx,ts,tsx}'],
14+
languageOptions: {
15+
ecmaVersion: 2020,
16+
sourceType: 'module',
17+
parser: typescriptEslintParser,
18+
parserOptions: {
19+
project: resolve(__dirname, './tsconfig.json'),
20+
},
21+
},
22+
plugins: {
23+
'@typescript-eslint': typescriptEslintPlugin,
24+
react,
25+
'react-hooks': reactHooks,
26+
import: importPlugin,
27+
prettier,
28+
},
29+
rules: {
30+
...typescriptEslintPlugin.configs.recommended.rules,
31+
...prettier.configs.recommended.rules,
32+
'prettier/prettier': [
33+
'error',
34+
{
35+
endOfLine: 'auto',
36+
},
37+
],
38+
'import/order': [
39+
'error',
40+
{
41+
groups: [['builtin', 'external'], 'internal', ['parent', 'sibling', 'index']],
42+
'newlines-between': 'always',
43+
},
44+
],
45+
'padding-line-between-statements': [
46+
'error',
47+
{ blankLine: 'always', prev: '*', next: 'return' },
48+
{ blankLine: 'always', prev: 'directive', next: '*' },
49+
{ blankLine: 'any', prev: 'directive', next: 'directive' },
50+
{ blankLine: 'always', prev: 'block', next: '*' },
51+
{ blankLine: 'always', prev: '*', next: 'block' },
52+
{ blankLine: 'always', prev: 'block-like', next: '*' },
53+
{ blankLine: 'always', prev: '*', next: 'block-like' },
54+
{ blankLine: 'always', prev: '*', next: 'function' },
55+
{ blankLine: 'always', prev: 'function', next: '*' },
56+
{ blankLine: 'always', prev: '*', next: ['const', 'let', 'var'] },
57+
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
58+
],
59+
'newline-before-return': 'error',
60+
'@typescript-eslint/no-explicit-any': 'off',
61+
},
62+
settings: {
63+
react: {
64+
version: 'detect',
65+
},
66+
},
67+
},
68+
];

0 commit comments

Comments
 (0)