diff --git a/.prettierignore b/.prettierignore index 650825ae9c9..8fd0b837b78 100644 --- a/.prettierignore +++ b/.prettierignore @@ -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 \ No newline at end of file +/.nx/workspace-data diff --git a/package.json b/package.json index a5234fb0f5a..7ca3a4f6972 100644 --- a/package.json +++ b/package.json @@ -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",