@readme/stylelint-config 7.2.0 → 7.2.2
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/biome.json +9 -0
- package/package.json +14 -12
- package/test/index.test.js +3 -3
- package/test/valid.scss +4 -2
- package/.eslintrc.cjs +0 -3
package/biome.json
ADDED
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readme/stylelint-config",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.2",
|
|
4
4
|
"description": "ReadMe coding standards for styles",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"lint": "
|
|
7
|
+
"lint": "biome check .",
|
|
8
|
+
"lint:fix": "biome check --write .",
|
|
8
9
|
"test": "vitest run"
|
|
9
10
|
},
|
|
10
11
|
"engines": {
|
|
@@ -21,21 +22,22 @@
|
|
|
21
22
|
},
|
|
22
23
|
"homepage": "https://github.com/readmeio/standards",
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"stylelint": "^16.
|
|
25
|
-
"stylelint-config-css-modules": "^4.
|
|
26
|
-
"stylelint-config-sass-guidelines": "^12.
|
|
27
|
-
"stylelint-config-standard": "^
|
|
28
|
-
"stylelint-config-standard-scss": "^
|
|
25
|
+
"stylelint": "^16.25.0",
|
|
26
|
+
"stylelint-config-css-modules": "^4.5.1",
|
|
27
|
+
"stylelint-config-sass-guidelines": "^12.1.0",
|
|
28
|
+
"stylelint-config-standard": "^39.0.1",
|
|
29
|
+
"stylelint-config-standard-scss": "^16.0.0",
|
|
29
30
|
"stylelint-order": "^7.0.0",
|
|
30
|
-
"stylelint-prettier": "^5.0.
|
|
31
|
+
"stylelint-prettier": "^5.0.3"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"postcss": "^8.4.12"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
37
|
+
"@biomejs/biome": "^2.3.2",
|
|
38
|
+
"@readme/standards": "^2.4.0",
|
|
39
|
+
"vitest": "^4.0.6"
|
|
38
40
|
},
|
|
39
|
-
"prettier": "@readme/
|
|
40
|
-
"gitHead": "
|
|
41
|
+
"prettier": "@readme/standards/prettier",
|
|
42
|
+
"gitHead": "e216c6ef874090147309defdfe5a79da68cc572b"
|
|
41
43
|
}
|
package/test/index.test.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
3
|
|
|
4
4
|
import stylelint from 'stylelint';
|
|
5
|
-
import { describe,
|
|
5
|
+
import { beforeEach, describe, expect, it } from 'vitest';
|
|
6
6
|
|
|
7
7
|
import config from '..';
|
|
8
8
|
|
package/test/valid.scss
CHANGED
|
@@ -52,7 +52,9 @@ $media-query-width: 300px;
|
|
|
52
52
|
/* Single-line comment */
|
|
53
53
|
|
|
54
54
|
@media (min-width: $media-query-width) {
|
|
55
|
-
|
|
55
|
+
.selector {
|
|
56
|
+
border: 1px solid black;
|
|
57
|
+
}
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
@media (width >= 60em) {
|
|
@@ -62,7 +64,7 @@ $media-query-width: 300px;
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
@media (orientation: portrait)
|
|
67
|
+
@media (orientation: portrait) and (color) {
|
|
66
68
|
.selector-i + .selector-ii {
|
|
67
69
|
background: rgb(105, 77, 63);
|
|
68
70
|
font-family: Helvetica, 'Arial Black', sans-serif;
|
package/.eslintrc.cjs
DELETED