@atlaskit/eslint-plugin-design-system 13.36.0 → 13.36.1
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,14 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 13.36.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3c3757717bc78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c3757717bc78) -
|
|
8
|
+
Introduced a temporary feature to the `no-unsafe-design-token-usage` rule to allow token fallbacks
|
|
9
|
+
for tokens specified in `UNSAFE_ignoreTokens` even if `fallbackUsage` is set to 'none'. This
|
|
10
|
+
should not be used and exists only to aid migration. It will be removed in the near future.
|
|
11
|
+
|
|
3
12
|
## 13.36.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -136,6 +136,14 @@ var rule = (0, _createRule.createLintRule)({
|
|
|
136
136
|
} else if (node.arguments.length > 1 && config.fallbackUsage === 'none') {
|
|
137
137
|
if (node.arguments[0].type === 'Literal') {
|
|
138
138
|
var _value = node.arguments[0].value;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* This check allows ADS tokens to be passed in via UNSAFE_ignoreTokens and allow fallbacks even if `fallbackUsage` is set to 'none'.
|
|
142
|
+
* Temporary solution introduced to allow fallbacks for shape tokens in Jira during migration
|
|
143
|
+
*/
|
|
144
|
+
if (_value && UNSAFE_ignoreTokens.has(_value)) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
139
147
|
context.report({
|
|
140
148
|
messageId: 'tokenFallbackRestricted',
|
|
141
149
|
node: node.arguments[1],
|
|
@@ -148,6 +148,14 @@ token('color.background.blanket');
|
|
|
148
148
|
const {
|
|
149
149
|
value
|
|
150
150
|
} = node.arguments[0];
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* This check allows ADS tokens to be passed in via UNSAFE_ignoreTokens and allow fallbacks even if `fallbackUsage` is set to 'none'.
|
|
154
|
+
* Temporary solution introduced to allow fallbacks for shape tokens in Jira during migration
|
|
155
|
+
*/
|
|
156
|
+
if (value && UNSAFE_ignoreTokens.has(value)) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
151
159
|
context.report({
|
|
152
160
|
messageId: 'tokenFallbackRestricted',
|
|
153
161
|
node: node.arguments[1],
|
|
@@ -129,6 +129,14 @@ var rule = createLintRule({
|
|
|
129
129
|
} else if (node.arguments.length > 1 && config.fallbackUsage === 'none') {
|
|
130
130
|
if (node.arguments[0].type === 'Literal') {
|
|
131
131
|
var _value = node.arguments[0].value;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* This check allows ADS tokens to be passed in via UNSAFE_ignoreTokens and allow fallbacks even if `fallbackUsage` is set to 'none'.
|
|
135
|
+
* Temporary solution introduced to allow fallbacks for shape tokens in Jira during migration
|
|
136
|
+
*/
|
|
137
|
+
if (_value && UNSAFE_ignoreTokens.has(_value)) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
132
140
|
context.report({
|
|
133
141
|
messageId: 'tokenFallbackRestricted',
|
|
134
142
|
node: node.arguments[1],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-design-system",
|
|
3
3
|
"description": "The essential plugin for use with the Atlassian Design System.",
|
|
4
|
-
"version": "13.36.
|
|
4
|
+
"version": "13.36.1",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/eslint-utils": "^2.0.0",
|
|
42
42
|
"@atlaskit/icon": "^30.0.0",
|
|
43
|
-
"@atlaskit/icon-lab": "^5.
|
|
43
|
+
"@atlaskit/icon-lab": "^5.15.0",
|
|
44
44
|
"@atlaskit/tokens": "^10.1.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@typescript-eslint/utils": "^7.1.0",
|