@atlaskit/eslint-plugin-ui-styling-standard 0.16.6 → 0.17.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/presets/all.codegen.js +26 -26
  3. package/dist/cjs/presets/recommended.codegen.js +26 -26
  4. package/dist/cjs/rules/enforce-style-prop/index.js +1 -1
  5. package/dist/cjs/rules/external-rules.js +10 -10
  6. package/dist/cjs/rules/local-cx-xcss/index.js +1 -1
  7. package/dist/cjs/rules/no-array-arguments/index.js +1 -1
  8. package/dist/cjs/rules/no-classname-prop/index.js +1 -1
  9. package/dist/cjs/rules/no-container-queries/index.js +1 -1
  10. package/dist/cjs/rules/no-dynamic-styles/index.js +1 -1
  11. package/dist/cjs/rules/no-exported-styles/index.js +1 -1
  12. package/dist/cjs/rules/no-global-styles/index.js +1 -1
  13. package/dist/cjs/rules/no-important-styles/index.js +1 -1
  14. package/dist/cjs/rules/no-imported-style-values/index.js +1 -1
  15. package/dist/cjs/rules/no-nested-selectors/index.js +1 -1
  16. package/dist/cjs/rules/no-styled/index.js +1 -1
  17. package/dist/cjs/rules/no-unsafe-selectors/index.js +1 -1
  18. package/dist/cjs/rules/no-unsafe-values/index.js +1 -1
  19. package/dist/cjs/rules/use-compiled/index.js +1 -1
  20. package/dist/es2019/presets/all.codegen.js +26 -26
  21. package/dist/es2019/presets/recommended.codegen.js +26 -26
  22. package/dist/es2019/rules/enforce-style-prop/index.js +1 -1
  23. package/dist/es2019/rules/external-rules.js +10 -10
  24. package/dist/es2019/rules/local-cx-xcss/index.js +1 -1
  25. package/dist/es2019/rules/no-array-arguments/index.js +1 -1
  26. package/dist/es2019/rules/no-classname-prop/index.js +1 -1
  27. package/dist/es2019/rules/no-container-queries/index.js +1 -1
  28. package/dist/es2019/rules/no-dynamic-styles/index.js +1 -1
  29. package/dist/es2019/rules/no-exported-styles/index.js +1 -1
  30. package/dist/es2019/rules/no-global-styles/index.js +1 -1
  31. package/dist/es2019/rules/no-important-styles/index.js +1 -1
  32. package/dist/es2019/rules/no-imported-style-values/index.js +1 -1
  33. package/dist/es2019/rules/no-nested-selectors/index.js +1 -1
  34. package/dist/es2019/rules/no-styled/index.js +1 -1
  35. package/dist/es2019/rules/no-unsafe-selectors/index.js +1 -1
  36. package/dist/es2019/rules/no-unsafe-values/index.js +1 -1
  37. package/dist/es2019/rules/use-compiled/index.js +1 -1
  38. package/dist/esm/presets/all.codegen.js +26 -26
  39. package/dist/esm/presets/recommended.codegen.js +26 -26
  40. package/dist/esm/rules/enforce-style-prop/index.js +1 -1
  41. package/dist/esm/rules/external-rules.js +10 -10
  42. package/dist/esm/rules/local-cx-xcss/index.js +1 -1
  43. package/dist/esm/rules/no-array-arguments/index.js +1 -1
  44. package/dist/esm/rules/no-classname-prop/index.js +1 -1
  45. package/dist/esm/rules/no-container-queries/index.js +1 -1
  46. package/dist/esm/rules/no-dynamic-styles/index.js +1 -1
  47. package/dist/esm/rules/no-exported-styles/index.js +1 -1
  48. package/dist/esm/rules/no-global-styles/index.js +1 -1
  49. package/dist/esm/rules/no-important-styles/index.js +1 -1
  50. package/dist/esm/rules/no-imported-style-values/index.js +1 -1
  51. package/dist/esm/rules/no-nested-selectors/index.js +1 -1
  52. package/dist/esm/rules/no-styled/index.js +1 -1
  53. package/dist/esm/rules/no-unsafe-selectors/index.js +1 -1
  54. package/dist/esm/rules/no-unsafe-values/index.js +1 -1
  55. package/dist/esm/rules/use-compiled/index.js +1 -1
  56. package/dist/types/presets/all.codegen.d.ts +1 -1
  57. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  58. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  59. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
  60. package/package.json +2 -2
  61. package/src/presets/all.codegen.tsx +29 -26
  62. package/src/presets/recommended.codegen.tsx +29 -26
  63. package/src/rules/enforce-style-prop/index.tsx +1 -1
  64. package/src/rules/external-rules.tsx +10 -10
  65. package/src/rules/local-cx-xcss/index.tsx +1 -1
  66. package/src/rules/no-array-arguments/index.tsx +1 -1
  67. package/src/rules/no-classname-prop/index.tsx +1 -1
  68. package/src/rules/no-container-queries/index.tsx +1 -1
  69. package/src/rules/no-dynamic-styles/index.tsx +1 -1
  70. package/src/rules/no-exported-styles/index.tsx +1 -1
  71. package/src/rules/no-global-styles/index.tsx +1 -1
  72. package/src/rules/no-important-styles/index.tsx +1 -1
  73. package/src/rules/no-imported-style-values/index.tsx +1 -1
  74. package/src/rules/no-nested-selectors/index.tsx +1 -1
  75. package/src/rules/no-styled/index.tsx +1 -1
  76. package/src/rules/no-unsafe-selectors/index.tsx +1 -1
  77. package/src/rules/no-unsafe-values/index.tsx +1 -1
  78. package/src/rules/use-compiled/index.tsx +1 -1
