@atlaskit/eslint-plugin-design-system 8.22.0 → 8.23.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
+ ## 8.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#68090](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68090) [`251d7c1fca48`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d7c1fca48) - Modified fix naming convention for consistent-css-prop-usage rule to align with camelCase convention
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 8.22.0
4
14
 
5
15
  ### Minor Changes
@@ -57,11 +57,11 @@ var getDeclaratorString = function getDeclaratorString(context) {
57
57
  return declaratorName;
58
58
  } else {
59
59
  // If styles already exists, increment the number
60
- while (variables.includes("".concat(declaratorName, "_").concat(count))) {
60
+ while (variables.includes("".concat(declaratorName).concat(count))) {
61
61
  count++;
62
62
  }
63
63
  }
64
- return "".concat(declaratorName, "_").concat(count);
64
+ return "".concat(declaratorName).concat(count);
65
65
  };
66
66
  function analyzeIdentifier(context, sourceIdentifier, configuration) {
67
67
  var _getIdentifierInParen, _getIdentifierInParen2;
@@ -247,7 +247,7 @@ var rule = (0, _createRule.createLintRule)({
247
247
  return;
248
248
  }
249
249
  var identifier = node.parent.id;
250
- if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase() + '_') || identifier.name === declarationSuffix.toLowerCase())) {
250
+ if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase()) || identifier.name === declarationSuffix.toLowerCase())) {
251
251
  // Already prefixed! Nothing to do.
252
252
  return;
253
253
  }
@@ -43,11 +43,11 @@ const getDeclaratorString = context => {
43
43
  return declaratorName;
44
44
  } else {
45
45
  // If styles already exists, increment the number
46
- while (variables.includes(`${declaratorName}_${count}`)) {
46
+ while (variables.includes(`${declaratorName}${count}`)) {
47
47
  count++;
48
48
  }
49
49
  }
50
- return `${declaratorName}_${count}`;
50
+ return `${declaratorName}${count}`;
51
51
  };
52
52
  function analyzeIdentifier(context, sourceIdentifier, configuration) {
53
53
  var _getIdentifierInParen, _getIdentifierInParen2;
@@ -227,7 +227,7 @@ const rule = createLintRule({
227
227
  return;
228
228
  }
229
229
  const identifier = node.parent.id;
230
- if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase() + '_') || identifier.name === declarationSuffix.toLowerCase())) {
230
+ if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase()) || identifier.name === declarationSuffix.toLowerCase())) {
231
231
  // Already prefixed! Nothing to do.
232
232
  return;
233
233
  }
@@ -50,11 +50,11 @@ var getDeclaratorString = function getDeclaratorString(context) {
50
50
  return declaratorName;
51
51
  } else {
52
52
  // If styles already exists, increment the number
53
- while (variables.includes("".concat(declaratorName, "_").concat(count))) {
53
+ while (variables.includes("".concat(declaratorName).concat(count))) {
54
54
  count++;
55
55
  }
56
56
  }
57
- return "".concat(declaratorName, "_").concat(count);
57
+ return "".concat(declaratorName).concat(count);
58
58
  };
59
59
  function analyzeIdentifier(context, sourceIdentifier, configuration) {
60
60
  var _getIdentifierInParen, _getIdentifierInParen2;
@@ -240,7 +240,7 @@ var rule = createLintRule({
240
240
  return;
241
241
  }
242
242
  var identifier = node.parent.id;
243
- if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase() + '_') || identifier.name === declarationSuffix.toLowerCase())) {
243
+ if (identifier.type === 'Identifier' && (identifier.name.endsWith(declarationSuffix) || identifier.name.startsWith(declarationSuffix.toLowerCase()) || identifier.name === declarationSuffix.toLowerCase())) {
244
244
  // Already prefixed! Nothing to do.
245
245
  return;
246
246
  }
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.22.0",
4
+ "version": "8.23.0",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"