@primer/stylelint-config 12.3.2-rc.bf1f6ff → 12.3.3-rc.c178bc3

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#218](https://github.com/primer/stylelint-config/pull/218) [`c03be7d`](https://github.com/primer/stylelint-config/commit/c03be7da1126123c079d86e00a2158a913e015f8) Thanks [@jonrohan](https://github.com/jonrohan)! - [Bug fix] Catching values with dots in them
8
+
9
+ * [#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
10
+
3
11
  ## 12.3.2
4
12
 
5
13
  ### Patch Changes
@@ -30,7 +38,7 @@
30
38
 
31
39
  ### Patch Changes
32
40
 
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)! - Truning off scss/dollar-variable-default
41
+ - [#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
42
 
35
43
  ## 12.1.1
36
44
 
@@ -92,7 +100,7 @@
92
100
 
93
101
  ### Major Changes
94
102
 
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 "dissallow list" rules.
103
+ - [`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
104
 
97
105
  See https://stylelint.io/user-guide/rules/at-rule-blacklist and http://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/
98
106
 
@@ -110,7 +118,7 @@
110
118
 
111
119
  ### Patch Changes
112
120
 
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 additinal verbose logging to `no-undefined-vars`
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)! - Add additional verbose logging to `no-undefined-vars`
114
122
 
115
123
  * [`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
124
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "12.3.2-rc.bf1f6ff",
3
+ "version": "12.3.3-rc.c178bc3",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "homepage": "http://primer.style/css/tools/linting",
6
6
  "author": "GitHub, Inc.",
@@ -55,7 +55,7 @@ module.exports = stylelint.createPlugin(ruleName, (enabled, options = {}, contex
55
55
  }, {})
56
56
 
57
57
  const lintResult = (root, result) => {
58
- // Walk all declarartions
58
+ // Walk all declarations
59
59
  root.walk(node => {
60
60
  if (seen.has(node)) {
61
61
  return
@@ -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 decs = new TapMap()
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
- decs.tap(name, set).add(file)
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 ${decs.size} declarations, ${pluralize(refs.size, 'reference')}.`)
69
+ log(`Found ${decls.size} declarations, ${pluralize(refs.size, 'reference')}.`)
70
70
 
71
- for (const [name, filesList] of decs.entries()) {
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 {decs, refs}
80
+ return {decls, refs}
81
81
  })
82
82
  }
83
83
 
@@ -76,7 +76,7 @@ module.exports = stylelint.createPlugin(ruleName, (enabled, options = {}, contex
76
76
 
77
77
  const valueUnit = valueParser.unit(cleanValue)
78
78
 
79
- if (valueUnit && (valueUnit.unit === '' || !/^[0-9]+$/.test(valueUnit.number))) {
79
+ if (valueUnit && (valueUnit.unit === '' || !/^[0-9.]+$/.test(valueUnit.number))) {
80
80
  return
81
81
  }
82
82