build: Use prettier for javascript

Stop ignoring .js and .json files in prettier and fix existing issues.

The `prettier-plugin-multiline-arrays` plugin is used to split arrays
with multiple elements into one line per element.
This commit is contained in:
Ralph Hopman
2024-12-19 10:19:28 +01:00
committed by Adam Saghy
parent 2ec9ba81d6
commit f693318c2e
25 changed files with 7770 additions and 7608 deletions
+27 -5
View File
@@ -1,8 +1,13 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-recommended-scss"],
"extends": [
"stylelint-config-standard",
"stylelint-config-recommended-scss"
],
"rules": {
"font-family-name-quotes": "always-where-recommended",
"font-family-no-missing-generic-family-keyword": [true, { "ignoreFontFamilies": ["FontAwesome"] }],
"font-family-no-missing-generic-family-keyword": [
true,
{ "ignoreFontFamilies": ["FontAwesome"] }],
"function-url-quotes": [
"always",
{
@@ -16,7 +21,9 @@
"declaration-no-important": null,
"at-rule-no-vendor-prefix": true,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": [true, { "ignoreAtRules": ["tailwind"] }],
"scss/at-rule-no-unknown": [
true,
{ "ignoreAtRules": ["tailwind"] }],
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
@@ -35,7 +42,12 @@
"selector-type-no-unknown": [
true,
{
"ignoreTypes": ["/^mat/", "/^mifosx/", "fa-icon", "ng-template"]
"ignoreTypes": [
"/^mat/",
"/^mifosx/",
"fa-icon",
"ng-template"
]
}
],
"selector-pseudo-element-no-unknown": [
@@ -44,6 +56,16 @@
"ignorePseudoElements": ["ng-deep"]
}
],
"unit-allowed-list": ["px", "%", "em", "rem", "vw", "vh", "deg", "s", "ms"]
"unit-allowed-list": [
"px",
"%",
"em",
"rem",
"vw",
"vh",
"deg",
"s",
"ms"
]
}
}