@primer/stylelint-config 12.3.2 → 12.3.3-rc.7590f39
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 12.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#217](https://github.com/primer/stylelint-config/pull/217) [`5bb2834`](https://github.com/primer/stylelint-config/commit/5bb28342a6194dfdd4fbf5197682367ea54792b7) Thanks [@jsoref](https://github.com/jsoref)! - Spelling fixes
|
|
8
|
+
|
|
3
9
|
## 12.3.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -30,7 +36,7 @@
|
|
|
30
36
|
|
|
31
37
|
### Patch Changes
|
|
32
38
|
|
|
33
|
-
- [#181](https://github.com/primer/stylelint-config/pull/181) [`23e438a`](https://github.com/primer/stylelint-config/commit/23e438a7a9062550baa696cafbb186dc78b723f5) Thanks [@jonrohan](https://github.com/jonrohan)! -
|
|
39
|
+
- [#181](https://github.com/primer/stylelint-config/pull/181) [`23e438a`](https://github.com/primer/stylelint-config/commit/23e438a7a9062550baa696cafbb186dc78b723f5) Thanks [@jonrohan](https://github.com/jonrohan)! - Turning off scss/dollar-variable-default
|
|
34
40
|
|
|
35
41
|
## 12.1.1
|
|
36
42
|
|
|
@@ -92,7 +98,7 @@
|
|
|
92
98
|
|
|
93
99
|
### Major Changes
|
|
94
100
|
|
|
95
|
-
- [`23a1f15`](https://github.com/primer/stylelint-config/commit/23a1f1599673f2a4f9f28c39da61f42871c05697) [#85](https://github.com/primer/stylelint-config/pull/85) Thanks [@koddsson](https://github.com/koddsson)! - Replace deprecated "blacklist" rules for "
|
|
101
|
+
- [`23a1f15`](https://github.com/primer/stylelint-config/commit/23a1f1599673f2a4f9f28c39da61f42871c05697) [#85](https://github.com/primer/stylelint-config/pull/85) Thanks [@koddsson](https://github.com/koddsson)! - Replace deprecated "blacklist" rules for "disallow list" rules.
|
|
96
102
|
|
|
97
103
|
See https://stylelint.io/user-guide/rules/at-rule-blacklist and http://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/
|
|
98
104
|
|
|
@@ -110,7 +116,7 @@
|
|
|
110
116
|
|
|
111
117
|
### Patch Changes
|
|
112
118
|
|
|
113
|
-
- [`d18cfbf`](https://github.com/primer/stylelint-config/commit/d18cfbfefc25be6ae38f73132552d2f3c62c4d02) [#79](https://github.com/primer/stylelint-config/pull/79) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Add
|
|
119
|
+
- [`d18cfbf`](https://github.com/primer/stylelint-config/commit/d18cfbfefc25be6ae38f73132552d2f3c62c4d02) [#79](https://github.com/primer/stylelint-config/pull/79) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Add additional verbose logging to `no-undefined-vars`
|
|
114
120
|
|
|
115
121
|
* [`d18cfbf`](https://github.com/primer/stylelint-config/commit/d18cfbfefc25be6ae38f73132552d2f3c62c4d02) [#79](https://github.com/primer/stylelint-config/pull/79) Thanks [@BinaryMuse](https://github.com/BinaryMuse)! - Fix handling of edge-cases in `no-undefined-vars`
|
|
116
122
|
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@ function getCachedVariables(options, log) {
|
|
|
50
50
|
const key = JSON.stringify(options)
|
|
51
51
|
return cache.tap(key, () => {
|
|
52
52
|
const {files, variablePattern} = options
|
|
53
|
-
const
|
|
53
|
+
const decls = new TapMap()
|
|
54
54
|
const refs = new TapMap()
|
|
55
55
|
|
|
56
56
|
log(`Looking for variables in ${files} ...`)
|
|
@@ -60,15 +60,15 @@ function getCachedVariables(options, log) {
|
|
|
60
60
|
const after = css.substr(match.index + match[0].length)
|
|
61
61
|
const name = match[0]
|
|
62
62
|
if (after.startsWith(COLON)) {
|
|
63
|
-
|
|
63
|
+
decls.tap(name, set).add(file)
|
|
64
64
|
} else {
|
|
65
65
|
refs.tap(name, set).add(file)
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
log(`Found ${
|
|
69
|
+
log(`Found ${decls.size} declarations, ${pluralize(refs.size, 'reference')}.`)
|
|
70
70
|
|
|
71
|
-
for (const [name, filesList] of
|
|
71
|
+
for (const [name, filesList] of decls.entries()) {
|
|
72
72
|
const fileRefs = refs.get(name)
|
|
73
73
|
if (fileRefs) {
|
|
74
74
|
log(`variable "${name}" declared in ${pluralize(filesList.size, 'file')}, ref'd in ${fileRefs.size}`)
|
|
@@ -77,7 +77,7 @@ function getCachedVariables(options, log) {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
return {
|
|
80
|
+
return {decls, refs}
|
|
81
81
|
})
|
|
82
82
|
}
|
|
83
83
|
|