@atlaskit/eslint-plugin-ui-styling-standard 0.2.0 → 0.3.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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/eslint-plugin-ui-styling-standard
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#74981](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74981) [`842300de03a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/842300de03a1) - Add the following rules:
8
+
9
+ - `consistent-css-prop-usage`: Ensures consistency with `css` and `xcss` prop usages
10
+ - `no-empty-styled-expression`: Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements).
11
+ - `no-exported-css`: Forbid exporting `css` function calls.
12
+ - `no-exported-keyframes`: Forbid exporting `keyframes` function calls.
13
+ - `no-invalid-css-map`: Checks the validity of a CSS map created through cssMap.
14
+
15
+ - [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983) [`878065bfc4c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/878065bfc4c0) - Adds the following rules to the recommended preset:
16
+
17
+ - `@atlaskit/design-system/no-css-tagged-template-expression`
18
+ - `@atlaskit/design-system/no-keyframes-tagged-template-expression`
19
+ - `@atlaskit/design-system/no-styled-tagged-template-expression`
20
+
21
+ ### Patch Changes
22
+
23
+ - [#75152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75152) [`c16a175d372b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c16a175d372b) - Change 'error' to 'warn' to unbreak AFM platform
24
+
25
+ ## 0.2.1
26
+
27
+ ### Patch Changes
28
+
29
+ - [#71319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71319) [`d716e2b5e102`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716e2b5e102) - Ensures all dependencies are properly defined
30
+
3
31
  ## 0.2.0
4
32
 
5
33
  ### Minor Changes
@@ -0,0 +1,198 @@
1
+ ## What is the "UI Styling Standard"?
2
+
3
+ The UI Styling Standard is a set of ESLint rules and principles to guide building web styling code
4
+ across Atlassian's frontend codebases and ecosystem.
5
+
6
+ ## Purpose of the UI Styling Standard
7
+
8
+ To enforce scoped encapsulation, type safety, and deterministic behavior in styling code that is
9
+ present in other programming languages. This is a stepping stone to large performance improvements,
10
+ reduced visual regressions, and enables testing and maintainability at scale.
11
+ This approach improves readability and developer productivity via automation with tooling, testing,
12
+ code migrations, and future advancements like generative AI.
13
+
14
+ ### Desired outcomes:
15
+
16
+ - We can make large visual changes and migrations safely and in a fraction of the time.
17
+ - To have the vast majority of styling code be deterministic, immutable, and bound to its scope, reducing unknown visual and UX regressions.
18
+ - To enable teams to write tooling quicker that's better and more performant to lint, test, and migrate UI code to improve current and future developer productivity and satisfaction.
19
+ - To enable large performance improvements for customers and developers with a zero-runtime styling solution.
20
+ - To reduce the amount of overall custom styling code written while supporting customization without without the need for hacks and technical debt.
21
+ - We aim to see a reduction of the “average styles per component”, reducing the effort to build and maintain UIs.
22
+
23
+ ## Basic Principles
24
+
25
+ We want the styling ecosystem (CSS, CSS-in-JS, and parts of JSX) at Atlassian and the wider ecosystem
26
+ we support to be as mature as the other code we write, such as TypeScript/JavaScript, Java, Go, etc.
27
+
28
+ ### Like other languages, styling code must be:
29
+
30
+ - type-safe
31
+ - static and locally analyzable
32
+ - reusable and composable
33
+ - restricted to an encapsulated scope
34
+ - deterministic—with styling known in isolation
35
+ - discoverable and readable without deep knowledge of the CSS spec
36
+
37
+ As the W3C CSS spec and wider industry grows, having our styling code meet these principles will mean we
38
+ can programatically evolve that a better future state.
39
+
40
+ ## How we'll achieve this
41
+
42
+ Within Atlassian, most frontend code will have this enforced over time through ESLint rules and engineering standardization.
43
+
44
+ Refer to the eslint rules for more details: _documentation coming soon_
45
+
46
+ ## Examples
47
+
48
+ Please refer to the eslint rules (_documentation coming soon_)
49
+
50
+ ### Incorrect code
51
+
52
+ 1. The use of `styled-components` and `@emotion/…` are being deprecated.
53
+ 2. Dynamic styles are heavily discouraged.
54
+ 3. Nested selectors as well as `props.className` and global styles are heavily discouraged.
55
+ 4. Do not import or export styles.
56
+ 5. Do not use the `styled.div` or `styled(Component)` syntaxes.
57
+ 6. Do not pass-through or spread props, be explicit to verbose.
58
+ 7. Don't use `!important`, `&& { … }`, or similar hacks.
59
+
60
+ ```tsx
61
+ import styled from 'styled-components';
62
+ import { css } from '@emotion/react';
63
+ import { mixin, innerWrapperStyles, disabledStyles } from './shared/styles';
64
+
65
+ const Wrapper = styled.div`
66
+ ${mixin}
67
+ && {
68
+ color: ${(props) => (props.disabled ? 'gray' : 'black')};
69
+ width: ${(props) => props.width || 100}px;
70
+ }
71
+ & > button {
72
+ color: ${(props) => (props.disabled ? 'gray' : 'blue')} !important;
73
+ }
74
+ `;
75
+
76
+ export const Component = ({
77
+ disabled,
78
+ width,
79
+ appearance = 'primary',
80
+ ...props,
81
+ }: {
82
+ disabled?: boolean;
83
+ width?: number;
84
+ appearance?: 'primary' | 'secondary';
85
+ }) => (
86
+ <Wrapper disabled={props.disabled}>
87
+ <div
88
+ css={[
89
+ innerWrapperStyles,
90
+ css({
91
+ ...(disabled
92
+ ? {
93
+ '& + [disabled]': {
94
+ ...disabledStyles,
95
+ opacity: props.disabled ? '70%' : '100%',
96
+ }
97
+ : undefined
98
+ ),
99
+ }),
100
+ ]}
101
+ {...props}
102
+ >
103
+ <button
104
+ disabled={props.disabled}
105
+ className={`btn btn-${props.appearance}`}
106
+ >
107
+ Click me
108
+ </button>
109
+ </div>
110
+ </Wrapper>
111
+ );
112
+ ```
113
+
114
+ ### Correct code
115
+
116
+ Every element should be clear in isolation how it's styled, using locally and statically available context so both humans and tooling can read this component in a performant and deterministic manner.
117
+
118
+ 1. Use `@compiled/…` wherever possible!
119
+ 2. Instead of dynamic styles:
120
+ 1. Use static `css()` calls everywhere.
121
+ 2. Compose styles together, turning styles on or off.
122
+ 3. When absoluteuly necessary, use `props.style` for dynamic styles.
123
+ 3. Instead of nested selectors or global styles:
124
+ 1. Style components directly.
125
+ 2. Treat everything as local scope, parents shouldn't interact with children wherever feasible.
126
+ 4. Instead of passing raw styles around:
127
+ 1. Write composable and reusable components which distribute styles with clear context.
128
+ 2. Co-locate styles in the same file for human readability and far better tooling feasibility and performance.
129
+ 5. Instead of `styled.…`, use `const styles = css({ … });` (hoisted and static) and `<div css={styles} />`.
130
+ 1. There will be a safe way to make bounded customizations on components through the use of `<Component xcss={css({ … })}>` in the future.
131
+ 6. Instead of `...props`, be explicit with the `aria-` or `data-` props you support, or have more complex spread handling. This is because `className`, `style`, and other things can be applied without any knowledge, resulting in regressions in the future.
132
+ 7. Instead of `!important`, `&& { … }`, or other specificity hacks, ensure your styles are correctly scoped to the component.
133
+
134
+ ```tsx
135
+ import { css } from '@compiled/react';
136
+ import { token } from '@atlaskit/tokens';
137
+
138
+ const wrapperStyles = css({
139
+ padding: token('space.200'), // eg. from mixin
140
+ font: token('font.body'), // eg. from mixin
141
+ color: token('color.text'),
142
+ });
143
+ const disabledWrapperStyles = css({
144
+ color: token('color.text.disabled'),
145
+ });
146
+ const innerWrapperStyles = css({
147
+ // eg. colocated `innerWrapperStyles` (alternatively could create a reusable `<InnerWrapper>`)
148
+ display: 'flex',
149
+ gap: token('space.100'),
150
+ flexDirection: 'column',
151
+ });
152
+ const buttonStyles = css({
153
+ appearance: 'none', // eg. from global styles
154
+ padding: `${token('space.100')} ${token('space.200')}`, // eg. from global styles
155
+ color: token('color.link'),
156
+ });
157
+ const disabledButtonStyles = css({
158
+ cursor: 'not-allowed', // eg. from disabledStyles
159
+ color: token('color.text.disabled'),
160
+ opacity: '70%',
161
+ });
162
+ const buttonAppearanceStyles = cssMap({
163
+ primary: { background: token('color.background.brand.subtlest') },
164
+ secondary: { background: token('color.background.success') },
165
+ });
166
+
167
+ export const Component = ({
168
+ disabled = false,
169
+ width = 100,
170
+ appearance = 'primary',
171
+ 'aria-label': ariaLabel,
172
+ }: {
173
+ disabled?: boolean;
174
+ width?: number;
175
+ appearance?: 'primary' | 'secondary';
176
+ 'aria-label'?: string;
177
+ }) => (
178
+ <div
179
+ css={[wrapperStyles, props.disabled && disabledWrapperStyles]}
180
+ style={{ width: `${props.width}px` }}
181
+ aria-label={ariaLabel}
182
+ >
183
+ <div css={innerWrapperStyles}>
184
+ {/* Typically, this `<button>` should be an Atlassian Design System `<Button>` */}
185
+ <button
186
+ disabled={props.disabled}
187
+ css={[
188
+ buttonStyles,
189
+ buttonAppearances[props.appearance],
190
+ props.disabled && disabledButtonStyles,
191
+ ]}
192
+ >
193
+ Click me
194
+ </button>
195
+ </div>
196
+ </div>
197
+ );
198
+ ```
@@ -0,0 +1,33 @@
1
+ You must use the recommended config to follow the styling standards at Atlassian,
2
+ which will ensure compatability and performance with the design system.
3
+
4
+ ```diff
5
+ module.exports = {
6
+ extends: [
7
+ + 'plugin:@atlaskit/ui-styling-standard/recommended',
8
+ ],
9
+ };
10
+ ```
11
+
12
+ We don't recommended maintaining your own configuration.
13
+ If you do not use our config you will need to specify individual rules and configuration.
14
+ Add the plugin to your `.eslintrc.js` file.
15
+
16
+ ```diff
17
+ module.exports = {
18
+ plugins: [
19
+ + '@atlaskit/ui-styling-standard',
20
+ ],
21
+ };
22
+ ```
23
+
24
+ Enable individual rules as that you're ready to adopt.
25
+
26
+ ```diff
27
+ module.exports = {
28
+ rules: [
29
+ + '@atlaskit/design-system/consistent-css-prop-usage': 'error',
30
+ + '@atlaskit/design-system/local-cx-xcss': 'error',
31
+ ],
32
+ };
33
+ ```
package/dist/cjs/index.js CHANGED
@@ -5,14 +5,35 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.rules = exports.configs = void 0;
7
7
  var rules = exports.rules = {};
8
+ var importSources = ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/styled', 'styled-components'];
8
9
  var configs = exports.configs = {
9
10
  recommended: {
10
- plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
11
+ plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
11
12
  rules: {
12
- '@atlaskit/design-system/consistent-css-prop-usage': 'error',
13
- '@atlaskit/design-system/local-cx-xcss': 'error',
13
+ '@atlaskit/design-system/consistent-css-prop-usage': ['warn', {
14
+ // When passing a css prop to a React component, we don't know whether the component
15
+ // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
16
+ // a `css` function call.
17
+ excludeReactComponents: true
18
+ }],
19
+ '@atlaskit/design-system/local-cx-xcss': 'warn',
20
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
21
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
22
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
14
23
  '@compiled/no-suppress-xcss': 'error',
15
- '@compiled/no-js-xcss': 'error'
24
+ '@compiled/no-js-xcss': 'error',
25
+ '@atlaskit/design-system/no-empty-styled-expression': ['warn', {
26
+ importSources: importSources
27
+ }],
28
+ '@atlaskit/design-system/no-exported-css': ['warn', {
29
+ importSources: importSources
30
+ }],
31
+ '@atlaskit/design-system/no-exported-keyframes': ['warn', {
32
+ importSources: importSources
33
+ }],
34
+ '@atlaskit/design-system/no-invalid-css-map': ['warn', {
35
+ allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
36
+ }]
16
37
  }
17
38
  }
18
39
  };
@@ -1,12 +1,33 @@
1
1
  export const rules = {};
2
+ const importSources = ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/styled', 'styled-components'];
2
3
  export const configs = {
3
4
  recommended: {
4
- plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
5
+ plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
5
6
  rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': 'error',
7
- '@atlaskit/design-system/local-cx-xcss': 'error',
7
+ '@atlaskit/design-system/consistent-css-prop-usage': ['warn', {
8
+ // When passing a css prop to a React component, we don't know whether the component
9
+ // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
10
+ // a `css` function call.
11
+ excludeReactComponents: true
12
+ }],
13
+ '@atlaskit/design-system/local-cx-xcss': 'warn',
14
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
15
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
16
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
8
17
  '@compiled/no-suppress-xcss': 'error',
9
- '@compiled/no-js-xcss': 'error'
18
+ '@compiled/no-js-xcss': 'error',
19
+ '@atlaskit/design-system/no-empty-styled-expression': ['warn', {
20
+ importSources
21
+ }],
22
+ '@atlaskit/design-system/no-exported-css': ['warn', {
23
+ importSources
24
+ }],
25
+ '@atlaskit/design-system/no-exported-keyframes': ['warn', {
26
+ importSources
27
+ }],
28
+ '@atlaskit/design-system/no-invalid-css-map': ['warn', {
29
+ allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
30
+ }]
10
31
  }
11
32
  }
12
33
  };
package/dist/esm/index.js CHANGED
@@ -1,12 +1,33 @@
1
1
  export var rules = {};
2
+ var importSources = ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/styled', 'styled-components'];
2
3
  export var configs = {
3
4
  recommended: {
4
- plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
5
+ plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
5
6
  rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': 'error',
7
- '@atlaskit/design-system/local-cx-xcss': 'error',
7
+ '@atlaskit/design-system/consistent-css-prop-usage': ['warn', {
8
+ // When passing a css prop to a React component, we don't know whether the component
9
+ // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
10
+ // a `css` function call.
11
+ excludeReactComponents: true
12
+ }],
13
+ '@atlaskit/design-system/local-cx-xcss': 'warn',
14
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
15
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
16
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
8
17
  '@compiled/no-suppress-xcss': 'error',
9
- '@compiled/no-js-xcss': 'error'
18
+ '@compiled/no-js-xcss': 'error',
19
+ '@atlaskit/design-system/no-empty-styled-expression': ['warn', {
20
+ importSources: importSources
21
+ }],
22
+ '@atlaskit/design-system/no-exported-css': ['warn', {
23
+ importSources: importSources
24
+ }],
25
+ '@atlaskit/design-system/no-exported-keyframes': ['warn', {
26
+ importSources: importSources
27
+ }],
28
+ '@atlaskit/design-system/no-invalid-css-map': ['warn', {
29
+ allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
30
+ }]
10
31
  }
11
32
  }
12
33
  };
@@ -3,10 +3,27 @@ export declare const configs: {
3
3
  recommended: {
4
4
  plugins: string[];
5
5
  rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': string;
6
+ '@atlaskit/design-system/consistent-css-prop-usage': (string | {
7
+ excludeReactComponents: boolean;
8
+ })[];
7
9
  '@atlaskit/design-system/local-cx-xcss': string;
10
+ '@atlaskit/design-system/no-css-tagged-template-expression': string;
11
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
12
+ '@atlaskit/design-system/no-styled-tagged-template-expression': string;
8
13
  '@compiled/no-suppress-xcss': string;
9
14
  '@compiled/no-js-xcss': string;
15
+ '@atlaskit/design-system/no-empty-styled-expression': (string | {
16
+ importSources: readonly string[];
17
+ })[];
18
+ '@atlaskit/design-system/no-exported-css': (string | {
19
+ importSources: readonly string[];
20
+ })[];
21
+ '@atlaskit/design-system/no-exported-keyframes': (string | {
22
+ importSources: readonly string[];
23
+ })[];
24
+ '@atlaskit/design-system/no-invalid-css-map': (string | {
25
+ allowedFunctionCalls: string[][];
26
+ })[];
10
27
  };
11
28
  };
12
29
  };
@@ -3,10 +3,27 @@ export declare const configs: {
3
3
  recommended: {
4
4
  plugins: string[];
5
5
  rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': string;
6
+ '@atlaskit/design-system/consistent-css-prop-usage': (string | {
7
+ excludeReactComponents: boolean;
8
+ })[];
7
9
  '@atlaskit/design-system/local-cx-xcss': string;
10
+ '@atlaskit/design-system/no-css-tagged-template-expression': string;
11
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
12
+ '@atlaskit/design-system/no-styled-tagged-template-expression': string;
8
13
  '@compiled/no-suppress-xcss': string;
9
14
  '@compiled/no-js-xcss': string;
15
+ '@atlaskit/design-system/no-empty-styled-expression': (string | {
16
+ importSources: readonly string[];
17
+ })[];
18
+ '@atlaskit/design-system/no-exported-css': (string | {
19
+ importSources: readonly string[];
20
+ })[];
21
+ '@atlaskit/design-system/no-exported-keyframes': (string | {
22
+ importSources: readonly string[];
23
+ })[];
24
+ '@atlaskit/design-system/no-invalid-css-map': (string | {
25
+ allowedFunctionCalls: string[][];
26
+ })[];
10
27
  };
11
28
  };
12
29
  };
package/package.json CHANGED
@@ -1,18 +1,22 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-ui-styling-standard",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "author": "Atlassian Pty Ltd",
5
- "description": "The Atlassian UI Styling Standard Plugin Package - used to enforce Atlassian's styling standards within internal applications",
5
+ "description": "The eslint plugin to enforce and educate on Atlassian's UI Styling Standard",
6
6
  "license": "UNLICENSED",
7
7
  "atlassian": {
8
8
  "team": "Design System Team",
9
- "inPublicMirror": false,
10
- "releaseModel": "continuous"
9
+ "inPublicMirror": true,
10
+ "releaseModel": "continuous",
11
+ "website": {
12
+ "name": "UI Styling Standard",
13
+ "category": "Tooling"
14
+ }
11
15
  },
12
16
  "publishConfig": {
13
17
  "registry": "https://registry.npmjs.org/"
14
18
  },
15
- "homepage": "https://hello.atlassian.net/wiki/spaces/DST/pages/3183872207/UI+Styling+Standard+-+Support+from+external+teams",
19
+ "homepage": "https://atlassian.design/components/eslint-plugin-ui-styling-standard",
16
20
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
17
21
  "main": "dist/cjs/index.js",
18
22
  "module": "dist/esm/index.js",
@@ -35,8 +39,9 @@
35
39
  "@babel/runtime": "^7.0.0"
