@atlaskit/eslint-plugin-design-system 4.2.1 → 4.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`2dbc546f748`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2dbc546f748) - Fixes a bug where token paths including [default] were not being detected by the linter
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 4.2.1
4
14
 
5
15
  ### Patch Changes
@@ -50,7 +50,7 @@ var rule = {
50
50
  var migrationMeta = _renameMapping.default.filter(function (t) {
51
51
  return t.state === 'deprecated';
52
52
  }).find(function (t) {
53
- return t.path === tokenKey;
53
+ return getCleanPathId(t.path) === tokenKey;
54
54
  });
55
55
 
56
56
  if (migrationMeta) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -35,7 +35,7 @@ const rule = {
35
35
  return;
36
36
  }
37
37
 
38
- const migrationMeta = renameMapping.filter(t => t.state === 'deprecated').find(t => t.path === tokenKey);
38
+ const migrationMeta = renameMapping.filter(t => t.state === 'deprecated').find(t => getCleanPathId(t.path) === tokenKey);
39
39
 
40
40
  if (migrationMeta) {
41
41
  const cleanTokenKey = getCleanPathId(migrationMeta.replacement);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -41,7 +41,7 @@ var rule = {
41
41
  var migrationMeta = renameMapping.filter(function (t) {
42
42
  return t.state === 'deprecated';
43
43
  }).find(function (t) {
44
- return t.path === tokenKey;
44
+ return getCleanPathId(t.path) === tokenKey;
45
45
  });
46
46
 
47
47
  if (migrationMeta) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-design-system",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,7 @@
20
20
  ".": "./src/index.tsx"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaskit/tokens": "^0.6.0",
23
+ "@atlaskit/tokens": "^0.7.0",
24
24
  "@babel/runtime": "^7.0.0"
25
25
  },
26
26
  "devDependencies": {