@atlaskit/eslint-plugin-design-system 10.4.3 → 10.4.4

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +1019 -1025
  2. package/README.md +1 -1
  3. package/constellation/consistent-css-prop-usage/usage.mdx +18 -18
  4. package/constellation/index/usage.mdx +1 -1
  5. package/constellation/no-css-tagged-template-expression/usage.mdx +13 -13
  6. package/constellation/no-deprecated-apis/usage.mdx +26 -26
  7. package/constellation/no-deprecated-imports/usage.mdx +27 -27
  8. package/constellation/no-direct-use-of-web-platform-drag-and-drop/usage.mdx +5 -5
  9. package/constellation/no-empty-styled-expression/usage.mdx +11 -11
  10. package/constellation/no-exported-css/usage.mdx +7 -7
  11. package/constellation/no-exported-keyframes/usage.mdx +7 -7
  12. package/constellation/no-invalid-css-map/usage.mdx +52 -52
  13. package/constellation/no-keyframes-tagged-template-expression/usage.mdx +14 -14
  14. package/constellation/no-nested-styles/usage.mdx +13 -13
  15. package/constellation/no-physical-properties/usage.mdx +9 -9
  16. package/constellation/no-styled-tagged-template-expression/usage.mdx +30 -30
  17. package/constellation/no-unsafe-design-token-usage/usage.mdx +4 -4
  18. package/constellation/no-unsafe-style-overrides/usage.mdx +5 -5
  19. package/constellation/prefer-primitives/usage.mdx +1 -1
  20. package/constellation/use-heading/usage.mdx +2 -2
  21. package/constellation/use-heading-level-in-spotlight-card/usage.mdx +1 -1
  22. package/constellation/use-latest-xcss-syntax/usage.mdx +2 -2
  23. package/constellation/use-primitives/usage.mdx +38 -38
  24. package/constellation/use-tokens-space/usage.mdx +2 -2
  25. package/dist/cjs/index.codegen.js +1 -1
  26. package/dist/cjs/presets/all.codegen.js +1 -1
  27. package/dist/cjs/presets/recommended.codegen.js +2 -1
  28. package/dist/cjs/rules/index.codegen.js +1 -1
  29. package/dist/cjs/rules/no-html-button/index.js +1 -1
  30. package/dist/es2019/index.codegen.js +1 -1
  31. package/dist/es2019/presets/all.codegen.js +1 -1
  32. package/dist/es2019/presets/recommended.codegen.js +2 -1
  33. package/dist/es2019/rules/index.codegen.js +1 -1
  34. package/dist/es2019/rules/no-html-button/index.js +1 -1
  35. package/dist/esm/index.codegen.js +1 -1
  36. package/dist/esm/presets/all.codegen.js +1 -1
  37. package/dist/esm/presets/recommended.codegen.js +2 -1
  38. package/dist/esm/rules/index.codegen.js +1 -1
  39. package/dist/esm/rules/no-html-button/index.js +1 -1
  40. package/dist/types/index.codegen.d.ts +1 -0
  41. package/dist/types/presets/all.codegen.d.ts +1 -1
  42. package/dist/types/presets/recommended.codegen.d.ts +2 -1
  43. package/dist/types-ts4.5/index.codegen.d.ts +1 -0
  44. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  45. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -1
  46. package/package.json +3 -5
@@ -11,17 +11,17 @@ This rule checks for nested styles inside `css` objects. This rule has no option
11
11
 
12
12
  ```js
13
13
  css({
14
- div: {
15
- color: 'red',
16
- },
14
+ div: {
15
+ color: 'red',
16
+ },
17
17
  });
18
18
  ```
19
19
 
20
20
  ```js
21
21
  css({
22
- '@media (min-width: 480px)': {
23
- color: 'red',
24
- },
22
+ '@media (min-width: 480px)': {
23
+ color: 'red',
24
+ },
25
25
  });
26
26
  ```
27
27
 
