@readme/stylelint-config 1.1.1 → 1.1.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/index.js +21 -10
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -17,16 +17,6 @@ module.exports = {
|
|
|
17
17
|
'stylelint-prettier/recommended',
|
|
18
18
|
],
|
|
19
19
|
rules: {
|
|
20
|
-
// ReadMe still uses color names as values in many places.
|
|
21
|
-
'color-named': null,
|
|
22
|
-
|
|
23
|
-
// ReadMe breaks this rule in many places.
|
|
24
|
-
'max-nesting-depth': null,
|
|
25
|
-
|
|
26
|
-
// ReadMe relies on "element[attr='value']" selectors in too many places.
|
|
27
|
-
// Eventually, it may be beneficial to turn this on.
|
|
28
|
-
'selector-no-qualifying-type': null,
|
|
29
|
-
|
|
30
20
|
// ReadMe relies on legacy color functions (e.g. rgba(0, 0, 0, 0.5))
|
|
31
21
|
// everywhere in addition to Scss allowing this to be written with a color
|
|
32
22
|
// name (e.g. rgba(black, 0.5)). Eventually, consider removing this rule to
|
|
@@ -34,6 +24,12 @@ module.exports = {
|
|
|
34
24
|
// change however won't be trivial.
|
|
35
25
|
'color-function-notation': 'legacy',
|
|
36
26
|
|
|
27
|
+
// ReadMe still uses color names as values in many places.
|
|
28
|
+
'color-named': null,
|
|
29
|
+
|
|
30
|
+
// ReadMe breaks this rule in many places.
|
|
31
|
+
'max-nesting-depth': null,
|
|
32
|
+
|
|
37
33
|
// Custom regex of ReadMe's current BEM selector class pattern.
|
|
38
34
|
'selector-class-pattern': [
|
|
39
35
|
'^[a-zA-Z0-9]+((_|-)([a-zA-Z0-9]+))*$',
|
|
@@ -43,6 +39,21 @@ module.exports = {
|
|
|
43
39
|
},
|
|
44
40
|
],
|
|
45
41
|
|
|
42
|
+
// Custom regex for ReadMe id patterns.
|
|
43
|
+
'selector-id-pattern': [
|
|
44
|
+
'^(([a-z][a-z0-9]*(-[a-z0-9]+)*)|([A-Z][a-z0-9]*)+)$',
|
|
45
|
+
{
|
|
46
|
+
message: 'Expected id selector to be kebab-case or TitleCase',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
|
|
50
|
+
// ReadMe still references elements by #id. Allow at most one per selector.
|
|
51
|
+
'selector-max-id': 1,
|
|
52
|
+
|
|
53
|
+
// ReadMe relies on "element[attr='value']" selectors in too many places.
|
|
54
|
+
// Eventually, it may be beneficial to turn this on.
|
|
55
|
+
'selector-no-qualifying-type': null,
|
|
56
|
+
|
|
46
57
|
// TODO: Remove this when migrating to Dart Sass.
|
|
47
58
|
// Disallows the use of global function names, as these global functions are
|
|
48
59
|
// now located inside built-in Dart Sass modules.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readme/stylelint-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "ReadMe coding standards for styles",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"stylelint": "^14.6.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@readme/eslint-config": "^8.
|
|
36
|
+
"@readme/eslint-config": "^8.7.0",
|
|
37
37
|
"jest": "^27.5.1"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a4461a557e756287614c2937db607d34c065dc40"
|
|
40
40
|
}
|