Browse Source

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

pull/2872/head
Thomas Kaul 2 years ago
parent
commit
0ff7724de4
  1. 15
      .prettierrc
  2. 11
      package.json
  3. 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,

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