@atlaskit/eslint-plugin-design-system 8.15.2 → 8.15.4

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,17 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 8.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#63768](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63768) [`56342fba2b72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/56342fba2b72) - Fixes an issue with the `use-drawer-label` rule where named imports such as type imports from `@atlaskit/drawer` could incorrectly report an error.
8
+
9
+ ## 8.15.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
14
+
3
15
  ## 8.15.2
4
16
 
5
17
  ### Patch Changes
@@ -654,11 +654,16 @@ css`
654
654
 
655
655
  This rule comes with options to aid in migrating to design tokens.
656
656
 
657
- #### shouldEnforceFallbacks
657
+ #### fallbackUsage
658
+
659
+ - `forced`: Fallback values must always be provided
660
+ - `none`: Fallback values must never be provided. (Fixer will remove is provided)
661
+ - `optional`: Fallbacks are optional
662
+
663
+ #### shouldEnforceFallbacks (deprecated)
658
664
 
659
665
  When `true` the rule will mark token function usage as violations when fallbacks aren't defined.
660
666
  When `false` the rule will mark token function usage as violations when fallbacks are defined.
661
- When `'optional'` the rule will not mark token function usage as violations when fallbacks are not defined.
662
667
 
663
668
  ## no-unsupported-drag-and-drop-libraries
664
669
 
@@ -35,8 +35,10 @@ var rule = (0, _createRule.createLintRule)({
35
35
  var defaultImport = node.specifiers.filter(function (spec) {
36
36
  return spec.type === 'ImportDefaultSpecifier';
37
37
  });
38
- var local = defaultImport[0].local;
39
- contextLocalIdentifier.push(local.name);
38
+ if (defaultImport.length) {
39
+ var local = defaultImport[0].local;
40
+ contextLocalIdentifier.push(local.name);
41
+ }
40
42
  }
41
43
  }
42
44
  },
@@ -27,10 +27,12 @@ const rule = createLintRule({
27
27
  if (node.source.value === '@atlaskit/drawer') {
28
28
  if (node.specifiers.length) {
29
29
  const defaultImport = node.specifiers.filter(spec => spec.type === 'ImportDefaultSpecifier');
30
- const {
31
- local
32
- } = defaultImport[0];
33
- contextLocalIdentifier.push(local.name);
30
+ if (defaultImport.length) {
31
+ const {
32
+ local
33
+ } = defaultImport[0];
34
+ contextLocalIdentifier.push(local.name);
35
+ }
34
36
  }
35
37
  }
36
38
  },
@@ -29,8 +29,10 @@ var rule = createLintRule({
29
29
  var defaultImport = node.specifiers.filter(function (spec) {
30
30
  return spec.type === 'ImportDefaultSpecifier';
31
31
  });
32
- var local = defaultImport[0].local;
33
- contextLocalIdentifier.push(local.name);
32
+ if (defaultImport.length) {
33
+ var local = defaultImport[0].local;
34
+ contextLocalIdentifier.push(local.name);
35
+ }
34
36
  }
35
37
  }
36
38
  },
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": "8.15.2",
4
+ "version": "8.15.4",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"