Skip to content

Commit

Permalink
chore: giving a try with prettier-plugin-sort-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianCataldo committed Dec 27, 2023
1 parent e751828 commit 27bf8e8
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 55 deletions.
10 changes: 10 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ overrides:
- files: ['*.json', '*.yaml']
options:
useTabs: false

plugins:
- '@trivago/prettier-plugin-sort-imports'

# importOrder: ['^@core/(.*)$', '^@server/(.*)$', '^@ui/(.*)$', '^[./]']
# TODO: better custom ordering
importOrder: ['^lit(.*)$', '^@jsfe/(.*)$', '^@(.*)$', '^[./]']
importOrderSeparation: true
importOrderSortSpecifiers: true
importOrderParserPlugins: ['typescript', 'decorators-legacy']
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.9.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/eslint": "^8.44.8",
"@types/node": "^20.10.1",
"@typescript-eslint/eslint-plugin": "^6.13.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/material/src/widgets/submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const submit: Widgets['submit'] = (options) => html`
<!-- -->
<div id=${options.id} class="theme-material widget-submit">
<md-filled-button type="submit"
>${options.submitButtonText ?? 'Submit'}</md-filled-button
>${options.label ?? 'Submit'}</md-filled-button
>
</div>
`;
12 changes: 6 additions & 6 deletions packages/spectrum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@
},
"dependencies": {
"@jsfe/form": "workspace:*",
"@jsfe/types": "workspace:*",
"@spectrum-web-components/button": "^0.40.0",
"@spectrum-web-components/help-text": "^0.40.0",
"@spectrum-web-components/radio": "^0.40.0",
"@spectrum-web-components/slider": "^0.40.0",
"@spectrum-web-components/switch": "^0.40.0"
"@jsfe/types": "workspace:*"
},
"devDependencies": {
"@spectrum-web-components/styles": "^0.40.0",
"sass": "^1.69.5",
"typescript": "^5.3.2"
},
"peerDependencies": {
"@spectrum-web-components/button": "^0.40.0",
"@spectrum-web-components/help-text": "^0.40.0",
"@spectrum-web-components/radio": "^0.40.0",
"@spectrum-web-components/slider": "^0.40.0",
"@spectrum-web-components/switch": "^0.40.0",
"@spectrum-web-components/field-label": "^0.39.1",
"@spectrum-web-components/icon": "^0.39.1",
"@spectrum-web-components/icons": "^0.39.1",
Expand Down
Loading

0 comments on commit 27bf8e8

Please sign in to comment.