Feature/replace import sort with prettier plugin sort imports (#2872)
* Replace import-sort with prettier-plugin-sort-imports * Update changelog
This commit is contained in:
parent
6eb659d7e6
commit
865402be3a
15
.prettierrc
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,
|
||||||
|
@ -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
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"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user