@transfermarkt/global-styles 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +0 -3
- package/config/stylelint/index.js +37 -32
- package/package.json +1 -2
package/bun.lock
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "@transfermarkt/global-styles",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@transfermarkt/global-styles": "^1.31.0",
|
|
9
8
|
"postcss": "8.5.6",
|
|
10
9
|
"postcss-html": "1.8.0",
|
|
11
10
|
"postcss-scss": "4.0.9",
|
|
@@ -131,8 +130,6 @@
|
|
|
131
130
|
|
|
132
131
|
"@szmarczak/http-timer": ["@szmarczak/http-timer@4.0.6", "", { "dependencies": { "defer-to-connect": "^2.0.0" } }, ""],
|
|
133
132
|
|
|
134
|
-
"@transfermarkt/global-styles": ["@transfermarkt/global-styles@1.31.0", "", { "dependencies": { "postcss": "8.5.6", "postcss-html": "1.8.0", "postcss-scss": "4.0.9", "stylelint": "16.24.0", "stylelint-config-standard-scss": "14.0.0", "stylelint-order": "6.0.4", "stylelint-selector-bem-pattern": "4.0.1" }, "peerDependencies": { "sass-map-get-next-prev": "1.0.0" } }, "sha512-RcrhfpPt+numQFE7JYiJQxBW02PE8n2AGciEx+lcG92ATefSp92ZnKbOpMEoybh5UksYdQtsJpoNhhSvSZloEg=="],
|
|
135
|
-
|
|
136
133
|
"@transfermarkt/prettier-config": ["@transfermarkt/prettier-config@1.3.0", "", { "peerDependencies": { "prettier": "3.0.0", "prettier-plugin-svelte": "3.0.1" } }, "sha512-E9IvloaUQD6qUfNAWg5xr8Fa3Z6JDUdAAUhnaQzn9eIqdbcXw8yDGycrA5pnQGE+HXC6jA21Al8wsZMElpSm2w=="],
|
|
137
134
|
|
|
138
135
|
"@transfermarkt/semantic-release-config": ["@transfermarkt/semantic-release-config@2.1.0", "", { "dependencies": { "@saithodev/semantic-release-gitea": "2.1.0", "conventional-changelog-conventionalcommits": "7.0.2", "semantic-release": "23.0.7" } }, "sha512-KUXZVnC05/Yj425bOfiw5ctZ/lnmeIfaRs+3MCLCLjvkpLJOUTfNr1/zM5255MqmuhgaKu29cG7mF82EnRDOlw=="],
|
|
@@ -1,34 +1,40 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: ['stylelint-config-standard-scss'],
|
|
3
|
-
plugins: [
|
|
3
|
+
plugins: [
|
|
4
|
+
'stylelint-order',
|
|
5
|
+
'stylelint-selector-bem-pattern',
|
|
6
|
+
'./tm-font-primary-deprecation.mjs',
|
|
7
|
+
],
|
|
4
8
|
customSyntax: 'postcss-html',
|
|
5
9
|
rules: {
|
|
6
|
-
|
|
10
|
+
'transfermarkt/tm-font-primary-deprecation': [
|
|
7
11
|
true,
|
|
8
12
|
{
|
|
9
|
-
|
|
10
|
-
}
|
|
13
|
+
severity: 'warning',
|
|
14
|
+
},
|
|
11
15
|
],
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
'property-disallowed-list': 'float',
|
|
17
|
+
'declaration-no-important': [
|
|
14
18
|
true,
|
|
15
19
|
{
|
|
16
|
-
|
|
17
|
-
}
|
|
20
|
+
severity: 'warning',
|
|
21
|
+
},
|
|
18
22
|
],
|
|
19
|
-
|
|
20
|
-
[
|
|
23
|
+
'at-rule-disallowed-list': [
|
|
24
|
+
['media', 'import'],
|
|
21
25
|
{
|
|
22
|
-
severity:
|
|
23
|
-
return atRule.includes(
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
26
|
+
severity: atRule => {
|
|
27
|
+
return atRule.includes('import') ? 'error' : 'warning';
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
'unit-disallowed-list': [
|
|
32
|
+
'px',
|
|
27
33
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
34
|
+
ignoreProperties: {
|
|
35
|
+
px: ['/^border/', 'top', 'bottom', 'left', 'right', '/^(min-|max-)?(width|height)$/'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
32
38
|
],
|
|
33
39
|
'max-nesting-depth': 4,
|
|
34
40
|
'order/order': ['custom-properties', 'declarations'],
|
|
@@ -41,27 +47,26 @@ module.exports = {
|
|
|
41
47
|
ignoreProperties: {
|
|
42
48
|
'font-family': ['/tm-font.+/'],
|
|
43
49
|
// 'font-weight': ['/tm-univia-fw.+/'], // Temporarily disabled
|
|
44
|
-
'/.+/': ['/rem-calc.+/', '/tm-color.+/', '/map.+/'],
|
|
50
|
+
'/.+/': ['/rem-calc.+/', '/tm-color.+/', '/figma-rem.+/', '/figma-value.+/', '/map.+/'],
|
|
45
51
|
},
|
|
46
52
|
},
|
|
47
53
|
],
|
|
48
|
-
'selector-pseudo-class-no-unknown': [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
],
|
|
52
|
-
"selector-class-pattern": [
|
|
53
|
-
"^[a-z]([a-z0-9]*)(-[a-z0-9]+)*(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-z0-9]+(-[a-z0-9]+)*)?$",
|
|
54
|
+
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: 'global' }],
|
|
55
|
+
'selector-class-pattern': [
|
|
56
|
+
'^[a-z]([a-z0-9]*)(-[a-z0-9]+)*(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-z0-9]+(-[a-z0-9]+)*)?$',
|
|
54
57
|
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
severity: 'warning',
|
|
59
|
+
message:
|
|
60
|
+
'Unexpected class selector format. Class selectors must be written in kebab-case or BEM format, e.g., my-class-name or my__class--name.',
|
|
61
|
+
},
|
|
58
62
|
],
|
|
59
63
|
'selector-id-pattern': [
|
|
60
64
|
'^[a-z]([a-z0-9]+(-[a-z0-9]+)*)?$',
|
|
61
65
|
{
|
|
62
66
|
severity: 'warning',
|
|
63
|
-
message:
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
message:
|
|
68
|
+
'Unexpected ID selector format. ID selectors must be written in kebab-case, e.g., my-id-name.',
|
|
69
|
+
},
|
|
70
|
+
],
|
|
66
71
|
},
|
|
67
72
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transfermarkt/global-styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.0",
|
|
4
4
|
"description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
|
|
5
5
|
"author": "Transfermarkt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@transfermarkt/global-styles": "^1.31.0",
|
|
24
23
|
"postcss": "8.5.6",
|
|
25
24
|
"postcss-html": "1.8.0",
|
|
26
25
|
"postcss-scss": "4.0.9",
|