Chore: Fix prettier missing extensions files (#105321)

* Ignore locales files more generically

* Use `ignore-path` for prettier

If we don't specify this, it will use `.gitignore` as well, which will ignore enterprise files.

This means that the code in enterprise will drift and easily ends up with prettier issues
pull/105324/head^2
Tom Ratcliffe 6 days ago committed by GitHub
parent cc7accf0e7
commit 1af3acf0c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .prettierignore
  2. 4
      package.json

@ -35,7 +35,8 @@ public/openapi3.json
public/mockServiceWorker.js
# Crowdin files
public/locales/**/*.json
# Ignore `locales` directory so we also catch enterprise files
**/locales/**/*.json
/.nx/cache
/.nx/workspace-data
/.nx/workspace-data

@ -41,9 +41,9 @@
"packages:prepare": "lerna version --no-push --no-git-tag-version --force-publish --exact",
"packages:pack": "mkdir -p ./npm-artifacts && lerna exec --no-private -- yarn pack --out \"../../npm-artifacts/%s-%v.tgz\"",
"packages:typecheck": "nx run-many -t typecheck --projects='tag:scope:package'",
"prettier:check": "prettier --check --list-different=false --log-level=warn \"**/*.{ts,tsx,scss,md,mdx,json,js,cjs}\"",
"prettier:check": "prettier --check --ignore-path .prettierignore --list-different=false --log-level=warn \"**/*.{ts,tsx,scss,md,mdx,json,js,cjs}\"",
"prettier:checkDocs": "prettier --check --list-different=false --log-level=warn \"docs/**/*.md\" \"*.md\" \"packages/**/*.{ts,tsx,scss,md,mdx,json,js,cjs}\"",
"prettier:write": "prettier --list-different \"**/*.{js,ts,tsx,scss,md,mdx,json,cjs}\" --write",
"prettier:write": "prettier --ignore-path .prettierignore --list-different \"**/*.{js,ts,tsx,scss,md,mdx,json,cjs}\" --write",
"start": "NODE_ENV=dev nx exec -- webpack --config scripts/webpack/webpack.dev.js --watch",
"start:liveReload": "yarn start -- --env liveReload=1",
"start:noTsCheck": "yarn start -- --env noTsCheck=1",

Loading…
Cancel
Save