chore: husky

This commit is contained in:
Mo
2022-06-13 11:12:55 -05:00
parent c915723bca
commit c233fa9b6f
41 changed files with 118 additions and 177 deletions

View File

@@ -29,8 +29,7 @@
"server-public": "http-server -p 3000 --cors",
"server-root": "http-server ./ -p 3000 --cors",
"server": "http-server ./build -p 3000 --cors",
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md",
"prepare": "husky install"
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
},
"eslintConfig": {
"extends": [
@@ -113,7 +112,6 @@
"@types/styled-components": "5.1.24",
"@types/uuid": "8.3.4",
"gh-pages": "3.2.3",
"husky": "7.0.0",
"lint-staged": "12.3.5",
"node-sass": "*",
"prettier": "2.5.1",

View File

@@ -18,8 +18,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md",
"prepare": "husky install"
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
},
"devDependencies": {
"@codemirror/lang-markdown": "^0.19.6",
@@ -52,7 +51,6 @@
"@types/react": "^17.0.40",
"@types/react-dom": "^17.0.13",
"@uiw/react-codemirror": "4.5.1",
"husky": "*",
"katex": "^0.15.2",
"lint-staged": "*",
"marked": "^4.0.12",

View File

@@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn run lint-staged

View File

@@ -29,8 +29,7 @@
"server-public": "http-server -p 3000 --cors",
"server-root": "http-server ./ -p 3000 --cors",
"server": "http-server ./build -p 3000 --cors",
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md",
"prepare": "husky install"
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
},
"eslintConfig": {
"extends": [
@@ -113,7 +112,6 @@
"@types/styled-components": "5.1.24",
"@types/uuid": "8.3.4",
"gh-pages": "3.2.3",
"husky": "7.0.0",
"lint-staged": "12.3.5",
"node-sass": "*",
"prettier": "2.5.1",

View File

@@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn run lint-staged

View File

@@ -18,8 +18,7 @@
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md",
"prepare": "husky install"
"lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
},
"devDependencies": {
"@codemirror/lang-markdown": "^0.19.6",
@@ -52,7 +51,6 @@
"@types/react": "^17.0.40",
"@types/react-dom": "^17.0.13",
"@uiw/react-codemirror": "4.5.1",
"husky": "*",
"katex": "^0.15.2",
"lint-staged": "*",
"marked": "^4.0.12",

View File

@@ -1,2 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

View File

@@ -1,3 +0,0 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}

View File

@@ -52,7 +52,6 @@
"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/preset-env": "^7.17.10",
"@commitlint/config-conventional": "^16.2.4",
"@types/lodash": "^4.14.182",
"@types/mime-types": "^2.1.1",
"@types/node": "15",
@@ -61,7 +60,6 @@
"ava": "^4.2.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.5",
"commitlint": "^16.2.4",
"copy-webpack-plugin": "^10.2.4",
"electron-builder": "23.0.3",
"electron-notarize": "^1.2.1",
@@ -71,7 +69,6 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"file-loader": "^6.2.0",
"husky": "^7.0.4",
"mime-types": "^2.1.35",
"prettier": "*",
"proxyquire": "^2.1.3",
@@ -135,11 +132,6 @@
]
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"ava": {
"concurrency": 0,
"extensions": [