Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prevent weird behaviour of pre-commit hook #973

Merged
merged 10 commits into from Jul 4, 2019
8 changes: 7 additions & 1 deletion .eslintrc.js
@@ -1,5 +1,11 @@
module.exports = {
extends: ["eslint:recommended", "plugin:prettier/recommended"],
extends: [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
plugins: ["prettier"],
env: {
node: true,
Expand Down
8 changes: 7 additions & 1 deletion bin/.eslintrc.js
@@ -1,7 +1,13 @@
module.exports = {
root: true,
plugins: ["node"],
extends: ["../.eslintrc.js", "plugin:node/recommended"],
extends: [
"../.eslintrc.js",
"plugin:node/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
env: {
node: true,
es6: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -34,8 +34,8 @@
"commit": "git-cz",
"docs": "typedoc",
"format": "npm run format:js && npm run format:ts",
"format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js --write",
jamesgeorge007 marked this conversation as resolved.
Show resolved Hide resolved
"format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts --write",
"format:js": "prettier-eslint ./bin/*.js ./bin/**/*.js ./test/**/*.js ./packages/**/**/*.js ./packages/**/*.js",
"format:ts": "prettier-eslint ./packages/**/**/*.ts ./packages/**/*.ts ./packages/**/**/**/*.ts",
"lint": "eslint \"./bin/*.js\" \"./bin/**/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.ts\" \"packages/**/!(node_modules)/**/*.ts\"",
"pretest": "npm run build && npm run lint",
"reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov",
Expand Down