Skip to content
/ proj Public

Do something "deep, lasting, and meaningful". 做一些“深入、持久、有意义”的事情

Notifications You must be signed in to change notification settings

warmhug/proj

Repository files navigation

Proj

NPM version Downloads Build Status

lint

npx prettier --write .
{
  "gitHooks": {
    "pre-commit": "echo \"pre-commit: run...\" && exit 1"
  },
  "eslintConfig": {
    "extends": ["eslint:recommended", "plugin:prettier/recommended"]
  },
  "prettier": {
    "semi": true,
    "singleQuote": true,
    "tabWidth": 2
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged",
      "pre-push": "npm test"
    }
  },
  "lint-staged": {
    "*.{js,jsx}": [
      "pretty-quick --staged",
      "eslint --fix",
      "git add"
    ]
  },

  "gitHooks": {
    "pre-commit": "pretty-quick --staged"
  },
  "lint-staged": {
    "*.js": ["eslint --fix", "prettier --write"]
  },
  "scripts": {
    "prepare": "husky install"
  }
}

About

Do something "deep, lasting, and meaningful". 做一些“深入、持久、有意义”的事情

Resources

Stars

Watchers

Forks

Packages

No packages published