@atlaskit/eslint-plugin-design-system 13.17.0 → 13.17.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,13 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 13.17.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162714](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162714)
8
+ [`e92912cc20871`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e92912cc20871) -
9
+ Fixes the import order bug in the no-utility-icons eslint rule.
10
+
3
11
  ## 13.17.0
4
12
 
5
13
  ### Minor Changes
@@ -176,7 +176,7 @@ var createChecks = exports.createChecks = function createChecks(context) {
176
176
  // Add a new import statement if it doesn't already exist
177
177
  if (!existingImport && !importFixAdded) {
178
178
  importFixAdded = true;
179
- fixes.push(fixer.insertTextBeforeRange([0, 0], "import ".concat(replacementImportName, " from '").concat(newImportName, "';\n")));
179
+ fixes.push(fixer.insertTextBefore(originalImportNode, "import ".concat(replacementImportName, " from '").concat(newImportName, "';\n")));
180
180
  }
181
181
 
182
182
  // Handle JSX elements differently if they are in a "new Button"
@@ -129,7 +129,7 @@ export const createChecks = context => {
129
129
  // Add a new import statement if it doesn't already exist
130
130
  if (!existingImport && !importFixAdded) {
131
131
  importFixAdded = true;
132
- fixes.push(fixer.insertTextBeforeRange([0, 0], `import ${replacementImportName} from '${newImportName}';\n`));
132
+ fixes.push(fixer.insertTextBefore(originalImportNode, `import ${replacementImportName} from '${newImportName}';\n`));
133
133
  }
134
134
 
135
135
  // Handle JSX elements differently if they are in a "new Button"
@@ -169,7 +169,7 @@ export var createChecks = function createChecks(context) {
169
169
  // Add a new import statement if it doesn't already exist
170
170
  if (!existingImport && !importFixAdded) {
171
171
  importFixAdded = true;
172
- fixes.push(fixer.insertTextBeforeRange([0, 0], "import ".concat(replacementImportName, " from '").concat(newImportName, "';\n")));
172
+ fixes.push(fixer.insertTextBefore(originalImportNode, "import ".concat(replacementImportName, " from '").concat(newImportName, "';\n")));
173
173
  }
174
174
 
175
175
  // Handle JSX elements differently if they are in a "new Button"
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.17.0",
4
+ "version": "13.17.1",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/eslint-utils": "^2.0.0",
47
- "@atlaskit/icon": "^26.3.0",
48
- "@atlaskit/icon-lab": "^4.16.0",
47
+ "@atlaskit/icon": "^26.4.0",
48
+ "@atlaskit/icon-lab": "^4.17.0",
49
49
  "@atlaskit/tokens": "^4.9.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@typescript-eslint/utils": "^7.1.0",