Skip to content

Commit

Permalink
run pretty when pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
special-kate committed Dec 11, 2022
1 parent 9454b15 commit d865e99
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
26 changes: 12 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
},
"ignorePatterns": ["build/**"]
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {},
"ignorePatterns": ["build/**"]
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
"scripts": {
"build": "node build.mjs",
"lint": "eslint --ext .js,.mjs .",
"lint:fix": "eslint --ext .js,.mjs . --fix"
"lint:fix": "eslint --ext .js,.mjs . --fix",
"pretty": "prettier --write ./**/*.{js,mjs,json}",
"stage": "git add -u"
},
"pre-commit": [
"pretty",
"stage",
"lint"
],
"dependencies": {
Expand Down

0 comments on commit d865e99

Please sign in to comment.