Skip to content

Commit

Permalink
chore: replace @trivago/prettier-plugin-sort-imports with `@ianvs/p…
Browse files Browse the repository at this point in the history
…rettier-plugin-sort-imports` in favour of supporting `import ... with { type: 'json' }` syntax
  • Loading branch information
radist2s committed Aug 5, 2024
1 parent 6eec6d9 commit 522bfcf
Show file tree
Hide file tree
Showing 5 changed files with 295 additions and 79 deletions.
11 changes: 9 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"trailingComma": "es5",
"importOrderCaseInsensitive": true,
"importOrderSeparation": true,
"importOrder": ["^react(.*)$","^@(.*)$", "<THIRD_PARTY_MODULES>", "^[./]"],
"importOrder": [
"<TYPES>^(node:)",
"<TYPES>",
"<TYPES>^[.]",
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"^[.]"
],
"importOrderParserPlugins": ["importAssertions", "typescript", "jsx"],
"plugins": ["@trivago/prettier-plugin-sort-imports"]
"plugins": ["@ianvs/prettier-plugin-sort-imports"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"prettier": "^3.1.1",
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"prettier": "^3.3.3",
"turbo": "^2.0.4",
"typescript": "^5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"globals": "^15.0.0",
"jsdom": "latest",
"msw": "^2.0.12",
"prettier": "^3.1.1",
"prettier": "^3.3.3",
"query-string": "^8.1.0",
"react": "^18.2.0",
"rimraf": "^5.0.5",
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/types": "3.4.0",
"editorconfig-checker": "^5.1.5",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"remark-cli": "12.0.0",
"remark-heading-id": "^1.0.1",
"remark-lint-match-punctuation": "0.2.1",
Expand Down
Loading

0 comments on commit 522bfcf

Please sign in to comment.