Browse Source

Feature/replace import sort with prettier plugin sort imports (#2872)

* Replace import-sort with prettier-plugin-sort-imports

* Update changelog
pull/2988/head
Thomas Kaul 8 months ago
committed by GitHub
parent
commit
865402be3a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 15
      .prettierrc
  2. 6
      CHANGELOG.md
  3. 11
      package.json
  4. 1417
      yarn.lock

15
.prettierrc

@ -9,7 +9,20 @@
], ],
"attributeSort": "ASC", "attributeSort": "ASC",
"endOfLine": "auto", "endOfLine": "auto",
"plugins": ["prettier-plugin-organize-attributes"], "importOrder": ["^@ghostfolio/(.*)$", "<THIRD_PARTY_MODULES>", "^[./]"],
"importOrderSeparation": true,
"overrides": [
{
"files": "*.ts",
"options": {
"importOrderParserPlugins": ["decorators-legacy", "typescript"]
}
}
],
"plugins": [
"prettier-plugin-organize-attributes",
"@trivago/prettier-plugin-sort-imports"
],
"printWidth": 80, "printWidth": 80,
"singleQuote": true, "singleQuote": true,
"tabWidth": 2, "tabWidth": 2,

6
CHANGELOG.md

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Replaced `import-sort` with `prettier-plugin-sort-imports`
## 2.50.0 - 2024-02-11 ## 2.50.0 - 2024-02-11
### Added ### Added

11
package.json

@ -33,7 +33,6 @@
"format:check": "nx format:check", "format:check": "nx format:check",
"format:write": "nx format:write", "format:write": "nx format:write",
"help": "nx help", "help": "nx help",
"import-sort": "import-sort --write '{apps,libs}/**/*.ts'",
"lint": "nx lint", "lint": "nx lint",
"ng": "nx", "ng": "nx",
"nx": "nx", "nx": "nx",
@ -165,6 +164,7 @@
"@storybook/addon-essentials": "7.6.5", "@storybook/addon-essentials": "7.6.5",
"@storybook/angular": "7.6.5", "@storybook/angular": "7.6.5",
"@storybook/core-server": "7.6.5", "@storybook/core-server": "7.6.5",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/big.js": "6.1.6", "@types/big.js": "6.1.6",
"@types/body-parser": "1.19.2", "@types/body-parser": "1.19.2",
"@types/cache-manager": "3.4.2", "@types/cache-manager": "3.4.2",
@ -184,9 +184,6 @@
"eslint-plugin-cypress": "2.14.0", "eslint-plugin-cypress": "2.14.0",
"eslint-plugin-import": "2.27.5", "eslint-plugin-import": "2.27.5",
"eslint-plugin-storybook": "0.6.12", "eslint-plugin-storybook": "0.6.12",
"import-sort-cli": "6.0.0",
"import-sort-parser-typescript": "6.0.0",
"import-sort-style-module": "6.0.0",
"jest": "29.4.3", "jest": "29.4.3",
"jest-environment-jsdom": "29.4.3", "jest-environment-jsdom": "29.4.3",
"jest-preset-angular": "13.1.4", "jest-preset-angular": "13.1.4",
@ -206,12 +203,6 @@
"engines": { "engines": {
"node": ">=18" "node": ">=18"
}, },
"importSort": {
".ts": {
"parser": "typescript",
"style": "module"
}
},
"prisma": { "prisma": {
"seed": "node prisma/seed.js" "seed": "node prisma/seed.js"
}, },

1417
yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save