Skip to content
/ config Public

前端项目代码规范tsconfig、eslint、prettier、stylelint、commitlint等

License

Notifications You must be signed in to change notification settings

tomjs/config

Repository files navigation

tomjs/config

English | 中文

Standard organization of front-end project codes to facilitate quick project construction

Instructions for use

Take pnpm as an example

General

pnpm add -D eslint prettier @tomjs/eslint @tomjs/prettier @tomjs/tsconfig

commitlint

pnpm add -D husky lint-staged @commitlint/cli @tomjs/commitlint

style

pnpm add -D stylelint @tomjs/stylelint

Packages

name version node
@tomjs/commitlint npm node-current (scoped)
@tomjs/eslint npm node-current (scoped)
@tomjs/prettier npm node-current (scoped)
@tomjs/stylelint npm node-current (scoped)
@tomjs/tsconfig npm node-current (scoped)