Skip to content

Commit bdf30a3

Browse files
committed
add: frontend_5
1 parent e559b25 commit bdf30a3

17 files changed

+3268
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@
3939
- Nuxt.js
4040
- Element Plus
4141
- Tactical DDD
42+
43+
## frontend_5
44+
45+
- [Bulletproof React](https://github.com/alan2207/bulletproof-react)
46+
- React
47+
- Next.js
48+
- App Router
49+
- Radix UI

frontend_5/.eslintrc.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
env: { browser: true },
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
6+
'plugin:react/recommended',
7+
'plugin:react-hooks/recommended',
8+
'next/core-web-vitals',
9+
'prettier'
10+
],
11+
plugins: ['react', 'react-hooks'],
12+
parser: '@typescript-eslint/parser',
13+
parserOptions: {
14+
ecmaFeatures: { jsx: true },
15+
project: './tsconfig.json'
16+
},
17+
settings: {
18+
react: { version: 'detect' }
19+
},
20+
rules: {
21+
'import/order': [
22+
'error',
23+
{
24+
groups: ['builtin', 'external', 'internal', 'unknown'],
25+
pathGroups: [
26+
{
27+
pattern: '{@chakra-ui,@storybook}/**',
28+
group: 'external',
29+
position: 'after'
30+
}
31+
],
32+
pathGroupsExcludedImportTypes: ['builtin'],
33+
'newlines-between': 'always',
34+
alphabetize: { order: 'asc', caseInsensitive: true }
35+
}
36+
],
37+
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
38+
'react-hooks/rules-of-hooks': 'error',
39+
'react-hooks/exhaustive-deps': 'warn'
40+
},
41+
ignorePatterns: ['**/*.js']
42+
}

frontend_5/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.next
2+
node_modules

frontend_5/.husky/pre-commit

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
# Run `npx husky-init` to create husky.sh
3+
. "$(dirname "$0")/_/husky.sh"
4+
5+
cd frontend_5
6+
./node_modules/.bin/tsc -p ./ --noEmit
7+
./node_modules/.bin/lint-staged

frontend_5/.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
arrowParens: 'avoid',
3+
printWidth: 120,
4+
semi: false,
5+
singleQuote: true,
6+
trailingComma: 'none'
7+
}

frontend_5/.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cSpell.words": ["fixpack"]
3+
}

frontend_5/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# frontend_5

frontend_5/next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

frontend_5/next.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/** @type {import('next').NextConfig} */
2+
module.exports = {}

frontend_5/package.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "frontend_5",
3+
"version": "0.1.0",
4+
"dependencies": {
5+
"next": "13.4.6",
6+
"react": "18.2.0",
7+
"react-dom": "18.2.0"
8+
},
9+
"devDependencies": {
10+
"@tsconfig/strictest": "2.0.1",
11+
"@types/node": "20.3.1",
12+
"@types/react": "18.2.12",
13+
"@types/react-dom": "18.2.5",
14+
"@typescript-eslint/eslint-plugin": "5.59.11",
15+
"@typescript-eslint/parser": "5.59.11",
16+
"eslint": "8.43.0",
17+
"eslint-config-next": "13.4.6",
18+
"eslint-config-prettier": "8.8.0",
19+
"eslint-plugin-react": "7.32.2",
20+
"eslint-plugin-react-hooks": "4.6.0",
21+
"husky": "8.0.3",
22+
"lint-staged": "13.2.2",
23+
"prettier": "2.8.8",
24+
"typescript": "5.1.3"
25+
},
26+
"lint-staged": {
27+
"*.ts": [
28+
"npm run lint:js",
29+
"npm run fmt"
30+
],
31+
"*.tsx": [
32+
"npm run lint:js",
33+
"npm run fmt"
34+
]
35+
},
36+
"private": true,
37+
"scripts": {
38+
"dev": "next dev",
39+
"build": "next build",
40+
"start": "next start",
41+
"lint:js": "eslint --ignore-path .gitignore '**/*.{ts,tsx}'",
42+
"fmt": "prettier --write --ignore-path .gitignore '**/*.{ts,tsx}'",
43+
"fixpack": "npx fixpack"
44+
},
45+
"volta": {
46+
"node": "18.16.0"
47+
}
48+
}

0 commit comments

Comments
 (0)