@@ -29,10 +29,10 @@ css({
29
29
 
30
30
  ```js
31
31
  css({
32
- color: 'red',
33
- ':hover': {
34
- color: 'black',
35
- },
32
+ color: 'red',
33
+ ':hover': {
34
+ color: 'black',
35
+ },
36
36
  });
37
37
  ```
38
38
 
@@ -40,8 +40,8 @@ css({
40
40
  import { media } from '@atlaskit/primitives';
41
41
 
42
42
  css({
43
- [media.above.xs]: {
44
- color: 'red',
45
- },
43
+ [media.above.xs]: {
44
+ color: 'red',
45
+ },
46
46
  });
47
47
  ```
@@ -13,22 +13,22 @@ This rule checks for physical property usage inside of `css` function calls.
13
13
 
14
14
  ```js
15
15
  css({
16
- left: 0,
17
- right: 0,
18
- top: 0,
19
- bottom: 0,
16
+ left: 0,
17
+ right: 0,
18
+ top: 0,
19
+ bottom: 0,
20
20
  });
21
21
  ```
22
22
 
23
23
  ```js
24
24
  css({
25
- marginLeft: 0,
25
+ marginLeft: 0,
26
26
  });
27
27
  ```
28
28
 
29
29
  ```js
30
30
  css({
31
- textAlign: 'left',
31
+ textAlign: 'left',
32
32
  });
33
33
  ```
34
34
 
@@ -36,18 +36,18 @@ css({
36
36
 
37
37
  ```js
38
38
  css({
39
- inset: 0,
39
+ inset: 0,
40
40
  });
41
41
  ```
42
42
 
43
43
  ```js
44
44
  css({
45
- marginInlineStart: 0,
45
+ marginInlineStart: 0,
46
46
  });
47
47
  ```
48
48
 
49
49
  ```js
50
50
  css({
51
- textAlign: 'start',
51
+ textAlign: 'start',
52
52
  });
53
53
  ```
@@ -17,21 +17,21 @@ The `--fix` option on the command line automatically fixes problems reported by
17
17
  import { styled } from '@compiled/react';
18
18
 
19
19
  const InlinedStyles = styled.div`
20
- color: blue;
20
+ color: blue;
21
21
  `;
22
22
 
23
23
  const MultilineStyles = styled.div`
24
- color: blue;
25
- font-weight: 500;
24
+ color: blue;
25
+ font-weight: 500;
26
26
  `;
27
27
 
28
28
  const ComposedStyles = styled(InlinedStyles)`
29
- font-weight: 500;
29
+ font-weight: 500;
30
30
  `;
31
31
 
32
32
  const DynamicStyles = styled.div`
33
- color: ${(props) => props.color};
34
- ${(props) => (props.disabled ? 'opacity: 0.8' : 'opacity: 1')}
33
+ color: ${(props) => props.color};
34
+ ${(props) => (props.disabled ? 'opacity: 0.8' : 'opacity: 1')}
35
35
  `;
36
36
  ```
37
37
 
@@ -41,23 +41,23 @@ const DynamicStyles = styled.div`
41
41
  import { styled } from '@compiled/react';
42
42
 
43
43
  const InlinedStyles = styled.div({
44
- color: 'blue',
44
+ color: 'blue',
45
45
  });
46
46
 
47
47
  const MultilineStyles = styled.div({
48
- color: 'blue',
49
- fontWeight: 500,
48
+ color: 'blue',
49
+ fontWeight: 500,
50
50
  });
51
51
 
52
52
  const ComposedStyles = styled(InlinedStyles)({
53
- fontWeight: 500,
53
+ fontWeight: 500,
54
54
  });
55
55
 
56
56
  const DynamicStyles = styled.div(
57
- {
58
- color: (props) => props.color,
59
- },
60
- (props) => (props.disabled ? 'opacity: 0.8' : 'opacity: 1'),
57
+ {
58
+ color: (props) => props.color,
59
+ },
60
+ (props) => (props.disabled ? 'opacity: 0.8' : 'opacity: 1'),
61
61
  );
62
62
  ```
63
63
 
@@ -67,13 +67,13 @@ const DynamicStyles = styled.div(
67
67
 
68
68
  By default, this rule will check `styled` usages from:
69
69
 
70
- - `@atlaskit/css`
71
- - `@atlaskit/primitives`
72
- - `@compiled/react`
73
- - `@emotion/react`
74
- - `@emotion/core`
75
- - `@emotion/styled`
76
- - `styled-components`
70
+ - `@atlaskit/css`
71
+ - `@atlaskit/primitives`
72
+ - `@compiled/react`
73
+ - `@emotion/react`
74
+ - `@emotion/core`
75
+ - `@emotion/styled`
76
+ - `styled-components`
77
77
 
78
78
  To change this list of libraries, you can define a custom set of `importSources`, which accepts an
79
79
  array of package names (strings).
@@ -89,8 +89,8 @@ export const Component = styled.div``;
89
89
 
90
90
  ## Limitations
91
91
 
92
- - Comments are not fixable.
93
- - Component selectors are not fixable for `styled-components`.
92
+ - Comments are not fixable.
93
+ - Component selectors are not fixable for `styled-components`.
94
94
 
95
95
  Do not migrate to this object syntax manually, it is invalid `styled-components`.
96
96
 
@@ -110,11 +110,11 @@ Instead, style the button directly—make it clear that you're styling that butt
110
110
  ```tsx
111
111
  const buttonStyles = css({ color: 'blue' });
112
112
  const Wrapper = styled.div({
113
- color: 'red',
113
+ color: 'red',
114
114
  });
115
115
 
116
116
  <Wrapper>
117
- <button css={buttonStyles} />
117
+ <button css={buttonStyles} />
118
118
  </Wrapper>;
119
119
  ```
120
120
 
@@ -123,13 +123,13 @@ Standard around nested styles, pushing the error down the road.
123
123
 
124
124
  ```tsx
125
125
  const Wrapper = styled.div({
126
- color: 'red',
127
- '[data-component-selector="my.button"]': {
128
- color: 'blue',
129
- },
126
+ color: 'red',
127
+ '[data-component-selector="my.button"]': {
128
+ color: 'blue',
129
+ },
130
130
  });
131
131
 
132
132
  <Wrapper>
133
- <button data-component-selector="my.button" />
133
+ <button data-component-selector="my.button" />
134
134
  </Wrapper>;
135
135
  ```
@@ -30,7 +30,7 @@ import { token } from '@atlaskit/tokens';
30
30
  css({ boxShadow: token('elevation.shadow.card') });
31
31
 
32
32
  css`
33
- color: ${(token('color.text.highemphasis'), N20)};
33
+ color: ${(token('color.text.highemphasis'), N20)};
34
34
  `;
35
35
  ```
36
36
 
@@ -40,9 +40,9 @@ This rule comes with options to aid in migrating to design tokens.
40
40
 
41
41
  ### fallbackUsage
42
42
 
43
- - `forced`: Fallback values must always be provided
44
- - `none`: Fallback values must never be provided. (Fixer will remove if provided)
45
- - `optional`: Fallbacks are optional
43
+ - `forced`: Fallback values must always be provided
44
+ - `none`: Fallback values must never be provided. (Fixer will remove if provided)
45
+ - `optional`: Fallbacks are optional
46
46
 
47
47
  ### shouldEnforceFallbacks (deprecated)
48
48
 
@@ -36,7 +36,7 @@ import { ButtonItem } from '@atlaskit/side-navigation';
36
36
 
37
37
  ```tsx
38
38
  <Button>
39
- <strong>foo</strong>
39
+ <strong>foo</strong>
40
40
  </Button>
41
41
  ```
42
42
 
@@ -44,9 +44,9 @@ import { ButtonItem } from '@atlaskit/side-navigation';
44
44
  const styles = css({ padding: 'var(--ds-space-100)' });
45
45
 
46
46
  <Box as="a" xcss={styles}>
47
- <Stack>
48
- <Inline />
49
- <Inline />
50
- </Stack>
47
+ <Stack>
48
+ <Inline />
49
+ <Inline />
50
+ </Stack>
51
51
  </Box>;
52
52
  ```
@@ -27,6 +27,6 @@ This rule marks code as violations when it may be able to be replaced with a pri
27
27
 
28
28
  ```js
29
29
  <Component>
30
- <Box xcss={someStyles}></Box>
30
+ <Box xcss={someStyles}></Box>
31
31
  </Component>
32
32
  ```
@@ -21,8 +21,8 @@ This rule marks code as violations when it can be replaced 1:1 with a heading co
21
21
 
22
22
  ```jsx
23
23
  <div>
24
- <Heading size="xlarge">text</Heading>
25
- <p>content</p>
24
+ <Heading size="xlarge">text</Heading>
25
+ <p>content</p>
26
26
  </div>
27
27
  ```
28
28
 
@@ -16,6 +16,6 @@ future releases.
16
16
 
17
17
  ```tsx
18
18
  <SpotlightCard heading="Heading" headingLevel={2}>
19
- Spotlight card contents
19
+ Spotlight card contents
20
20
  </SpotlightCard>
21
21
  ```
@@ -29,5 +29,5 @@ See the list of available space tokens on the
29
29
 
30
30
  For Atlassians:
31
31
 
32
- - See [go/xcss-spacing](https://go.atlassian.com/xcss-spacing) for context on why this is
33
- happening, and how you can prepare.
32
+ - See [go/xcss-spacing](https://go.atlassian.com/xcss-spacing) for context on why this is happening,
33
+ and how you can prepare.
@@ -34,45 +34,45 @@ const someStyles = xcss({
34
34
 
35
35
  Currently, the rule is extremely defensive, only reporting on `css` styles that contain:
36
36
 
37
- - one, and only one, style property from this list:
37
+ - one, and only one, style property from this list:
38
38
 
39
- - padding
40
- - paddingBlock
41
- - paddingBlockEnd
42
- - paddingBlockStart
43
- - paddingBottom
44
- - paddingInline
45
- - paddingInlineEnd
46
- - paddingInlineStart
47
- - paddingLeft
48
- - paddingRight
49
- - paddingTop
50
- - margin
51
- - marginBlock
52
- - marginBlockEnd
53
- - marginBlockStart
54
- - marginBottom
55
- - marginInline
56
- - marginInlineEnd
57
- - marginInlineStart
58
- - marginLeft
59
- - marginRight
60
- - marginTop
39
+ - padding
40
+ - paddingBlock
41
+ - paddingBlockEnd
42
+ - paddingBlockStart
43
+ - paddingBottom
44
+ - paddingInline
45
+ - paddingInlineEnd
46
+ - paddingInlineStart
47
+ - paddingLeft
48
+ - paddingRight
49
+ - paddingTop
50
+ - margin
51
+ - marginBlock
52
+ - marginBlockEnd
53
+ - marginBlockStart
54
+ - marginBottom
55
+ - marginInline
56
+ - marginInlineEnd
57
+ - marginInlineStart
58
+ - marginLeft
59
+ - marginRight
60
+ - marginTop
61
61
 
62
- - and where the style value is one of:
63
- - 0px
64
- - 2px
65
- - 4px
66
- - 6px
67
- - 8px
68
- - 12px
69
- - 16px
70
- - 20px
71
- - 24px
72
- - 32px
73
- - 40px
74
- - 48px
75
- - 64px
76
- - 80px
62
+ - and where the style value is one of:
63
+ - 0px
64
+ - 2px
65
+ - 4px
66
+ - 6px
67
+ - 8px
68
+ - 12px
69
+ - 16px
70
+ - 20px
71
+ - 24px
72
+ - 32px
73
+ - 40px
74
+ - 48px
75
+ - 64px
76
+ - 80px
77
77
 
78
78
  If these conditions are not met, then no violation will be reported.
@@ -30,5 +30,5 @@ See the list of available space tokens on the
30
30
 
31
31
  For Atlassians:
32
32
 
33
- - See the [Token Migration Guide](https://go.atlassian.com/space-token-migration) for instructions
34
- on how to migrate to tokens when a suggestion is not provided by the ESLint rule.
33
+ - See the [Token Migration Guide](https://go.atlassian.com/space-token-migration) for instructions
34
+ on how to migrate to tokens when a suggestion is not provided by the ESLint rule.
@@ -16,7 +16,7 @@ var _recommended = _interopRequireDefault(require("./presets/recommended.codegen
16
16
  var _index = _interopRequireDefault(require("./rules/index.codegen"));
17
17
  /**
18
18
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
19
- * @codegen <<SignedSource::a1bb0f17560603fa4895326b1d50744e>>
19
+ * @codegen <<SignedSource::abdb6f8b0dfdc4e2489691c04488f46e>>
20
20
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
21
21
  */
22
22
 
@@ -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::9547e0088a838147f4c53a0d8d021909>>
9
+ * @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -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::aeb378113df7f1734ff3940f2d1ed3bb>>
9
+ * @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -23,6 +23,7 @@ var _default = exports.default = {
23
23
  '@atlaskit/design-system/no-empty-styled-expression': 'warn',
24
24
  '@atlaskit/design-system/no-exported-css': 'warn',
25
25
  '@atlaskit/design-system/no-exported-keyframes': 'warn',
26
+ '@atlaskit/design-system/no-html-button': 'warn',
26
27
  '@atlaskit/design-system/no-invalid-css-map': 'error',
27
28
  '@atlaskit/design-system/no-nested-styles': 'error',
28
29
  '@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
@@ -44,7 +44,7 @@ var _useTokensTypography = _interopRequireDefault(require("./use-tokens-typograp
44
44
  var _useVisuallyHidden = _interopRequireDefault(require("./use-visually-hidden"));
45
45
  /**
46
46
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
47
- * @codegen <<SignedSource::5eacfe26cc2ae11b81dfad5719b90959>>
47
+ * @codegen <<SignedSource::920113eedc2218488bff48b528364867>>
48
48
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
49
49
  */
50
50
  var _default = exports.default = {
@@ -12,7 +12,7 @@ var rule = (0, _createRule.createLintRule)({
12
12
  type: 'suggestion',
13
13
  docs: {
14
14
  description: 'Discourage direct usage of HTML button elements in favor of Atlassian Design System button components.',
15
- recommended: false,
15
+ recommended: true,
16
16
  severity: 'warn'
17
17
  },
18
18
  messages: {
@@ -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::a1bb0f17560603fa4895326b1d50744e>>
3
+ * @codegen <<SignedSource::abdb6f8b0dfdc4e2489691c04488f46e>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import all from './presets/all.codegen';
@@ -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::9547e0088a838147f4c53a0d8d021909>>
3
+ * @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  export 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::aeb378113df7f1734ff3940f2d1ed3bb>>
3
+ * @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  export default {
@@ -17,6 +17,7 @@ export default {
17
17
  '@atlaskit/design-system/no-empty-styled-expression': 'warn',
18
18
  '@atlaskit/design-system/no-exported-css': 'warn',
19
19
  '@atlaskit/design-system/no-exported-keyframes': 'warn',
20
+ '@atlaskit/design-system/no-html-button': 'warn',
20
21
  '@atlaskit/design-system/no-invalid-css-map': 'error',
21
22
  '@atlaskit/design-system/no-nested-styles': 'error',
22
23
  '@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
@@ -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::5eacfe26cc2ae11b81dfad5719b90959>>
3
+ * @codegen <<SignedSource::920113eedc2218488bff48b528364867>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import consistentCssPropUsage from './consistent-css-prop-usage';
@@ -6,7 +6,7 @@ const rule = createLintRule({
6
6
  type: 'suggestion',
7
7
  docs: {
8
8
  description: 'Discourage direct usage of HTML button elements in favor of Atlassian Design System button components.',
9
- recommended: false,
9
+ recommended: true,
10
10
  severity: 'warn'
11
11
  },
12
12
  messages: {
@@ -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::a1bb0f17560603fa4895326b1d50744e>>
3
+ * @codegen <<SignedSource::abdb6f8b0dfdc4e2489691c04488f46e>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import all from './presets/all.codegen';
@@ -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::9547e0088a838147f4c53a0d8d021909>>
3
+ * @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  export 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::aeb378113df7f1734ff3940f2d1ed3bb>>
3
+ * @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  export default {
@@ -17,6 +17,7 @@ export default {
17
17
  '@atlaskit/design-system/no-empty-styled-expression': 'warn',
18
18
  '@atlaskit/design-system/no-exported-css': 'warn',
19
19
  '@atlaskit/design-system/no-exported-keyframes': 'warn',
20
+ '@atlaskit/design-system/no-html-button': 'warn',
20
21
  '@atlaskit/design-system/no-invalid-css-map': 'error',
21
22
  '@atlaskit/design-system/no-nested-styles': 'error',
22
23
  '@atlaskit/design-system/no-unsafe-design-token-usage': 'error',
@@ -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::5eacfe26cc2ae11b81dfad5719b90959>>
3
+ * @codegen <<SignedSource::920113eedc2218488bff48b528364867>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import consistentCssPropUsage from './consistent-css-prop-usage';
@@ -6,7 +6,7 @@ var rule = createLintRule({
6
6
  type: 'suggestion',
7
7
  docs: {
8
8
  description: 'Discourage direct usage of HTML button elements in favor of Atlassian Design System button components.',
9
- recommended: false,
9
+ recommended: true,
10
10
  severity: 'warn'
11
11
  },
12
12
  messages: {
@@ -56,6 +56,7 @@ export declare const configs: {
56
56
  '@atlaskit/design-system/no-empty-styled-expression': string;
57
57
  '@atlaskit/design-system/no-exported-css': string;
58
58
  '@atlaskit/design-system/no-exported-keyframes': string;
59
+ '@atlaskit/design-system/no-html-button': string;
59
60
  '@atlaskit/design-system/no-invalid-css-map': string;
60
61
  '@atlaskit/design-system/no-nested-styles': string;
61
62
  '@atlaskit/design-system/no-unsafe-design-token-usage': 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::9547e0088a838147f4c53a0d8d021909>>
3
+ * @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _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::aeb378113df7f1734ff3940f2d1ed3bb>>
3
+ * @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  '@atlaskit/design-system/no-empty-styled-expression': string;
18
18
  '@atlaskit/design-system/no-exported-css': string;
19
19
  '@atlaskit/design-system/no-exported-keyframes': string;
20
+ '@atlaskit/design-system/no-html-button': string;
20
21
  '@atlaskit/design-system/no-invalid-css-map': string;
21
22
  '@atlaskit/design-system/no-nested-styles': string;
22
23
  '@atlaskit/design-system/no-unsafe-design-token-usage': string;
@@ -56,6 +56,7 @@ export declare const configs: {
56
56
  '@atlaskit/design-system/no-empty-styled-expression': string;
57
57
  '@atlaskit/design-system/no-exported-css': string;
58
58
  '@atlaskit/design-system/no-exported-keyframes': string;
59
+ '@atlaskit/design-system/no-html-button': string;
59
60
  '@atlaskit/design-system/no-invalid-css-map': string;
60
61
  '@atlaskit/design-system/no-nested-styles': string;
61
62
  '@atlaskit/design-system/no-unsafe-design-token-usage': 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::9547e0088a838147f4c53a0d8d021909>>
3
+ * @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _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::aeb378113df7f1734ff3940f2d1ed3bb>>
3
+ * @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -17,6 +17,7 @@ declare const _default: {
17
17
  '@atlaskit/design-system/no-empty-styled-expression': string;
18
18
  '@atlaskit/design-system/no-exported-css': string;
19
19
  '@atlaskit/design-system/no-exported-keyframes': string;
20
+ '@atlaskit/design-system/no-html-button': string;
20
21
  '@atlaskit/design-system/no-invalid-css-map': string;
21
22
  '@atlaskit/design-system/no-nested-styles': string;
22
23
  '@atlaskit/design-system/no-unsafe-design-token-usage': string;