Last active
October 19, 2022 07:34
-
-
Save ewrfedf/6304211f14308782533a70b0c88c2337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add husky -D; | |
yarn husky install; | |
yarn add @commitlint/cli @commitlint/config-conventional -D; | |
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js; | |
yarn husky add .husky/commit-msg 'yarn commitlint --edit "$1"'; | |
yarn add lint-staged -D; | |
echo '{"./src/**/*.{js,jsx,ts,tsx,vue,less,sass,scss,css.json}": ["prettier --write"],}' > .lintstagedrc; | |
yarn add prettier -D; | |
echo 'module.exports = { printWidth: 80, tabWidth: 2,seTabs: false, semi: true, singleQuote: false, quoteProps: "as-needed", jsxSingleQuote: false, trailingComma: "es5", bracketSpacing: false, jsxBracketSameLine: false, arrowParens: "always", rangeStart: 0, rangeEnd: Infinity,};'> .prettierrc.js; | |
yarn husky add .husky/pre-commit 'yarn lint-staged --allow-empty "$1" && yarn lint'; | |
npm set-script lint "eslint --ext .ts,.js,.vue packages"; | |
npm init @eslint/config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment