@channel.io/stylelint-bezier 0.1.0 → 0.2.0

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.
@@ -1,7 +1,7 @@
1
- 6:06:54 AM - Projects in this build:
1
+ 9:12:58 AM - Projects in this build:
2
2
  * tsconfig.json
3
3
 
4
- 6:06:54 AM - Project 'tsconfig.json' is out of date because output file 'dist/index.js' does not exist
4
+ 9:12:58 AM - Project 'tsconfig.json' is out of date because output file 'dist/index.js' does not exist
5
5
 
6
- 6:06:54 AM - Building project '/home/runner/work/bezier-react/bezier-react/packages/stylelint-bezier/tsconfig.json'...
6
+ 9:12:58 AM - Building project '/home/runner/work/bezier-react/bezier-react/packages/stylelint-bezier/tsconfig.json'...
7
7
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @channel.io/stylelint-bezier
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - `validate-token` rule passes when template literal is used. ([#2420](https://github.com/channel-io/bezier-react/pull/2420)) by @yangwooseong
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
@@ -79,6 +79,10 @@ const pluginRule = (primary, secondaryOptions = {}) => {
79
79
  return;
80
80
  }
81
81
  const [, tokenName] = matches;
82
+ const hasTemplateLiteral = tokenName.includes('${');
83
+ if (hasTemplateLiteral) {
84
+ return;
85
+ }
82
86
  if (ignorePrefix.some((prefix) => tokenName.startsWith(prefix))) {
83
87
  return;
84
88
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@channel.io/stylelint-bezier",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Stylelint configuration for Bezier design system.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -97,6 +97,12 @@ const pluginRule: Rule<boolean> = (primary, secondaryOptions = {}) => {
97
97
 
98
98
  const [, tokenName] = matches
99
99
 
100
+ const hasTemplateLiteral = tokenName.includes('${')
101
+
102
+ if (hasTemplateLiteral) {
103
+ return
104
+ }
105
+
100
106
  if (ignorePrefix.some((prefix: string) => tokenName.startsWith(prefix))) {
101
107
  return
102
108
  }