Skip to content

Commit a2cd2e1

Browse files
authored
chore: enable Stylelint color-function-notation, lint html files (#9663)
1 parent bffdfaf commit a2cd2e1

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

.stylelintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["stylelint-config-vaadin"],
2+
"extends": ["stylelint-config-vaadin", "stylelint-config-html/html"],
33
"plugins": [
44
"./custom-rules/stylelint/no-shorthand-with-unresolved-longhand.js",
55
"./custom-rules/stylelint/license-header.js"
@@ -21,6 +21,7 @@
2121
}
2222
],
2323
"rules": {
24+
"color-function-notation": "legacy",
2425
"no-duplicate-selectors": true
2526
}
2627
}

dev/app-layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
display: flex;
3939
place-items: center;
4040
place-content: center;
41-
background-image: linear-gradient(45deg, hsl(0 0 50), hsl(0 0 90));
41+
background-image: linear-gradient(45deg, hsl(0deg, 0%, 50%), hsl(0deg, 0%, 90%));
4242
border: 2px solid;
4343
border-radius: 0.5rem;
4444
margin: 1rem;

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"docs": "yarn analyze && web-dev-server --node-resolve --open",
1313
"icons": "lerna run icons",
1414
"lint": "npm-run-all --parallel lint:*",
15-
"lint:css": "stylelint --ignore-path .gitignore \"packages/**/src/**/*.js\" \"packages/**/theme/**/*-styles.js\" \"packages/**/*.css\"",
15+
"lint:css": "stylelint --ignore-path .gitignore \"packages/**/src/**/*.js\" \"packages/**/theme/**/*-styles.js\" \"packages/**/*.css\" \"dev/**/*.html\"",
1616
"lint:js": "eslint",
1717
"lint:types": "tsc",
1818
"postinstall": "patch-package",
@@ -64,13 +64,15 @@
6464
"lint-staged": "^15.2.9",
6565
"npm-run-all": "^4.1.5",
6666
"patch-package": "^7.0.0",
67+
"postcss-html": "^1.8.0",
6768
"postcss-lit": "^1.2.0",
6869
"prettier": "^3.6.0",
6970
"prettier-plugin-package": "^1.4.0",
7071
"replace-in-file": "^8.3.0",
7172
"rimraf": "^6.0.1",
7273
"rollup": "^4.4.0",
7374
"stylelint": "^16.21.0",
75+
"stylelint-config-html": "^1.1.0",
7476
"stylelint-config-vaadin": "^1.0.0-alpha.2",
7577
"typescript": "^5.8.3"
7678
},

yarn.lock

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6203,6 +6203,16 @@ htmlparser2@^10.0.0:
62036203
domutils "^3.2.1"
62046204
entities "^6.0.0"
62056205

6206+
htmlparser2@^8.0.0:
6207+
version "8.0.2"
6208+
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-8.0.2.tgz#f002151705b383e62433b5cf466f5b716edaec21"
6209+
integrity sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==
6210+
dependencies:
6211+
domelementtype "^2.3.0"
6212+
domhandler "^5.0.3"
6213+
domutils "^3.0.1"
6214+
entities "^4.4.0"
6215+
62066216
htmlparser2@^9.1.0:
62076217
version "9.1.0"
62086218
resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-9.1.0.tgz#cdb498d8a75a51f739b61d3f718136c369bc8c23"
@@ -7027,6 +7037,11 @@ jest-get-type@^29.6.3:
70277037
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
70287038
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
70297039

7040+
js-tokens@^9.0.0:
7041+
version "9.0.1"
7042+
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-9.0.1.tgz#2ec43964658435296f6761b34e10671c2d9527f4"
7043+
integrity sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==
7044+
70307045
js-yaml@4.1.0, js-yaml@^4.1.0:
70317046
version "4.1.0"
70327047
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
@@ -9181,6 +9196,16 @@ possible-typed-array-names@^1.0.0:
91819196
resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
91829197
integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==
91839198

9199+
postcss-html@^1.8.0:
9200+
version "1.8.0"
9201+
resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-1.8.0.tgz#2ea1e9d6c53f04ea994135219d3bd8a9e380e13b"
9202+
integrity sha512-5mMeb1TgLWoRKxZ0Xh9RZDfwUUIqRrcxO2uXO+Ezl1N5lqpCiSU5Gk6+1kZediBfBHFtPCdopr2UZ2SgUsKcgQ==
9203+
dependencies:
9204+
htmlparser2 "^8.0.0"
9205+
js-tokens "^9.0.0"
9206+
postcss "^8.5.0"
9207+
postcss-safe-parser "^6.0.0"
9208+
91849209
postcss-lit@^1.2.0:
91859210
version "1.2.0"
91869211
resolved "https://registry.yarnpkg.com/postcss-lit/-/postcss-lit-1.2.0.tgz#3b4b37ff3c6cf5883fb7b3be03a1011a746a3259"
@@ -9196,6 +9221,11 @@ postcss-resolve-nested-selector@^0.1.6:
91969221
resolved "https://registry.yarnpkg.com/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.6.tgz#3d84dec809f34de020372c41b039956966896686"
91979222
integrity sha512-0sglIs9Wmkzbr8lQwEyIzlDOOC9bGmfVKcJTaxv3vMmd3uo4o4DerC3En0bnmgceeql9BfC8hRkp7cg0fjdVqw==
91989223

9224+
postcss-safe-parser@^6.0.0:
9225+
version "6.0.0"
9226+
resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1"
9227+
integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==
9228+
91999229
postcss-safe-parser@^7.0.1:
92009230
version "7.0.1"
92019231
resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz#36e4f7e608111a0ca940fd9712ce034718c40ec0"
@@ -9222,7 +9252,7 @@ postcss-value-parser@^4.2.0:
92229252
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
92239253
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
92249254

9225-
postcss@^8.5.5:
9255+
postcss@^8.5.0, postcss@^8.5.5:
92269256
version "8.5.6"
92279257
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.6.tgz#2825006615a619b4f62a9e7426cc120b349a8f3c"
92289258
integrity sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==
@@ -10599,6 +10629,11 @@ strtok3@^9.0.1:
1059910629
"@tokenizer/token" "^0.3.0"
1060010630
peek-readable "^5.3.1"
1060110631

10632+
stylelint-config-html@^1.1.0:
10633+
version "1.1.0"
10634+
resolved "https://registry.yarnpkg.com/stylelint-config-html/-/stylelint-config-html-1.1.0.tgz#999db19aea713b7ff6dde92ada76e4c1bd812b66"
10635+
integrity sha512-IZv4IVESjKLumUGi+HWeb7skgO6/g4VMuAYrJdlqQFndgbj6WJAXPhaysvBiXefX79upBdQVumgYcdd17gCpjQ==
10636+
1060210637
stylelint-config-vaadin@^1.0.0-alpha.2:
1060310638
version "1.0.0-alpha.2"
1060410639
resolved "https://registry.yarnpkg.com/stylelint-config-vaadin/-/stylelint-config-vaadin-1.0.0-alpha.2.tgz#995372f0d31b8b941c8320414cbeb9f2737e616c"

0 commit comments

Comments
 (0)