@@ -13,7 +13,7 @@ export const externalRules = [{
13
13
  url: getRuleUrl('consistent-css-prop-usage'),
14
14
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/consistent-css-prop-usage/usage',
15
15
  recommended: true,
16
- severity: 'warn',
16
+ severity: 'error',
17
17
  pluginConfig: {
18
18
  // When passing a css prop to a React component, we don't know whether the component
19
19
  // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
@@ -31,7 +31,7 @@ export const externalRules = [{
31
31
  url: getRuleUrl('no-css-tagged-template-expression'),
32
32
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-css-tagged-template-expression/usage',
33
33
  recommended: true,
34
- severity: 'warn'
34
+ severity: 'error'
35
35
  }
36
36
  }, {
37
37
  name: '@atlaskit/design-system/no-keyframes-tagged-template-expression',
@@ -43,7 +43,7 @@ export const externalRules = [{
43
43
  url: getRuleUrl('no-keyframes-tagged-template-expression'),
44
44
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-keyframes-tagged-template-expression/usage',
45
45
  recommended: true,
46
- severity: 'warn'
46
+ severity: 'error'
47
47
  }
48
48
  }, {
49
49
  name: '@atlaskit/design-system/no-styled-tagged-template-expression',
@@ -55,7 +55,7 @@ export const externalRules = [{
55
55
  url: getRuleUrl('no-styled-tagged-template-expression'),
56
56
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-styled-tagged-template-expression/usage',
57
57
  recommended: true,
58
- severity: 'warn'
58
+ severity: 'error'
59
59
  }
60
60
  }, {
61
61
  name: '@compiled/no-suppress-xcss',
@@ -66,7 +66,7 @@ export const externalRules = [{
66
66
  url: getRuleUrl('no-suppress-xcss'),
67
67
  externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-suppress-xcss',
68
68
  recommended: true,
69
- severity: 'warn'
69
+ severity: 'error'
70
70
  }
71
71
  }, {
72
72
  name: '@compiled/no-js-xcss',
@@ -77,7 +77,7 @@ export const externalRules = [{
77
77
  url: getRuleUrl('no-js-xcss'),
78
78
  externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-js-xcss',
79
79
  recommended: true,
80
- severity: 'warn'
80
+ severity: 'error'
81
81
  }
82
82
  }, {
83
83
  name: '@atlaskit/design-system/no-empty-styled-expression',
@@ -88,7 +88,7 @@ export const externalRules = [{
88
88
  url: getRuleUrl('no-empty-styled-expression'),
89
89
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-empty-styled-expression/usage',
90
90
  recommended: true,
91
- severity: 'warn',
91
+ severity: 'error',
92
92
  pluginConfig: {
93
93
  importSources
94
94
  }
@@ -102,7 +102,7 @@ export const externalRules = [{
102
102
  url: getRuleUrl('no-exported-css'),
103
103
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-css/usage',
104
104
  recommended: true,
105
- severity: 'warn',
105
+ severity: 'error',
106
106
  pluginConfig: {
107
107
  importSources
108
108
  }
@@ -116,7 +116,7 @@ export const externalRules = [{
116
116
  url: getRuleUrl('no-exported-keyframes'),
117
117
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-keyframes/usage',
118
118
  recommended: true,
119
- severity: 'warn',
119
+ severity: 'error',
120
120
  pluginConfig: {
121
121
  importSources
122
122
  }
@@ -130,7 +130,7 @@ export const externalRules = [{
130
130
  url: getRuleUrl('no-invalid-css-map'),
131
131
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-invalid-css-map/usage',
132
132
  recommended: true,
133
- severity: 'warn',
133
+ severity: 'error',
134
134
  pluginConfig: {
135
135
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
136
136
  }
@@ -17,7 +17,7 @@ export const rule = createLintRule({
17
17
  docs: {
18
18
  description: 'Ensures the cx() function, which is part of the XCSS API, is only used within the xcss prop. This aids tracking what styles are applied to a jsx element.',
19
19
  recommended: true,
20
- severity: 'warn'
20
+ severity: 'error'
21
21
  },
22
22
  messages: {
23
23
  'local-cx-xcss': 'The cx function should only be declared inside the xcss prop to simplify tracking styles that are applied to a jsx element.'
@@ -18,7 +18,7 @@ export const rule = createLintRule({
18
18
  docs: {
19
19
  description: 'Prevents usage of array arguments to style declaration functions',
20
20
  recommended: true,
21
- severity: 'warn'
21
+ severity: 'error'
22
22
  },
23
23
  messages: {
24
24
  'no-array-arguments': "Don't pass multiple value in an array. Pass them as multiple arguments instead."
@@ -6,7 +6,7 @@ export const rule = createLintRule({
6
6
  docs: {
7
7
  description: 'Disallows usage of the `className` prop in JSX',
8
8
  recommended: true,
9
- severity: 'warn'
9
+ severity: 'error'
10
10
  },
11
11
  messages: {
12
12
  'no-classname-prop': 'Avoid `className` because it invites the use of unsafe global styles and is impossible to determine via local tooling.'
@@ -19,7 +19,7 @@ export const rule = createLintRule({
19
19
  docs: {
20
20
  description: 'Prevents usage of @container query within css styling',
21
21
  recommended: true,
22
- severity: 'warn'
22
+ severity: 'error'
23
23
  },
24
24
  messages: {
25
25
  'no-container-queries': 'We block @container queries as they break scope and are not type-safe. We suggest alternatives such as JS-based APIs or @media queries.'
@@ -19,7 +19,7 @@ export const rule = createLintRule({
19
19
  docs: {
20
20
  description: 'Disallows use of dynamic styles in CSS-in-JS calls',
21
21
  recommended: true,
22
- severity: 'warn'
22
+ severity: 'error'
23
23
  },
24
24
  schema,
25
25
  messages: {
@@ -20,7 +20,7 @@ export const rule = createLintRule({
20
20
  docs: {
21
21
  description: 'Disallows exports of css, keyframes, styled and xcss',
22
22
  recommended: true,
23
- severity: 'warn'
23
+ severity: 'error'
24
24
  },
25
25
  messages: {
26
26
  'no-exported-styles': 'Styles from css, cssMap, keyframes, styled and xcss should not be exported. All styles should be defined and used in the same file instead.'
@@ -14,7 +14,7 @@ export const rule = createLintRule({
14
14
  docs: {
15
15
  description: 'Prevents global styles through CSS-in-JS or CSS module imports',
16
16
  recommended: true,
17
- severity: 'warn'
17
+ severity: 'error'
18
18
  },
19
19
  messages: {
20
20
  'no-global-styles': 'Global styles are not allowed.',
@@ -8,7 +8,7 @@ export const rule = createLintRuleWithTypedConfig({
8
8
  docs: {
9
9
  description: 'Disallows important style declarations',
10
10
  recommended: true,
11
- severity: 'warn'
11
+ severity: 'error'
12
12
  },
13
13
  messages: {
14
14
  'no-important-styles': 'Important style declarations are disallowed. Refactor so the `!important` flag is not needed.'
@@ -94,7 +94,7 @@ export const rule = createLintRule({
94
94
  docs: {
95
95
  description: 'Disallows imports of style values',
96
96
  recommended: true,
97
- severity: 'warn'
97
+ severity: 'error'
98
98
  },
99
99
  messages: {
100
100
  'no-imported-style-values': 'Styles should not be imported to use in css, cssMap, styled, keyframes or xcss calls. All styles should be defined and used in the same file instead.'
@@ -31,7 +31,7 @@ export const rule = createLintRuleWithTypedConfig({
31
31
  docs: {
32
32
  description: 'Prevents usage of nested selectors within css styling',
33
33
  recommended: true,
34
- severity: 'warn'
34
+ severity: 'error'
35
35
  },
36
36
  messages: {
37
37
  'no-nested-selectors': 'Please avoid setting styles for child elements or elements that require context from other elements.'
@@ -6,7 +6,7 @@ export const rule = createLintRule({
6
6
  docs: {
7
7
  description: 'Disallows usage of the `styled` imports',
8
8
  recommended: true,
9
- severity: 'warn'
9
+ severity: 'error'
10
10
  },
11
11
  messages: {
12
12
  'no-styled': "Avoid usages of styled, eg. styled.div, styled('div'), styled(Component), etc."
@@ -13,7 +13,7 @@ const rule = createLintRuleWithTypedConfig({
13
13
  docs: {
14
14
  description: 'Disallows use of nested styles in `css` functions.',
15
15
  recommended: true,
16
- severity: 'warn'
16
+ severity: 'error'
17
17
  },
18
18
  fixable: 'code',
19
19
  hasSuggestions: true,
@@ -49,7 +49,7 @@ export const rule = createLintRule({
49
49
  docs: {
50
50
  description: 'Disallows styles that are difficult/impossible to statically anaylze.',
51
51
  recommended: true,
52
- severity: 'warn'
52
+ severity: 'error'
53
53
  },
54
54
  messages,
55
55
  type: 'problem',
@@ -40,7 +40,7 @@ export const rule = createLintRule({
40
40
  docs: {
41
41
  description: 'Ensures usage of `@compiled/react` instead of other CSS-in-JS libraries',
42
42
  recommended: true,
43
- severity: 'warn'
43
+ severity: 'error'
44
44
  },
45
45
  messages: {
46
46
  'use-compiled': `Use '@compiled/react' instead of '{{importSource}}'`
@@ -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::f240d1cd5b93827327b66c28ad47e698>>
3
+ * @codegen <<SignedSource::aa1d9d67dc9b6b0488df0b31ff142f30>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  export default {
@@ -8,39 +8,39 @@ export default {
8
8
  rules: {
9
9
  '@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
10
10
  '@atlaskit/ui-styling-standard/convert-props-syntax': 'error',
11
- '@atlaskit/ui-styling-standard/enforce-style-prop': 'warn',
12
- '@atlaskit/ui-styling-standard/local-cx-xcss': 'warn',
13
- '@atlaskit/ui-styling-standard/no-array-arguments': 'warn',
14
- '@atlaskit/ui-styling-standard/no-classname-prop': 'warn',
15
- '@atlaskit/ui-styling-standard/no-container-queries': 'warn',
16
- '@atlaskit/ui-styling-standard/no-dynamic-styles': 'warn',
17
- '@atlaskit/ui-styling-standard/no-exported-styles': 'warn',
18
- '@atlaskit/ui-styling-standard/no-global-styles': 'warn',
19
- '@atlaskit/ui-styling-standard/no-important-styles': 'warn',
20
- '@atlaskit/ui-styling-standard/no-imported-style-values': 'warn',
21
- '@atlaskit/ui-styling-standard/no-nested-selectors': 'warn',
22
- '@atlaskit/ui-styling-standard/no-styled': 'warn',
23
- '@atlaskit/ui-styling-standard/no-unsafe-selectors': 'warn',
24
- '@atlaskit/ui-styling-standard/no-unsafe-values': 'warn',
25
- '@atlaskit/ui-styling-standard/use-compiled': 'warn',
26
- '@atlaskit/design-system/consistent-css-prop-usage': ['warn', {
11
+ '@atlaskit/ui-styling-standard/enforce-style-prop': 'error',
12
+ '@atlaskit/ui-styling-standard/local-cx-xcss': 'error',
13
+ '@atlaskit/ui-styling-standard/no-array-arguments': 'error',
14
+ '@atlaskit/ui-styling-standard/no-classname-prop': 'error',
15
+ '@atlaskit/ui-styling-standard/no-container-queries': 'error',
16
+ '@atlaskit/ui-styling-standard/no-dynamic-styles': 'error',
17
+ '@atlaskit/ui-styling-standard/no-exported-styles': 'error',
18
+ '@atlaskit/ui-styling-standard/no-global-styles': 'error',
19
+ '@atlaskit/ui-styling-standard/no-important-styles': 'error',
20
+ '@atlaskit/ui-styling-standard/no-imported-style-values': 'error',
21
+ '@atlaskit/ui-styling-standard/no-nested-selectors': 'error',
22
+ '@atlaskit/ui-styling-standard/no-styled': 'error',
23
+ '@atlaskit/ui-styling-standard/no-unsafe-selectors': 'error',
24
+ '@atlaskit/ui-styling-standard/no-unsafe-values': 'error',
25
+ '@atlaskit/ui-styling-standard/use-compiled': 'error',
26
+ '@atlaskit/design-system/consistent-css-prop-usage': ['error', {
27
27
  excludeReactComponents: true
28
28
  }],
29
- '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
30
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
31
- '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
32
- '@compiled/no-suppress-xcss': 'warn',
33
- '@compiled/no-js-xcss': 'warn',
34
- '@atlaskit/design-system/no-empty-styled-expression': ['warn', {
29
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'error',
30
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
31
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
32
+ '@compiled/no-suppress-xcss': 'error',
33
+ '@compiled/no-js-xcss': 'error',
34
+ '@atlaskit/design-system/no-empty-styled-expression': ['error', {
35
35
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
36
36
  }],
37
- '@atlaskit/design-system/no-exported-css': ['warn', {
37
+ '@atlaskit/design-system/no-exported-css': ['error', {
38
38
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
39
39
  }],
40
- '@atlaskit/design-system/no-exported-keyframes': ['warn', {
40
+ '@atlaskit/design-system/no-exported-keyframes': ['error', {
41
41
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
42
42
  }],
43
- '@atlaskit/design-system/no-invalid-css-map': ['warn', {
43
+ '@atlaskit/design-system/no-invalid-css-map': ['error', {
44
44
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
45
45
  }]
46
46
  }
@@ -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::f240d1cd5b93827327b66c28ad47e698>>
3
+ * @codegen <<SignedSource::aa1d9d67dc9b6b0488df0b31ff142f30>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  export default {
@@ -8,39 +8,39 @@ export default {
8
8
  rules: {
9
9
  '@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
10
10
  '@atlaskit/ui-styling-standard/convert-props-syntax': 'error',
11
- '@atlaskit/ui-styling-standard/enforce-style-prop': 'warn',
12
- '@atlaskit/ui-styling-standard/local-cx-xcss': 'warn',
13
- '@atlaskit/ui-styling-standard/no-array-arguments': 'warn',
14
- '@atlaskit/ui-styling-standard/no-classname-prop': 'warn',
15
- '@atlaskit/ui-styling-standard/no-container-queries': 'warn',
16
- '@atlaskit/ui-styling-standard/no-dynamic-styles': 'warn',
17
- '@atlaskit/ui-styling-standard/no-exported-styles': 'warn',
18
- '@atlaskit/ui-styling-standard/no-global-styles': 'warn',
19
- '@atlaskit/ui-styling-standard/no-important-styles': 'warn',
20
- '@atlaskit/ui-styling-standard/no-imported-style-values': 'warn',
21
- '@atlaskit/ui-styling-standard/no-nested-selectors': 'warn',
22
- '@atlaskit/ui-styling-standard/no-styled': 'warn',
23
- '@atlaskit/ui-styling-standard/no-unsafe-selectors': 'warn',
24
- '@atlaskit/ui-styling-standard/no-unsafe-values': 'warn',
25
- '@atlaskit/ui-styling-standard/use-compiled': 'warn',
26
- '@atlaskit/design-system/consistent-css-prop-usage': ['warn', {
11
+ '@atlaskit/ui-styling-standard/enforce-style-prop': 'error',
12
+ '@atlaskit/ui-styling-standard/local-cx-xcss': 'error',
13
+ '@atlaskit/ui-styling-standard/no-array-arguments': 'error',
14
+ '@atlaskit/ui-styling-standard/no-classname-prop': 'error',
15
+ '@atlaskit/ui-styling-standard/no-container-queries': 'error',
16
+ '@atlaskit/ui-styling-standard/no-dynamic-styles': 'error',
17
+ '@atlaskit/ui-styling-standard/no-exported-styles': 'error',
18
+ '@atlaskit/ui-styling-standard/no-global-styles': 'error',
19
+ '@atlaskit/ui-styling-standard/no-important-styles': 'error',
20
+ '@atlaskit/ui-styling-standard/no-imported-style-values': 'error',
21
+ '@atlaskit/ui-styling-standard/no-nested-selectors': 'error',
22
+ '@atlaskit/ui-styling-standard/no-styled': 'error',
23
+ '@atlaskit/ui-styling-standard/no-unsafe-selectors': 'error',
24
+ '@atlaskit/ui-styling-standard/no-unsafe-values': 'error',
25
+ '@atlaskit/ui-styling-standard/use-compiled': 'error',
26
+ '@atlaskit/design-system/consistent-css-prop-usage': ['error', {
27
27
  excludeReactComponents: true
28
28
  }],
29
- '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
30
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
31
- '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
32
- '@compiled/no-suppress-xcss': 'warn',
33
- '@compiled/no-js-xcss': 'warn',
34
- '@atlaskit/design-system/no-empty-styled-expression': ['warn', {
29
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'error',
30
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'error',
31
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'error',
32
+ '@compiled/no-suppress-xcss': 'error',
33
+ '@compiled/no-js-xcss': 'error',
34
+ '@atlaskit/design-system/no-empty-styled-expression': ['error', {
35
35
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
36
36
  }],
37
- '@atlaskit/design-system/no-exported-css': ['warn', {
37
+ '@atlaskit/design-system/no-exported-css': ['error', {
38
38
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
39
39
  }],
40
- '@atlaskit/design-system/no-exported-keyframes': ['warn', {
40
+ '@atlaskit/design-system/no-exported-keyframes': ['error', {
41
41
  importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
42
42
  }],
43
- '@atlaskit/design-system/no-invalid-css-map': ['warn', {
43
+ '@atlaskit/design-system/no-invalid-css-map': ['error', {
44
44
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
45
45
  }]
46
46
  }
@@ -111,7 +111,7 @@ export var rule = createLintRule({
111
111
  docs: {
112
112
  description: 'Disallows usage of static styles in the `style` attribute in components',
113
113
  recommended: true,
114
- severity: 'warn'
114
+ severity: 'error'
115
115
  },
116
116
  messages: {
117
117
  'enforce-style-prop': 'Avoid adding static values to the style prop. Use the css prop for static styles instead.'
@@ -13,7 +13,7 @@ export var externalRules = [{
13
13
  url: getRuleUrl('consistent-css-prop-usage'),
14
14
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/consistent-css-prop-usage/usage',
15
15
  recommended: true,
16
- severity: 'warn',
16
+ severity: 'error',
17
17
  pluginConfig: {
18
18
  // When passing a css prop to a React component, we don't know whether the component
19
19
  // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
@@ -31,7 +31,7 @@ export var externalRules = [{
31
31
  url: getRuleUrl('no-css-tagged-template-expression'),
32
32
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-css-tagged-template-expression/usage',
33
33
  recommended: true,
34
- severity: 'warn'
34
+ severity: 'error'
35
35
  }
36
36
  }, {
37
37
  name: '@atlaskit/design-system/no-keyframes-tagged-template-expression',
@@ -43,7 +43,7 @@ export var externalRules = [{
43
43
  url: getRuleUrl('no-keyframes-tagged-template-expression'),
44
44
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-keyframes-tagged-template-expression/usage',
45
45
  recommended: true,
46
- severity: 'warn'
46
+ severity: 'error'
47
47
  }
48
48
  }, {
49
49
  name: '@atlaskit/design-system/no-styled-tagged-template-expression',
@@ -55,7 +55,7 @@ export var externalRules = [{
55
55
  url: getRuleUrl('no-styled-tagged-template-expression'),
56
56
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-styled-tagged-template-expression/usage',
57
57
  recommended: true,
58
- severity: 'warn'
58
+ severity: 'error'
59
59
  }
60
60
  }, {
61
61
  name: '@compiled/no-suppress-xcss',
@@ -66,7 +66,7 @@ export var externalRules = [{
66
66
  url: getRuleUrl('no-suppress-xcss'),
67
67
  externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-suppress-xcss',
68
68
  recommended: true,
69
- severity: 'warn'
69
+ severity: 'error'
70
70
  }
71
71
  }, {
72
72
  name: '@compiled/no-js-xcss',
@@ -77,7 +77,7 @@ export var externalRules = [{
77
77
  url: getRuleUrl('no-js-xcss'),
78
78
  externalUrl: 'https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-js-xcss',
79
79
  recommended: true,
80
- severity: 'warn'
80
+ severity: 'error'
81
81
  }
82
82
  }, {
83
83
  name: '@atlaskit/design-system/no-empty-styled-expression',
@@ -88,7 +88,7 @@ export var externalRules = [{
88
88
  url: getRuleUrl('no-empty-styled-expression'),
89
89
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-empty-styled-expression/usage',
90
90
  recommended: true,
91
- severity: 'warn',
91
+ severity: 'error',
92
92
  pluginConfig: {
93
93
  importSources: importSources
94
94
  }
@@ -102,7 +102,7 @@ export var externalRules = [{
102
102
  url: getRuleUrl('no-exported-css'),
103
103
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-css/usage',
104
104
  recommended: true,
105
- severity: 'warn',
105
+ severity: 'error',
106
106
  pluginConfig: {
107
107
  importSources: importSources
108
108
  }
@@ -116,7 +116,7 @@ export var externalRules = [{
116
116
  url: getRuleUrl('no-exported-keyframes'),
117
117
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-keyframes/usage',
118
118
  recommended: true,
119
- severity: 'warn',
119
+ severity: 'error',
120
120
  pluginConfig: {
121
121
  importSources: importSources
122
122
  }
@@ -130,7 +130,7 @@ export var externalRules = [{
130
130
  url: getRuleUrl('no-invalid-css-map'),
131
131
  externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-invalid-css-map/usage',
132
132
  recommended: true,
133
- severity: 'warn',
133
+ severity: 'error',
134
134
  pluginConfig: {
135
135
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
136
136
  }
@@ -17,7 +17,7 @@ export var rule = createLintRule({
17
17
  docs: {
18
18
  description: 'Ensures the cx() function, which is part of the XCSS API, is only used within the xcss prop. This aids tracking what styles are applied to a jsx element.',
19
19
  recommended: true,
20
- severity: 'warn'
20
+ severity: 'error'
21
21
  },
22
22
  messages: {
23
23
  'local-cx-xcss': 'The cx function should only be declared inside the xcss prop to simplify tracking styles that are applied to a jsx element.'
@@ -21,7 +21,7 @@ export var rule = createLintRule({
21
21
  docs: {
22
22
  description: 'Prevents usage of array arguments to style declaration functions',
23
23
  recommended: true,
24
- severity: 'warn'
24
+ severity: 'error'
25
25
  },
26
26
  messages: {
27
27
  'no-array-arguments': "Don't pass multiple value in an array. Pass them as multiple arguments instead."
@@ -6,7 +6,7 @@ export var rule = createLintRule({
6
6
  docs: {
7
7
  description: 'Disallows usage of the `className` prop in JSX',
8
8
  recommended: true,
9
- severity: 'warn'
9
+ severity: 'error'
10
10
  },
11
11
  messages: {
12
12
  'no-classname-prop': 'Avoid `className` because it invites the use of unsafe global styles and is impossible to determine via local tooling.'
@@ -19,7 +19,7 @@ export var rule = createLintRule({
19
19
  docs: {
20
20
  description: 'Prevents usage of @container query within css styling',
21
21
  recommended: true,
22
- severity: 'warn'
22
+ severity: 'error'
23
23
  },
24
24
  messages: {
25
25
  'no-container-queries': 'We block @container queries as they break scope and are not type-safe. We suggest alternatives such as JS-based APIs or @media queries.'
@@ -22,7 +22,7 @@ export var rule = createLintRule({
22
22
  docs: {
23
23
  description: 'Disallows use of dynamic styles in CSS-in-JS calls',
24
24
  recommended: true,
25
- severity: 'warn'
25
+ severity: 'error'
26
26
  },
27
27
  schema: schema,
28
28
  messages: {
@@ -20,7 +20,7 @@ export var rule = createLintRule({
20
20
  docs: {
21
21
  description: 'Disallows exports of css, keyframes, styled and xcss',
22
22
  recommended: true,
23
- severity: 'warn'
23
+ severity: 'error'
24
24
  },
25
25
  messages: {
26
26
  'no-exported-styles': 'Styles from css, cssMap, keyframes, styled and xcss should not be exported. All styles should be defined and used in the same file instead.'
@@ -17,7 +17,7 @@ export var rule = createLintRule({
17
17
  docs: {
18
18
  description: 'Prevents global styles through CSS-in-JS or CSS module imports',
19
19
  recommended: true,
20
- severity: 'warn'
20
+ severity: 'error'
21
21
  },
22
22
  messages: {
23
23
  'no-global-styles': 'Global styles are not allowed.',
@@ -11,7 +11,7 @@ export var rule = createLintRuleWithTypedConfig({
11
11
  docs: {
12
12
  description: 'Disallows important style declarations',
13
13
  recommended: true,
14
- severity: 'warn'
14
+ severity: 'error'
15
15
  },
16
16
  messages: {
17
17
  'no-important-styles': 'Important style declarations are disallowed. Refactor so the `!important` flag is not needed.'
@@ -98,7 +98,7 @@ export var rule = createLintRule({
98
98
  docs: {
99
99
  description: 'Disallows imports of style values',
100
100
  recommended: true,
101
- severity: 'warn'
101
+ severity: 'error'
102
102
  },
103
103
  messages: {
104
104
  'no-imported-style-values': 'Styles should not be imported to use in css, cssMap, styled, keyframes or xcss calls. All styles should be defined and used in the same file instead.'
@@ -36,7 +36,7 @@ export var rule = createLintRuleWithTypedConfig({
36
36
  docs: {
37
37
  description: 'Prevents usage of nested selectors within css styling',
38
38
  recommended: true,
39
- severity: 'warn'
39
+ severity: 'error'
40
40
  },
41
41
  messages: {
42
42
  'no-nested-selectors': 'Please avoid setting styles for child elements or elements that require context from other elements.'
@@ -6,7 +6,7 @@ export var rule = createLintRule({
6
6
  docs: {
7
7
  description: 'Disallows usage of the `styled` imports',
8
8
  recommended: true,
9
- severity: 'warn'
9
+ severity: 'error'
10
10
  },
11
11
  messages: {
12
12
  'no-styled': "Avoid usages of styled, eg. styled.div, styled('div'), styled(Component), etc."
@@ -13,7 +13,7 @@ var rule = createLintRuleWithTypedConfig({
13
13
  docs: {
14
14
  description: 'Disallows use of nested styles in `css` functions.',
15
15
  recommended: true,
16
- severity: 'warn'
16
+ severity: 'error'
17
17
  },
18
18
  fixable: 'code',
19
19
  hasSuggestions: true,
@@ -49,7 +49,7 @@ export var rule = createLintRule({
49
49
  docs: {
50
50
  description: 'Disallows styles that are difficult/impossible to statically anaylze.',
51
51
  recommended: true,
52
- severity: 'warn'
52
+ severity: 'error'
53
53
  },
54
54
  messages: messages,
55
55
  type: 'problem',
@@ -45,7 +45,7 @@ export var rule = createLintRule({
45
45
  docs: {
46
46
  description: 'Ensures usage of `@compiled/react` instead of other CSS-in-JS libraries',
47
47
  recommended: true,
48
- severity: 'warn'
48
+ severity: 'error'
49
49
  },
50
50
  messages: {
51
51
  'use-compiled': "Use '@compiled/react' instead of '{{importSource}}'"
@@ -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::f240d1cd5b93827327b66c28ad47e698>>
3
+ * @codegen <<SignedSource::aa1d9d67dc9b6b0488df0b31ff142f30>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  declare const _default: {