diff --git a/cspell.json b/cspell.json index 24ff11ab942..9b714e08196 100644 --- a/cspell.json +++ b/cspell.json @@ -9,7 +9,7 @@ "dictionaryDefinitions": [ { "name": "custom-words", - "path": "./custom-words.txt", + "path": "./resources/custom-words.txt", "addWords": true } ], diff --git a/package.json b/package.json index 8c05c0a29cc..ddf616af046 100644 --- a/package.json +++ b/package.json @@ -15,12 +15,12 @@ "lint-staged": { "*.{js,ts,jsx,tsx}": [ "eslint --cache --fix", - "prettier --write --ignore-path .eslintignore --ignore-path resources/.prettierignore", + "prettier --write --ignore-path .eslintignore --ignore-path resources/prettierignore", "jest --passWithNoTests", "yarn lint-cspell" ], "*.{md,html,json,css}": [ - "prettier --write --ignore-path .eslintignore --ignore-path resources/.prettierignore", + "prettier --write --ignore-path .eslintignore --ignore-path resources/prettierignore", "yarn lint-cspell" ] }, @@ -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 resources/.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...", diff --git a/resources/.prettierignore b/resources/.prettierignore deleted file mode 100644 index 94e472faa70..00000000000 --- a/resources/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -# 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 diff --git a/custom-words.txt b/resources/custom-words.txt similarity index 100% rename from custom-words.txt rename to resources/custom-words.txt diff --git a/resources/prettierignore b/resources/prettierignore new file mode 100644 index 00000000000..bd6c60530a5 --- /dev/null +++ b/resources/prettierignore @@ -0,0 +1,3 @@ +# this file contains delicate whitespace character assertions that i could not get prettier to ignore +# if removed it will cause the tests to fail +../packages/graphql-language-service-server/src/__tests__/parseDocument.test.ts