Skip to content

ESLint/Prettier/StyleLint configuration for Kunlun projects

License

Notifications You must be signed in to change notification settings

kunlunjs/kunlun-fabric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@kunlunjs/fabric

Project basic configurations include ESLint, Prettier, StyleLint, Husky, lint-staged, and Git Commit message Verify.

Installation

pnpm i @kunlunjs/fabric -D
# Where "@types/eslint" "stylelint" is optional
pnpm i prettier @types/eslint eslint stylelint devmoji husky lint-staged @types/node typescript -D

Usage

In the project root directory will be automatically generate the following documents, including ESLint/Prettier/StyleLint judgment is whether to include these files, Since Husky's initialization depends on Git, it determines whether.git exists. If it doesn't, it initialses the git environment with 'git init' and then adds' prepare 'to package.json scripts: "husky install"`.

Attention

ESLint and Prettier may not check files that start with. eslintrc.js or ".prettier.js" by default. You need to run the ".eslintignore" and ".prettierignore "for mandatory checking.

!.eslintrc.js
!.prettierrc.js
!.stylelintrc.js

Development

Create a new project and go to the root directory

  1. mkdir <dirname> && cd <dirname> Inside the project root directory
  2. npm init -y Run the command to check whether the following configuration file is generated
  3. ts-node <path>/kunlun-fabric/src/generator.ts

The default configuration rules are as follows

Build

pnpm build

Resource

About

ESLint/Prettier/StyleLint configuration for Kunlun projects

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published