Skip to content

Commit

Permalink
Use lint-staged to run prettier (#2947)
Browse files Browse the repository at this point in the history
* Try out lint-staged

* Testing

* WIP

* Another attempt

* Another test

* Linting

* Fix a test file

* More tweaks

* More git hook tweaks

* Another tweak

* Ditto

* Linting fixes
  • Loading branch information
jeffposnick committed Sep 30, 2021
1 parent 6753cf5 commit 8afb372
Show file tree
Hide file tree
Showing 166 changed files with 2,525 additions and 1,427 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
6 changes: 5 additions & 1 deletion .husky/pre-commit
@@ -1,4 +1,8 @@
#!/bin/sh

# Please see https://typicode.github.io/husky/#/?id=command-not-found
# if you have trouble running this command.

. "$(dirname "$0")/_/husky.sh"

npm run format-staged
npm run lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
@@ -1,4 +1,8 @@
#!/bin/sh

# Please see https://typicode.github.io/husky/#/?id=command-not-found
# if you have trouble running this command.

. "$(dirname "$0")/_/husky.sh"

npm run lint
8 changes: 6 additions & 2 deletions .prettierignore
@@ -1,3 +1,4 @@
_version.ts
.nyc_output
.vscode
*.hbs
Expand All @@ -7,7 +8,10 @@ coverage
docs
generated-release-files
node_modules
packages/**
!packages/*/src/**
package-lock.json
packages/**/*.d.ts
packages/**/*.js
packages/**/*.mjs
packages/workbox-build/src/schema/*.json
temp
test/workbox-webpack-plugin/static/injected-manifest.json
4 changes: 1 addition & 3 deletions lerna.json
@@ -1,7 +1,5 @@
{
"lerna": "3.4.0",
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"version": "6.3.0"
}

0 comments on commit 8afb372

Please sign in to comment.