36
40
  },
37
41
  "devDependencies": {
38
- "@atlaskit/eslint-plugin-design-system": "^8.25.0",
42
+ "@atlaskit/eslint-plugin-design-system": "^8.28.0",
39
43
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
44
+ "@compiled/eslint-plugin": "^0.13.3",
40
45
  "@types/eslint": "^8.4.5",
41
46
  "eslint": "^7.7.0",
42
47
  "tsconfig-paths": "^4.2.0",
package/src/index.tsx CHANGED
@@ -1,13 +1,51 @@
1
1
  export const rules = {};
2
2
 
3
+ const importSources: readonly string[] = [
4
+ '@compiled/react',
5
+ '@atlaskit/css',
6
+ '@emotion/core',
7
+ '@emotion/styled',
8
+ 'styled-components',
9
+ ];
10
+
3
11
  export const configs = {
4
12
  recommended: {
5
- plugins: ['@atlaskit/eslint-plugin-ui-styling-standard'],
13
+ plugins: [
14
+ '@atlaskit/ui-styling-standard',
15
+ '@atlaskit/design-system',
16
+ '@compiled',
17
+ ],
6
18
  rules: {
7
- '@atlaskit/design-system/consistent-css-prop-usage': 'error',
8
- '@atlaskit/design-system/local-cx-xcss': 'error',
19
+ '@atlaskit/design-system/consistent-css-prop-usage': [
20
+ 'warn',
21
+ {
22
+ // When passing a css prop to a React component, we don't know whether the component
23
+ // is Emotion or Compiled. Hence it is not safe to run autofixes like wrapping it in
24
+ // a `css` function call.
25
+ excludeReactComponents: true,
26
+ },
27
+ ],
28
+ '@atlaskit/design-system/local-cx-xcss': 'warn',
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',
9
32
  '@compiled/no-suppress-xcss': 'error',
10
33
  '@compiled/no-js-xcss': 'error',
34
+ '@atlaskit/design-system/no-empty-styled-expression': [
35
+ 'warn',
36
+ { importSources },
37
+ ],
38
+ '@atlaskit/design-system/no-exported-css': ['warn', { importSources }],
39
+ '@atlaskit/design-system/no-exported-keyframes': [
40
+ 'warn',
41
+ { importSources },
42
+ ],
43
+ '@atlaskit/design-system/no-invalid-css-map': [
44
+ 'warn',
45
+ {
46
+ allowedFunctionCalls: [['@atlaskit/tokens', 'token']],
47
+ },
48
+ ],
11
49
  },
12
50
  },
13
51
  };