haoma
TypeScript icon, indicating that this package has built-in type declarations

3.8.3 • Public • Published

好码

使用 EditorConfig + ESLint + Prettier,助你写出漂亮的前端代码。

安装

# npm
npm i haoma -D

# or pnpm
# 必须启用 shamefully-hoist 配置
# https://pnpm.js.org/en/npmrc#shamefully-hoist
pnpm add haoma -D

# or yarn
yarn add haoma -D

使用

使用以下命令初始化 .gitignore.gitattributes.editorconfig.eslintrc.js.eslintignore.prettierrc.js.prettierignoretsconfig.json 配置文件并安装 haomatypescripteslintprettierhuskylint-staged 依赖:

# npm
npx haoma init

# or pnpm
pnpx haoma init

# or yarn
yarn haoma init

限制

compile browser 时对 ts 的 constructor(private x: xxx) 不支持,原因未知。

许可

Jay Fong (c) MIT

Package Sidebar

Install

npm i haoma

Weekly Downloads

8

Version

3.8.3

License

MIT

Unpacked Size

167 kB

Total Files

68

Last publish

Collaborators

  • funch