open-index/open-npm huggingface dataset:
npm package: @happygeek/eslint-config-teact-typescript
Description: **##请在你的项目根目录下创建`.prettierrc`文件夹 内容如下**
Latest version: 1.0.0

**##请在你的项目根目录下创建`.prettierrc`文件夹 内容如下**

```
{
  "printWidth": 80,
  "tabWidth": 2,
  "useTabs": false,
  "semi": true,
  "singleQuote": true,
  "quoteProps": "as-needed",
  "jsxSingleQuote": false,
  "trailingComma": "es5",
  "bracketSpacing": true,
  "bracketSameLine": false,
  "arrowParens": "avoid",
  "proseWrap": "preserve",
  "htmlWhitespaceSensitivity": "css",
  "endOfLine": "auto"
}
```

**额外配置** 

1`.eslintignore` - ESLint 忽略文件

```
# 依赖目录
node_modules
dist
build
coverage
.vscode

# 配置文件
*.config.js
vite.config.ts
*.d.ts

# 其他
*.min.js
package-lock.json
yarn.lock
pnpm-lock.yaml
.env.local
.env.*.local
```

2.`prettierignore` - Prettier 忽略文件

```
# 依赖目录
node_modules
dist
build
coverage

# 配置文件
*.config.js
vite.config.ts
*.d.ts

# 其他
*.min.js
package-lock.json
yarn.lock
pnpm-lock.yaml
.env.local
.env.*.local
```

3.`.vscode/settings.json` - VSCode 工作区设置

```
{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit",
    "source.organizeImports": "explicit"
  },
  "editor.rulers": [80],
  "files.eol": "\n",
  "typescript.preferences.quoteStyle": "single",
  "javascript.preferences.quoteStyle": "single",
  
  // 语言特定设置
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[css]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}
```

4.`package.json` 脚本增强

```
{
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "preview": "vite preview",
    "lint": "eslint src --ext .ts,.tsx,.js,.jsx",
    "lint:fix": "eslint src --ext .ts,.tsx,.js,.jsx --fix",
    "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
    "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
    "prepare": "husky install"
  }
}
```