Skip to content

Commit 800c60c

Browse files
authored
chore: bump Stylelint to v14, use postcss-lit (#108)
1 parent 7520b96 commit 800c60c

File tree

4 files changed

+80
-247
lines changed

4 files changed

+80
-247
lines changed

.stylelintrc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
{
2-
"processors": [
3-
[
4-
"stylelint-processor-styled-components",
5-
{
6-
"moduleName": "lit-element",
7-
"importName": "css",
8-
"strict": true
9-
}
10-
]
11-
],
2+
"customSyntax": "postcss-lit",
123
"extends": [
134
"stylelint-config-standard",
14-
"stylelint-config-prettier",
15-
"stylelint-config-styled-components"
5+
"stylelint-config-prettier"
166
],
177
"rules": {
8+
"alpha-value-notation": ["number"],
9+
"comment-empty-line-before": null,
10+
"color-function-notation": ["legacy"],
11+
"comment-whitespace-inside": null,
12+
"font-family-name-quotes": "always-where-recommended",
13+
"number-max-precision": [4, {
14+
"ignoreProperties": ["animation-timing-function", "transform"]
15+
}],
1816
"property-no-vendor-prefix": [true, {
1917
"ignoreProperties": ["user-select"]
2018
}],
19+
"selector-class-pattern": null,
2120
"selector-type-no-unknown": [true, {
22-
"ignoreTypes": ["/^[a-zA-Z]([a-zA-Z0-9]*-[a-zA-Z0-9]+)+/"],
21+
"ignoreTypes": ["/^[a-zA-Z]([a-zA-Z0-9]*-[a-zA-Z0-9]+)+/"]
2322
}],
2423
"value-keyword-case": null
2524
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,14 @@
8383
"lint-staged": "^11.2.6",
8484
"lit-analyzer": "^1.2.1",
8585
"npm-run-all": "^4.1.5",
86+
"postcss-lit": "^0.1.2",
8687
"prettier": "^2.4.1",
8788
"rimraf": "^3.0.2",
8889
"simple-git-hooks": "^2.7.0",
8990
"size-limit": "^6.0.4",
90-
"stylelint": "^13.13.1",
91+
"stylelint": "^14.1.0",
9192
"stylelint-config-prettier": "^9.0.3",
92-
"stylelint-config-standard": "^22.0.0",
93-
"stylelint-config-styled-components": "^0.1.1",
94-
"stylelint-processor-styled-components": "1.10.0",
93+
"stylelint-config-standard": "^24.0.0",
9594
"tsc-watch": "^4.5.0",
9695
"typescript": "~4.4.4",
9796
"web-component-analyzer": "^1.1.6"

src/styles/shared-styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default css`
99
min-width: 360px;
1010
font-size: 1rem;
1111
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
12-
'Oxygen-Sans', Ubuntu, Cantarell, sans-serif;
12+
Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
1313
border: 1px solid var(--ave-border-color);
1414
border-radius: var(--ave-border-radius);
1515

0 commit comments

Comments
 (0)