GithubHelp home page GithubHelp logo

fjc0k / haoma Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 599 KB

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

License: MIT License

JavaScript 64.58% TypeScript 34.52% CSS 0.01% Vue 0.73% SCSS 0.05% Less 0.11%
eslint prettier editorconfig

haoma's Introduction

好码

使用 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

haoma's People

Contributors

fjc0k avatar

Stargazers

lynn avatar wjunw avatar anitakym avatar Mandi Willms avatar 红 avatar  avatar lintong avatar TonyYo avatar  avatar wangxingkang avatar code-snippet avatar lingxiaoguang avatar zhao si avatar

Watchers

James Cloos avatar ider avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.