@atlaskit/eslint-plugin-design-system 10.10.1 → 10.10.2
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 +8 -0
- package/dist/cjs/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +3 -2
- package/dist/cjs/rules/use-tokens-space/transformers/style-property/supported.js +3 -2
- package/dist/cjs/rules/use-visually-hidden/fix-jsx.js +4 -2
- package/dist/cjs/rules/use-visually-hidden/fix-vanilla.js +4 -2
- package/dist/es2019/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +3 -2
- package/dist/es2019/rules/use-tokens-space/transformers/style-property/supported.js +3 -2
- package/dist/es2019/rules/use-visually-hidden/fix-jsx.js +3 -2
- package/dist/es2019/rules/use-visually-hidden/fix-vanilla.js +3 -2
- package/dist/esm/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +3 -2
- package/dist/esm/rules/use-tokens-space/transformers/style-property/supported.js +3 -2
- package/dist/esm/rules/use-visually-hidden/fix-jsx.js +3 -2
- package/dist/esm/rules/use-visually-hidden/fix-vanilla.js +3 -2
- package/dist/types/rules/use-latest-xcss-syntax/transformers/style-property/supported.d.ts +2 -2
- package/dist/types/rules/use-tokens-space/transformers/style-property/supported.d.ts +2 -2
- package/dist/types/rules/use-visually-hidden/fix-jsx.d.ts +2 -2
- package/dist/types/rules/use-visually-hidden/fix-vanilla.d.ts +2 -2
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/supported.d.ts +2 -2
- package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/supported.d.ts +2 -2
- package/dist/types-ts4.5/rules/use-visually-hidden/fix-jsx.d.ts +2 -2
- package/dist/types-ts4.5/rules/use-visually-hidden/fix-vanilla.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 10.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120049](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120049)
|
|
8
|
+
[`77504ff274f72`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/77504ff274f72) -
|
|
9
|
+
DSP-19576: Assign names to anonymous default exports
|
|
10
|
+
|
|
3
11
|
## 10.10.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -4,10 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var supported = {
|
|
8
8
|
values: {
|
|
9
9
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer',
|
|
10
10
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
11
11
|
'0', '0 auto', 'space.negative.025', 'space.negative.050', 'space.negative.075', 'space.negative.100', 'space.negative.150', 'space.negative.200', 'space.negative.250', 'space.negative.300', 'space.negative.400', 'space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000']
|
|
12
12
|
}
|
|
13
|
-
};
|
|
13
|
+
};
|
|
14
|
+
var _default = exports.default = supported;
|
|
@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
7
|
+
var supported = {
|
|
8
8
|
values: {
|
|
9
9
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer', 'none',
|
|
10
10
|
// outline-offset can be set to none
|
|
11
11
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
12
12
|
0, '0', '0px', '0em', '0rem']
|
|
13
13
|
}
|
|
14
|
-
};
|
|
14
|
+
};
|
|
15
|
+
var _default = exports.default = supported;
|
|
@@ -9,7 +9,8 @@ var _getImportNodeBySource = require("../utils/get-import-node-by-source");
|
|
|
9
9
|
var _constants = require("./constants");
|
|
10
10
|
var _utils = require("./utils");
|
|
11
11
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
var fixJsx = function fixJsx(source, node) {
|
|
13
14
|
return function (fixer) {
|
|
14
15
|
var fixes = [];
|
|
15
16
|
var importedNode = (0, _utils.getFirstImport)(source);
|
|
@@ -26,4 +27,5 @@ var _default = exports.default = function _default(source, node) {
|
|
|
26
27
|
}
|
|
27
28
|
return fixes;
|
|
28
29
|
};
|
|
29
|
-
};
|
|
30
|
+
};
|
|
31
|
+
var _default = exports.default = fixJsx;
|
|
@@ -8,7 +8,8 @@ var _getImportNodeBySource = require("../utils/get-import-node-by-source");
|
|
|
8
8
|
var _constants = require("./constants");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
var fixVanilla = function fixVanilla(source, node) {
|
|
12
13
|
return function (fixer) {
|
|
13
14
|
var fixes = [];
|
|
14
15
|
var importedNode = (0, _utils.getFirstImport)(source);
|
|
@@ -24,4 +25,5 @@ var _default = exports.default = function _default(source, node) {
|
|
|
24
25
|
}
|
|
25
26
|
return fixes;
|
|
26
27
|
};
|
|
27
|
-
};
|
|
28
|
+
};
|
|
29
|
+
var _default = exports.default = fixVanilla;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const supported = {
|
|
2
2
|
values: {
|
|
3
3
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer',
|
|
4
4
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
5
5
|
'0', '0 auto', 'space.negative.025', 'space.negative.050', 'space.negative.075', 'space.negative.100', 'space.negative.150', 'space.negative.200', 'space.negative.250', 'space.negative.300', 'space.negative.400', 'space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000']
|
|
6
6
|
}
|
|
7
|
-
};
|
|
7
|
+
};
|
|
8
|
+
export default supported;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const supported = {
|
|
2
2
|
values: {
|
|
3
3
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer', 'none',
|
|
4
4
|
// outline-offset can be set to none
|
|
5
5
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
6
6
|
0, '0', '0px', '0em', '0rem']
|
|
7
7
|
}
|
|
8
|
-
};
|
|
8
|
+
};
|
|
9
|
+
export default supported;
|
|
@@ -4,7 +4,7 @@ import { closestOfType } from 'eslint-codemod-utils';
|
|
|
4
4
|
import { getImportedNodeBySource } from '../utils/get-import-node-by-source';
|
|
5
5
|
import { IMPORT_NAME, VISUALLY_HIDDEN_IMPORT, VISUALLY_HIDDEN_SOURCE } from './constants';
|
|
6
6
|
import { getFirstImport } from './utils';
|
|
7
|
-
|
|
7
|
+
const fixJsx = (source, node) => fixer => {
|
|
8
8
|
const fixes = [];
|
|
9
9
|
const importedNode = getFirstImport(source);
|
|
10
10
|
const visuallyHiddenNode = getImportedNodeBySource(source, VISUALLY_HIDDEN_SOURCE);
|
|
@@ -19,4 +19,5 @@ export default ((source, node) => fixer => {
|
|
|
19
19
|
fixes.push(fixer.replaceText(jsxOpeningElement, `<${IMPORT_NAME} />`));
|
|
20
20
|
}
|
|
21
21
|
return fixes;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
|
+
export default fixJsx;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { getImportedNodeBySource } from '../utils/get-import-node-by-source';
|
|
4
4
|
import { IMPORT_NAME, VISUALLY_HIDDEN_IMPORT, VISUALLY_HIDDEN_SOURCE } from './constants';
|
|
5
5
|
import { getFirstImport } from './utils';
|
|
6
|
-
|
|
6
|
+
const fixVanilla = (source, node) => fixer => {
|
|
7
7
|
const fixes = [];
|
|
8
8
|
const importedNode = getFirstImport(source);
|
|
9
9
|
const visuallyHiddenNode = getImportedNodeBySource(source, VISUALLY_HIDDEN_SOURCE);
|
|
@@ -17,4 +17,5 @@ export default ((source, node) => fixer => {
|
|
|
17
17
|
fixes.push(fixer.replaceText(node, IMPORT_NAME));
|
|
18
18
|
}
|
|
19
19
|
return fixes;
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
|
+
export default fixVanilla;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
var supported = {
|
|
2
2
|
values: {
|
|
3
3
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer',
|
|
4
4
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
5
5
|
'0', '0 auto', 'space.negative.025', 'space.negative.050', 'space.negative.075', 'space.negative.100', 'space.negative.150', 'space.negative.200', 'space.negative.250', 'space.negative.300', 'space.negative.400', 'space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000']
|
|
6
6
|
}
|
|
7
|
-
};
|
|
7
|
+
};
|
|
8
|
+
export default supported;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
var supported = {
|
|
2
2
|
values: {
|
|
3
3
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer', 'none',
|
|
4
4
|
// outline-offset can be set to none
|
|
5
5
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
6
6
|
0, '0', '0px', '0em', '0rem']
|
|
7
7
|
}
|
|
8
|
-
};
|
|
8
|
+
};
|
|
9
|
+
export default supported;
|
|
@@ -4,7 +4,7 @@ import { closestOfType } from 'eslint-codemod-utils';
|
|
|
4
4
|
import { getImportedNodeBySource } from '../utils/get-import-node-by-source';
|
|
5
5
|
import { IMPORT_NAME, VISUALLY_HIDDEN_IMPORT, VISUALLY_HIDDEN_SOURCE } from './constants';
|
|
6
6
|
import { getFirstImport } from './utils';
|
|
7
|
-
|
|
7
|
+
var fixJsx = function fixJsx(source, node) {
|
|
8
8
|
return function (fixer) {
|
|
9
9
|
var fixes = [];
|
|
10
10
|
var importedNode = getFirstImport(source);
|
|
@@ -21,4 +21,5 @@ export default (function (source, node) {
|
|
|
21
21
|
}
|
|
22
22
|
return fixes;
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
|
+
export default fixJsx;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { getImportedNodeBySource } from '../utils/get-import-node-by-source';
|
|
4
4
|
import { IMPORT_NAME, VISUALLY_HIDDEN_IMPORT, VISUALLY_HIDDEN_SOURCE } from './constants';
|
|
5
5
|
import { getFirstImport } from './utils';
|
|
6
|
-
|
|
6
|
+
var fixVanilla = function fixVanilla(source, node) {
|
|
7
7
|
return function (fixer) {
|
|
8
8
|
var fixes = [];
|
|
9
9
|
var importedNode = getFirstImport(source);
|
|
@@ -19,4 +19,5 @@ export default (function (source, node) {
|
|
|
19
19
|
}
|
|
20
20
|
return fixes;
|
|
21
21
|
};
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
|
+
export default fixVanilla;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Rule, SourceCode } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const fixJsx: (source: SourceCode, node: Rule.Node) => (fixer: Rule.RuleFixer) => Rule.Fix[];
|
|
3
|
+
export default fixJsx;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Rule, SourceCode } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const fixVanilla: (source: SourceCode, node: Rule.Node) => (fixer: Rule.RuleFixer) => Rule.Fix[];
|
|
3
|
+
export default fixVanilla;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Rule, SourceCode } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const fixJsx: (source: SourceCode, node: Rule.Node) => (fixer: Rule.RuleFixer) => Rule.Fix[];
|
|
3
|
+
export default fixJsx;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Rule, SourceCode } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const fixVanilla: (source: SourceCode, node: Rule.Node) => (fixer: Rule.RuleFixer) => Rule.Fix[];
|
|
3
|
+
export default fixVanilla;
|
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": "10.10.
|
|
4
|
+
"version": "10.10.2",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jscodeshift": "^0.13.0",
|
|
68
68
|
"outdent": "^0.5.0",
|
|
69
69
|
"react": "^16.8.0",
|
|
70
|
-
"ts-jest": "29.
|
|
70
|
+
"ts-jest": "^29.2.2",
|
|
71
71
|
"ts-node": "^10.9.1",
|
|
72
72
|
"tsconfig-paths": "^4.2.0",
|
|
73
73
|
"typescript": "~5.4.2"
|