Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

recore/recore-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recore-config

ESLint and TSConfig for @recore projects

npm i -D eslint prettier @recore/config

提交之前检查规范

npm i -D husky lint-staged

package.json

{
  "scripts": {
    "lint": "eslint src --fix --ext .ts --ext .tsx"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{ts,tsx}": [
      "npm run lint"
    ]
  }
}