Skip to content

Commit

Permalink
fix prettierignore, apply everywhere prettier is used
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed May 27, 2024
1 parent bd5a13a commit dade0b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .prettierignore

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"eslint --cache --fix",
"prettier --write --ignore-path .eslintignore",
"prettier --write --ignore-path .eslintignore --ignore-path resources/.prettierignore",
"jest --passWithNoTests",
"yarn lint-cspell"
],
"*.{md,html,json,css}": [
"prettier --write --ignore-path .eslintignore",
"prettier --write --ignore-path .eslintignore --ignore-path resources/.prettierignore",
"yarn lint-cspell"
]
},
Expand Down Expand Up @@ -62,7 +62,7 @@
"prepublishOnly": "./scripts/prepublish.sh",
"postbuild": "wsrun --exclude-missing postbuild",
"pretty": "yarn pretty-check --write",
"pretty-check": "prettier --cache --check --ignore-path .gitignore --ignore-path .prettierignore --ignore-path .eslintignore .",
"pretty-check": "prettier --cache --check --ignore-path .gitignore --ignore-path resources/.prettierignore --ignore-path .eslintignore .",
"ci:version": "yarn changeset version && yarn build && yarn format",
"release": "yarn build && yarn build-bundles && (wsrun release --exclude-missing --serial --recursive --changedSince main -- || true) && yarn changeset publish",
"release:canary": "(node scripts/canary-release.js && yarn build-bundles && yarn changeset publish --tag canary) || echo Skipping Canary...",
Expand Down
2 changes: 2 additions & 0 deletions resources/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# this file contains delicate whitespace character assertions that i could not get prettier to ignore
packages/graphql-language-service-server/src/__tests__/parseDocument.test.ts

0 comments on commit dade0b5

Please sign in to comment.