-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Update prettier/eslint/stylelint
* Add prettier plugin for import sorting. Previously used an eslint plugin, but prettier is better suited for code formatting rules. * Add prettier plugin for sorting attributes on html elements.
- Loading branch information
Showing
80 changed files
with
2,563 additions
and
1,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
{ | ||
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-organize-attributes"], | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
"trailingComma": "none", | ||
"importOrder": [ | ||
"^@angular/(.*)$", | ||
"<THIRD_PARTY_MODULES>", | ||
"^[./]" | ||
], | ||
"importOrderSeparation": true, | ||
"importOrderSortSpecifiers": true, | ||
"importOrderParserPlugins": ["decorators-legacy", "typescript"], | ||
"attributeGroups": [ | ||
"$CLASS", | ||
"^\\[class\\.", | ||
"^\\[ngClass]", | ||
"$ID", | ||
"$NAME", | ||
"^\\[name]$", | ||
"$DATA", | ||
"^\\[data-", | ||
"$SRC", | ||
"$FOR", | ||
"$TYPE", | ||
"^\\[type]$", | ||
"$HREF", | ||
"^\\[href]$", | ||
"$VALUE", | ||
"^\\[value]$", | ||
"$TITLE", | ||
"^\\[title]$", | ||
"$ALT", | ||
"$ROLE", | ||
"$ARIA", | ||
"^\\[attr.aria", | ||
"$DEFAULT", | ||
"$ANGULAR" | ||
], | ||
"attributeSort": "ASC" | ||
} |
Oops, something went wrong.