@atlaskit/eslint-plugin-design-system 10.14.0 → 10.16.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 +24 -0
- package/README.md +1 -0
- package/dist/cjs/presets/all.codegen.js +2 -1
- package/dist/cjs/rules/ensure-icon-color/index.js +57 -0
- package/dist/cjs/rules/index.codegen.js +3 -1
- package/dist/es2019/presets/all.codegen.js +2 -1
- package/dist/es2019/rules/ensure-icon-color/index.js +50 -0
- package/dist/es2019/rules/index.codegen.js +3 -1
- package/dist/esm/presets/all.codegen.js +2 -1
- package/dist/esm/rules/ensure-icon-color/index.js +52 -0
- package/dist/esm/rules/index.codegen.js +3 -1
- package/dist/types/index.codegen.d.ts +1 -0
- package/dist/types/presets/all.codegen.d.ts +2 -1
- package/dist/types/rules/ensure-icon-color/index.d.ts +3 -0
- package/dist/types/rules/index.codegen.d.ts +1 -0
- package/dist/types-ts4.5/index.codegen.d.ts +1 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -1
- package/dist/types-ts4.5/rules/ensure-icon-color/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 10.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130413)
|
|
8
|
+
[`1a796c4acf4e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1a796c4acf4e9) -
|
|
9
|
+
Added new eslint plugin, ensure-icon-color
|
|
10
|
+
|
|
11
|
+
## 10.15.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
|
|
16
|
+
[`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
|
|
17
|
+
Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
|
|
18
|
+
to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
|
|
19
|
+
|
|
20
|
+
This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
|
|
21
|
+
dependency range for `react` and `react-dom` for `/platform` packages.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 10.14.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@ module.exports = {
|
|
|
52
52
|
| <a href="./src/rules/consistent-css-prop-usage/README.md">consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
|
|
53
53
|
| <a href="./src/rules/ensure-design-token-usage/README.md">ensure-design-token-usage</a> | Enforces usage of design tokens rather than hard-coded values. | Yes | Yes | Yes |
|
|
54
54
|
| <a href="./src/rules/ensure-design-token-usage-preview/README.md">ensure-design-token-usage/preview</a> | Enforces usage of pre-release design tokens rather than hard-coded values. | | Yes | Yes |
|
|
55
|
+
| <a href="./src/rules/ensure-icon-color/README.md">ensure-icon-color</a> | Enforces that upcoming icon components have a color prop set, to enable a migration of the default value. | | | |
|
|
55
56
|
| <a href="./src/rules/icon-label/README.md">icon-label</a> | Enforces accessible usage of icon labels when composed with Atlassian Design System components. | Yes | Yes | |
|
|
56
57
|
| <a href="./src/rules/no-banned-imports/README.md">no-banned-imports</a> | Disallow importing banned modules. | Yes | | |
|
|
57
58
|
| <a href="./src/rules/no-css-tagged-template-expression/README.md">no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::16613cb3962ed68af0bffd70eef5f5e2>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -15,6 +15,7 @@ var _default = exports.default = {
|
|
|
15
15
|
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
16
16
|
'@atlaskit/design-system/ensure-design-token-usage': 'error',
|
|
17
17
|
'@atlaskit/design-system/ensure-design-token-usage/preview': 'warn',
|
|
18
|
+
'@atlaskit/design-system/ensure-icon-color': 'error',
|
|
18
19
|
'@atlaskit/design-system/icon-label': 'warn',
|
|
19
20
|
'@atlaskit/design-system/no-banned-imports': 'error',
|
|
20
21
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _eslintCodemodUtils = require("eslint-codemod-utils");
|
|
8
|
+
var _isFromImportSource = require("../no-custom-icons/checks/is-from-import-source");
|
|
9
|
+
var _createRule = require("../utils/create-rule");
|
|
10
|
+
var _errorBoundary = require("../utils/error-boundary");
|
|
11
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Returns if the node is a JSXElement with a prop that matches the given name.
|
|
15
|
+
*/
|
|
16
|
+
function hasProp(node, propName) {
|
|
17
|
+
return (0, _eslintCodemodUtils.isNodeOfType)(node.openingElement, 'JSXOpeningElement') && node.openingElement.attributes.some(function (a) {
|
|
18
|
+
return a.type === 'JSXAttribute' && a.name.name === propName;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var rule = (0, _createRule.createLintRule)({
|
|
22
|
+
meta: {
|
|
23
|
+
name: 'ensure-icon-color',
|
|
24
|
+
docs: {
|
|
25
|
+
description: 'Enforces that upcoming icon components have a color prop set, to enable a migration of the default value.',
|
|
26
|
+
recommended: false,
|
|
27
|
+
severity: 'error'
|
|
28
|
+
},
|
|
29
|
+
messages: {
|
|
30
|
+
missingColorProp: 'The default value of the `color` prop is about to change. To assist in the migration, the color prop must be set on new icons from `@atlaskit/icon/(core|utility)`.'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
create: function create(context) {
|
|
34
|
+
/**
|
|
35
|
+
* Contains a map of imported icon components from any atlaskit icon package.
|
|
36
|
+
*/
|
|
37
|
+
var isNewIcon = (0, _isFromImportSource.createIsFromImportSourceFor)(/^@(atlaskit\/icon|atlassian\/icon-lab)\/(core|utility)\/*/);
|
|
38
|
+
return (0, _errorBoundary.errorBoundary)({
|
|
39
|
+
JSXElement: function JSXElement(node) {
|
|
40
|
+
var _isNewIcon$getImportS;
|
|
41
|
+
if (!isNewIcon(node) || hasProp(node, 'color')) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
var importSource = (_isNewIcon$getImportS = isNewIcon.getImportSource(node)) !== null && _isNewIcon$getImportS !== void 0 ? _isNewIcon$getImportS : '';
|
|
45
|
+
context.report({
|
|
46
|
+
node: node.openingElement,
|
|
47
|
+
messageId: 'missingColorProp',
|
|
48
|
+
data: {
|
|
49
|
+
importSource: importSource
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
ImportDeclaration: isNewIcon.importDeclarationHook
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var _default = exports.default = rule;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _consistentCssPropUsage = _interopRequireDefault(require("./consistent-css-prop-usage"));
|
|
9
9
|
var _ensureDesignTokenUsage = _interopRequireDefault(require("./ensure-design-token-usage"));
|
|
10
10
|
var _ensureDesignTokenUsagePreview = _interopRequireDefault(require("./ensure-design-token-usage-preview"));
|
|
11
|
+
var _ensureIconColor = _interopRequireDefault(require("./ensure-icon-color"));
|
|
11
12
|
var _iconLabel = _interopRequireDefault(require("./icon-label"));
|
|
12
13
|
var _noBannedImports = _interopRequireDefault(require("./no-banned-imports"));
|
|
13
14
|
var _noCssTaggedTemplateExpression = _interopRequireDefault(require("./no-css-tagged-template-expression"));
|
|
@@ -48,13 +49,14 @@ var _useTokensTypography = _interopRequireDefault(require("./use-tokens-typograp
|
|
|
48
49
|
var _useVisuallyHidden = _interopRequireDefault(require("./use-visually-hidden"));
|
|
49
50
|
/**
|
|
50
51
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
51
|
-
* @codegen <<SignedSource::
|
|
52
|
+
* @codegen <<SignedSource::c2a140a3f690737dd938e746ef8fb9d5>>
|
|
52
53
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
53
54
|
*/
|
|
54
55
|
var _default = exports.default = {
|
|
55
56
|
'consistent-css-prop-usage': _consistentCssPropUsage.default,
|
|
56
57
|
'ensure-design-token-usage': _ensureDesignTokenUsage.default,
|
|
57
58
|
'ensure-design-token-usage/preview': _ensureDesignTokenUsagePreview.default,
|
|
59
|
+
'ensure-icon-color': _ensureIconColor.default,
|
|
58
60
|
'icon-label': _iconLabel.default,
|
|
59
61
|
'no-banned-imports': _noBannedImports.default,
|
|
60
62
|
'no-css-tagged-template-expression': _noCssTaggedTemplateExpression.default,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::16613cb3962ed68af0bffd70eef5f5e2>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
10
10
|
'@atlaskit/design-system/ensure-design-token-usage': 'error',
|
|
11
11
|
'@atlaskit/design-system/ensure-design-token-usage/preview': 'warn',
|
|
12
|
+
'@atlaskit/design-system/ensure-icon-color': 'error',
|
|
12
13
|
'@atlaskit/design-system/icon-label': 'warn',
|
|
13
14
|
'@atlaskit/design-system/no-banned-imports': 'error',
|
|
14
15
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
+
|
|
3
|
+
import { isNodeOfType } from 'eslint-codemod-utils';
|
|
4
|
+
import { createIsFromImportSourceFor } from '../no-custom-icons/checks/is-from-import-source';
|
|
5
|
+
import { createLintRule } from '../utils/create-rule';
|
|
6
|
+
import { errorBoundary } from '../utils/error-boundary';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns if the node is a JSXElement with a prop that matches the given name.
|
|
10
|
+
*/
|
|
11
|
+
function hasProp(node, propName) {
|
|
12
|
+
return isNodeOfType(node.openingElement, 'JSXOpeningElement') && node.openingElement.attributes.some(a => a.type === 'JSXAttribute' && a.name.name === propName);
|
|
13
|
+
}
|
|
14
|
+
const rule = createLintRule({
|
|
15
|
+
meta: {
|
|
16
|
+
name: 'ensure-icon-color',
|
|
17
|
+
docs: {
|
|
18
|
+
description: 'Enforces that upcoming icon components have a color prop set, to enable a migration of the default value.',
|
|
19
|
+
recommended: false,
|
|
20
|
+
severity: 'error'
|
|
21
|
+
},
|
|
22
|
+
messages: {
|
|
23
|
+
missingColorProp: 'The default value of the `color` prop is about to change. To assist in the migration, the color prop must be set on new icons from `@atlaskit/icon/(core|utility)`.'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
create(context) {
|
|
27
|
+
/**
|
|
28
|
+
* Contains a map of imported icon components from any atlaskit icon package.
|
|
29
|
+
*/
|
|
30
|
+
const isNewIcon = createIsFromImportSourceFor(/^@(atlaskit\/icon|atlassian\/icon-lab)\/(core|utility)\/*/);
|
|
31
|
+
return errorBoundary({
|
|
32
|
+
JSXElement(node) {
|
|
33
|
+
var _isNewIcon$getImportS;
|
|
34
|
+
if (!isNewIcon(node) || hasProp(node, 'color')) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const importSource = (_isNewIcon$getImportS = isNewIcon.getImportSource(node)) !== null && _isNewIcon$getImportS !== void 0 ? _isNewIcon$getImportS : '';
|
|
38
|
+
context.report({
|
|
39
|
+
node: node.openingElement,
|
|
40
|
+
messageId: 'missingColorProp',
|
|
41
|
+
data: {
|
|
42
|
+
importSource
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
ImportDeclaration: isNewIcon.importDeclarationHook
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export default rule;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c2a140a3f690737dd938e746ef8fb9d5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import consistentCssPropUsage from './consistent-css-prop-usage';
|
|
7
7
|
import ensureDesignTokenUsage from './ensure-design-token-usage';
|
|
8
8
|
import ensureDesignTokenUsagePreview from './ensure-design-token-usage-preview';
|
|
9
|
+
import ensureIconColor from './ensure-icon-color';
|
|
9
10
|
import iconLabel from './icon-label';
|
|
10
11
|
import noBannedImports from './no-banned-imports';
|
|
11
12
|
import noCssTaggedTemplateExpression from './no-css-tagged-template-expression';
|
|
@@ -48,6 +49,7 @@ export default {
|
|
|
48
49
|
'consistent-css-prop-usage': consistentCssPropUsage,
|
|
49
50
|
'ensure-design-token-usage': ensureDesignTokenUsage,
|
|
50
51
|
'ensure-design-token-usage/preview': ensureDesignTokenUsagePreview,
|
|
52
|
+
'ensure-icon-color': ensureIconColor,
|
|
51
53
|
'icon-label': iconLabel,
|
|
52
54
|
'no-banned-imports': noBannedImports,
|
|
53
55
|
'no-css-tagged-template-expression': noCssTaggedTemplateExpression,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::16613cb3962ed68af0bffd70eef5f5e2>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
10
10
|
'@atlaskit/design-system/ensure-design-token-usage': 'error',
|
|
11
11
|
'@atlaskit/design-system/ensure-design-token-usage/preview': 'warn',
|
|
12
|
+
'@atlaskit/design-system/ensure-icon-color': 'error',
|
|
12
13
|
'@atlaskit/design-system/icon-label': 'warn',
|
|
13
14
|
'@atlaskit/design-system/no-banned-imports': 'error',
|
|
14
15
|
'@atlaskit/design-system/no-css-tagged-template-expression': 'error',
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
+
|
|
3
|
+
import { isNodeOfType } from 'eslint-codemod-utils';
|
|
4
|
+
import { createIsFromImportSourceFor } from '../no-custom-icons/checks/is-from-import-source';
|
|
5
|
+
import { createLintRule } from '../utils/create-rule';
|
|
6
|
+
import { errorBoundary } from '../utils/error-boundary';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns if the node is a JSXElement with a prop that matches the given name.
|
|
10
|
+
*/
|
|
11
|
+
function hasProp(node, propName) {
|
|
12
|
+
return isNodeOfType(node.openingElement, 'JSXOpeningElement') && node.openingElement.attributes.some(function (a) {
|
|
13
|
+
return a.type === 'JSXAttribute' && a.name.name === propName;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
var rule = createLintRule({
|
|
17
|
+
meta: {
|
|
18
|
+
name: 'ensure-icon-color',
|
|
19
|
+
docs: {
|
|
20
|
+
description: 'Enforces that upcoming icon components have a color prop set, to enable a migration of the default value.',
|
|
21
|
+
recommended: false,
|
|
22
|
+
severity: 'error'
|
|
23
|
+
},
|
|
24
|
+
messages: {
|
|
25
|
+
missingColorProp: 'The default value of the `color` prop is about to change. To assist in the migration, the color prop must be set on new icons from `@atlaskit/icon/(core|utility)`.'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
create: function create(context) {
|
|
29
|
+
/**
|
|
30
|
+
* Contains a map of imported icon components from any atlaskit icon package.
|
|
31
|
+
*/
|
|
32
|
+
var isNewIcon = createIsFromImportSourceFor(/^@(atlaskit\/icon|atlassian\/icon-lab)\/(core|utility)\/*/);
|
|
33
|
+
return errorBoundary({
|
|
34
|
+
JSXElement: function JSXElement(node) {
|
|
35
|
+
var _isNewIcon$getImportS;
|
|
36
|
+
if (!isNewIcon(node) || hasProp(node, 'color')) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
var importSource = (_isNewIcon$getImportS = isNewIcon.getImportSource(node)) !== null && _isNewIcon$getImportS !== void 0 ? _isNewIcon$getImportS : '';
|
|
40
|
+
context.report({
|
|
41
|
+
node: node.openingElement,
|
|
42
|
+
messageId: 'missingColorProp',
|
|
43
|
+
data: {
|
|
44
|
+
importSource: importSource
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
ImportDeclaration: isNewIcon.importDeclarationHook
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export default rule;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c2a140a3f690737dd938e746ef8fb9d5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import consistentCssPropUsage from './consistent-css-prop-usage';
|
|
7
7
|
import ensureDesignTokenUsage from './ensure-design-token-usage';
|
|
8
8
|
import ensureDesignTokenUsagePreview from './ensure-design-token-usage-preview';
|
|
9
|
+
import ensureIconColor from './ensure-icon-color';
|
|
9
10
|
import iconLabel from './icon-label';
|
|
10
11
|
import noBannedImports from './no-banned-imports';
|
|
11
12
|
import noCssTaggedTemplateExpression from './no-css-tagged-template-expression';
|
|
@@ -48,6 +49,7 @@ export default {
|
|
|
48
49
|
'consistent-css-prop-usage': consistentCssPropUsage,
|
|
49
50
|
'ensure-design-token-usage': ensureDesignTokenUsage,
|
|
50
51
|
'ensure-design-token-usage/preview': ensureDesignTokenUsagePreview,
|
|
52
|
+
'ensure-icon-color': ensureIconColor,
|
|
51
53
|
'icon-label': iconLabel,
|
|
52
54
|
'no-banned-imports': noBannedImports,
|
|
53
55
|
'no-css-tagged-template-expression': noCssTaggedTemplateExpression,
|
|
@@ -6,6 +6,7 @@ export declare const configs: {
|
|
|
6
6
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
7
7
|
'@atlaskit/design-system/ensure-design-token-usage': string;
|
|
8
8
|
'@atlaskit/design-system/ensure-design-token-usage/preview': string;
|
|
9
|
+
'@atlaskit/design-system/ensure-icon-color': string;
|
|
9
10
|
'@atlaskit/design-system/icon-label': string;
|
|
10
11
|
'@atlaskit/design-system/no-banned-imports': string;
|
|
11
12
|
'@atlaskit/design-system/no-css-tagged-template-expression': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::16613cb3962ed68af0bffd70eef5f5e2>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
10
10
|
'@atlaskit/design-system/ensure-design-token-usage': string;
|
|
11
11
|
'@atlaskit/design-system/ensure-design-token-usage/preview': string;
|
|
12
|
+
'@atlaskit/design-system/ensure-icon-color': string;
|
|
12
13
|
'@atlaskit/design-system/icon-label': string;
|
|
13
14
|
'@atlaskit/design-system/no-banned-imports': string;
|
|
14
15
|
'@atlaskit/design-system/no-css-tagged-template-expression': string;
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
|
|
3
3
|
'ensure-design-token-usage': import("eslint").Rule.RuleModule;
|
|
4
4
|
'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
|
|
5
|
+
'ensure-icon-color': import("eslint").Rule.RuleModule;
|
|
5
6
|
'icon-label': import("eslint").Rule.RuleModule;
|
|
6
7
|
'no-banned-imports': import("eslint").Rule.RuleModule;
|
|
7
8
|
'no-css-tagged-template-expression': import("eslint").Rule.RuleModule;
|
|
@@ -6,6 +6,7 @@ export declare const configs: {
|
|
|
6
6
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
7
7
|
'@atlaskit/design-system/ensure-design-token-usage': string;
|
|
8
8
|
'@atlaskit/design-system/ensure-design-token-usage/preview': string;
|
|
9
|
+
'@atlaskit/design-system/ensure-icon-color': string;
|
|
9
10
|
'@atlaskit/design-system/icon-label': string;
|
|
10
11
|
'@atlaskit/design-system/no-banned-imports': string;
|
|
11
12
|
'@atlaskit/design-system/no-css-tagged-template-expression': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::16613cb3962ed68af0bffd70eef5f5e2>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
10
10
|
'@atlaskit/design-system/ensure-design-token-usage': string;
|
|
11
11
|
'@atlaskit/design-system/ensure-design-token-usage/preview': string;
|
|
12
|
+
'@atlaskit/design-system/ensure-icon-color': string;
|
|
12
13
|
'@atlaskit/design-system/icon-label': string;
|
|
13
14
|
'@atlaskit/design-system/no-banned-imports': string;
|
|
14
15
|
'@atlaskit/design-system/no-css-tagged-template-expression': string;
|
|
@@ -2,6 +2,7 @@ declare const _default: {
|
|
|
2
2
|
'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
|
|
3
3
|
'ensure-design-token-usage': import("eslint").Rule.RuleModule;
|
|
4
4
|
'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
|
|
5
|
+
'ensure-icon-color': import("eslint").Rule.RuleModule;
|
|
5
6
|
'icon-label': import("eslint").Rule.RuleModule;
|
|
6
7
|
'no-banned-imports': import("eslint").Rule.RuleModule;
|
|
7
8
|
'no-css-tagged-template-expression': import("eslint").Rule.RuleModule;
|
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.
|
|
4
|
+
"version": "10.16.0",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
".": "./src/index.tsx"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react": "^16.8.0 || ^17.0.0 ||
|
|
41
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/eslint-utils": "^1.
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/eslint-utils": "^1.7.0",
|
|
45
|
+
"@atlaskit/icon": "^22.13.0",
|
|
46
46
|
"@atlaskit/tokens": "*",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@typescript-eslint/utils": "^5.48.1",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@af/formatting": "*",
|
|
58
|
-
"@atlaskit/ds-lib": "^2.
|
|
59
|
-
"@atlaskit/theme": "^
|
|
58
|
+
"@atlaskit/ds-lib": "^2.4.0",
|
|
59
|
+
"@atlaskit/theme": "^13.0.0",
|
|
60
60
|
"@atlassian/codegen": "*",
|
|
61
61
|
"@atlassian/eslint-utils": "^0.5.0",
|
|
62
62
|
"@atlassian/ts-loader": "*",
|