@atlaskit/eslint-plugin-design-system 8.4.4 → 8.4.5
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,11 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 8.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d37dcab0fc4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d37dcab0fc4) - Stop `prefer-primitives` from reporting on React components.
|
|
8
|
+
|
|
3
9
|
## 8.4.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -325,7 +325,7 @@ var getCSSPropStyleObject = function getCSSPropStyleObject(node, context) {
|
|
|
325
325
|
var validPrimitiveElements = new Set(['div', 'span', 'article', 'aside', 'dialog', 'footer', 'header', 'li', 'main', 'nav', 'ol', 'section', 'ul']);
|
|
326
326
|
exports.validPrimitiveElements = validPrimitiveElements;
|
|
327
327
|
var isValidPrimitiveElement = function isValidPrimitiveElement(node) {
|
|
328
|
-
return validPrimitiveElements.has(node.openingElement.name.name
|
|
328
|
+
return validPrimitiveElements.has(node.openingElement.name.name);
|
|
329
329
|
};
|
|
330
330
|
exports.isValidPrimitiveElement = isValidPrimitiveElement;
|
|
331
331
|
var hasInlineCompatibleStyles = function hasInlineCompatibleStyles(cssStyleObject) {
|
|
@@ -305,7 +305,7 @@ const getCSSPropStyleObject = (node, context) => {
|
|
|
305
305
|
};
|
|
306
306
|
export const validPrimitiveElements = new Set(['div', 'span', 'article', 'aside', 'dialog', 'footer', 'header', 'li', 'main', 'nav', 'ol', 'section', 'ul']);
|
|
307
307
|
export const isValidPrimitiveElement = node => {
|
|
308
|
-
return validPrimitiveElements.has(node.openingElement.name.name
|
|
308
|
+
return validPrimitiveElements.has(node.openingElement.name.name);
|
|
309
309
|
};
|
|
310
310
|
const hasInlineCompatibleStyles = cssStyleObject => {
|
|
311
311
|
if (!['flex', 'inline-flex'].includes(cssStyleObject['display'])) {
|
|
@@ -311,7 +311,7 @@ var getCSSPropStyleObject = function getCSSPropStyleObject(node, context) {
|
|
|
311
311
|
};
|
|
312
312
|
export var validPrimitiveElements = new Set(['div', 'span', 'article', 'aside', 'dialog', 'footer', 'header', 'li', 'main', 'nav', 'ol', 'section', 'ul']);
|
|
313
313
|
export var isValidPrimitiveElement = function isValidPrimitiveElement(node) {
|
|
314
|
-
return validPrimitiveElements.has(node.openingElement.name.name
|
|
314
|
+
return validPrimitiveElements.has(node.openingElement.name.name);
|
|
315
315
|
};
|
|
316
316
|
var hasInlineCompatibleStyles = function hasInlineCompatibleStyles(cssStyleObject) {
|
|
317
317
|
if (!['flex', 'inline-flex'].includes(cssStyleObject['display'])) {
|
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.4.
|
|
4
|
+
"version": "8.4.5",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
48
|
-
"@atlaskit/theme": "^12.
|
|
48
|
+
"@atlaskit/theme": "^12.6.0",
|
|
49
49
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
50
50
|
"@atlassian/codegen": "*",
|
|
51
51
|
"@atlassian/eslint-utils": "^0.3.0",
|