@readme/stylelint-config 7.0.3 → 7.0.4
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/__tests__/index.test.js +6 -3
- package/package.json +4 -4
package/__tests__/index.test.js
CHANGED
|
@@ -100,12 +100,15 @@ $prettier: "should be single quotes";
|
|
|
100
100
|
|
|
101
101
|
it('flags double quotes as an error', async () => {
|
|
102
102
|
data = await stylelint.lint({
|
|
103
|
-
code:
|
|
103
|
+
code: `
|
|
104
|
+
$prettier: "should be single quotes";
|
|
105
|
+
`,
|
|
104
106
|
config,
|
|
105
107
|
});
|
|
106
108
|
({ warnings } = data.results[0]);
|
|
107
|
-
expect(warnings).toHaveLength(
|
|
108
|
-
expect(warnings[0].rule).toBe('
|
|
109
|
+
expect(warnings).toHaveLength(2);
|
|
110
|
+
expect(warnings[0].rule).toBe('@stylistic/string-quotes');
|
|
111
|
+
expect(warnings[1].rule).toBe('prettier/prettier');
|
|
109
112
|
});
|
|
110
113
|
});
|
|
111
114
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readme/stylelint-config",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "ReadMe coding standards for styles",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"stylelint": "^16.7.0",
|
|
25
25
|
"stylelint-config-css-modules": "^4.3.0",
|
|
26
|
-
"stylelint-config-sass-guidelines": "^
|
|
26
|
+
"stylelint-config-sass-guidelines": "^12.0.0",
|
|
27
27
|
"stylelint-config-standard": "^36.0.0",
|
|
28
28
|
"stylelint-config-standard-scss": "^13.0.0",
|
|
29
29
|
"stylelint-order": "^6.0.3",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"postcss": "^8.4.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@readme/eslint-config": "^14.0
|
|
36
|
+
"@readme/eslint-config": "^14.1.0",
|
|
37
37
|
"vitest": "^2.0.3"
|
|
38
38
|
},
|
|
39
39
|
"prettier": "@readme/eslint-config/prettier",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2682dd176739cd13fad136d123fb6edf6422785f"
|
|
41
41
|
}
|