@atlaskit/eslint-plugin-ui-styling-standard 0.15.0 → 0.15.1

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 (51) hide show
  1. package/CHANGELOG.md +180 -172
  2. package/constellation/atlaskit-theme/usage.mdx +17 -17
  3. package/constellation/convert-props-syntax/usage.mdx +14 -14
  4. package/constellation/enforce-style-prop/usage.mdx +17 -17
  5. package/constellation/index/overview.mdx +70 -70
  6. package/constellation/local-cx-xcss/usage.mdx +4 -4
  7. package/constellation/no-array-arguments/usage.mdx +7 -7
  8. package/constellation/no-container-queries/usage.mdx +14 -14
  9. package/constellation/no-dynamic-styles/usage.mdx +19 -19
  10. package/constellation/no-exported-styles/usage.mdx +15 -15
  11. package/constellation/no-global-styles/usage.mdx +13 -13
  12. package/constellation/no-important-styles/usage.mdx +2 -2
  13. package/constellation/no-imported-style-values/usage.mdx +16 -16
  14. package/constellation/no-nested-selectors/usage.mdx +18 -18
  15. package/constellation/no-styled/usage.mdx +6 -6
  16. package/constellation/no-unsafe-selectors/usage.mdx +90 -90
  17. package/constellation/no-unsafe-values/usage.mdx +33 -33
  18. package/dist/cjs/index.codegen.js +1 -1
  19. package/dist/cjs/presets/all.codegen.js +1 -1
  20. package/dist/cjs/presets/recommended.codegen.js +1 -1
  21. package/dist/cjs/rules/index.codegen.js +1 -1
  22. package/dist/cjs/rules/no-unsafe-selectors/index.js +4 -1
  23. package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +10 -1
  24. package/dist/es2019/index.codegen.js +1 -1
  25. package/dist/es2019/presets/all.codegen.js +1 -1
  26. package/dist/es2019/presets/recommended.codegen.js +1 -1
  27. package/dist/es2019/rules/index.codegen.js +1 -1
  28. package/dist/es2019/rules/no-unsafe-selectors/index.js +4 -1
  29. package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +10 -1
  30. package/dist/esm/index.codegen.js +1 -1
  31. package/dist/esm/presets/all.codegen.js +1 -1
  32. package/dist/esm/presets/recommended.codegen.js +1 -1
  33. package/dist/esm/rules/index.codegen.js +1 -1
  34. package/dist/esm/rules/no-unsafe-selectors/index.js +4 -1
  35. package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +10 -1
  36. package/dist/types/presets/all.codegen.d.ts +1 -1
  37. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  38. package/dist/types/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
  39. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  40. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
  41. package/dist/types-ts4.5/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
  42. package/package.json +2 -4
  43. package/src/index.codegen.tsx +3 -3
  44. package/src/presets/all.codegen.tsx +70 -73
  45. package/src/presets/recommended.codegen.tsx +70 -73
  46. package/src/rules/index.codegen.tsx +18 -18
  47. package/src/rules/no-unsafe-selectors/__tests__/no-ambiguous-pseudos.test.tsx +211 -201
  48. package/src/rules/no-unsafe-selectors/index.tsx +174 -177
  49. package/src/rules/no-unsafe-selectors/lint-selector.tsx +128 -141
  50. package/tsconfig.app.json +45 -45
  51. package/tsconfig.dev.json +43 -43
@@ -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::a4ab25dd4ce24b183125bfbc709e3943>>
9
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
9
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -24,7 +24,7 @@ var _noUnsafeValues = _interopRequireDefault(require("./no-unsafe-values"));
24
24
  var _useCompiled = _interopRequireDefault(require("./use-compiled"));
25
25
  /**
26
26
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
27
- * @codegen <<SignedSource::c907cf4b4e11348239dadaefebe80fca>>
27
+ * @codegen <<SignedSource::6ad0de2d4bdac726387f27681ad9fcf4>>
28
28
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
29
29
  */
30
30
  var _default = exports.default = {
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser"));
9
+ var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
9
10
  var _schema = require("@atlaskit/eslint-utils/schema");
10
11
  var _walkStyleProperties = require("@atlaskit/eslint-utils/walk-style-properties");
11
12
  var _createRuleWithTypedConfig = require("../utils/create-rule-with-typed-config");
@@ -94,6 +95,7 @@ var rule = (0, _createRuleWithTypedConfig.createLintRuleWithTypedConfig)({
94
95
  }(function (node) {
95
96
  var _context$getScope = context.getScope(),
96
97
  references = _context$getScope.references;
98
+ var isXcssCall = (0, _isSupportedImport.isXcss)(node, references, config.importSources);
97
99
  (0, _walkStyleProperties.walkStyleProperties)(node, references, config.importSources, function (_ref) {
98
100
  var key = _ref.key,
99
101
  value = _ref.value;
@@ -138,7 +140,8 @@ var rule = (0, _createRuleWithTypedConfig.createLintRuleWithTypedConfig)({
138
140
  context: context,
139
141
  sourceNode: key,
140
142
  selector: selector,
141
- config: config
143
+ config: config,
144
+ isXcssCall: isXcssCall
142
145
  });
143
146
  });
144
147
  } catch (e) {
@@ -24,7 +24,16 @@ function checkNoAmbiguousPseudos(_ref) {
24
24
  var context = _ref.context,
25
25
  sourceNode = _ref.sourceNode,
26
26
  selector = _ref.selector,
27
- config = _ref.config;
27
+ config = _ref.config,
28
+ isXcssCall = _ref.isXcssCall;
29
+ if (isXcssCall) {
30
+ /**
31
+ * The `xcss` API does not currently support a leading `&`.
32
+ *
33
+ * This may change in the future, but we are ignoring `xcss` calls for now.
34
+ */
35
+ return;
36
+ }
28
37
  if (selector.first.type !== 'pseudo') {
29
38
  return;
30
39
  }
@@ -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::16a3441765e5a97f9f32de7fd0de17f0>>
3
+ * @codegen <<SignedSource::aff3fad2b8534fad07ba5f0f1b981a55>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::c907cf4b4e11348239dadaefebe80fca>>
3
+ * @codegen <<SignedSource::6ad0de2d4bdac726387f27681ad9fcf4>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  import atlaskitTheme from './atlaskit-theme';
@@ -1,4 +1,5 @@
1
1
  import cssSelectorParser from 'postcss-selector-parser';
2
+ import { isXcss } from '@atlaskit/eslint-utils/is-supported-import';
2
3
  import { importSources } from '@atlaskit/eslint-utils/schema';
3
4
  import { walkStyleProperties } from '@atlaskit/eslint-utils/walk-style-properties';
4
5
  import { createLintRuleWithTypedConfig } from '../utils/create-rule-with-typed-config';
@@ -82,6 +83,7 @@ const rule = createLintRuleWithTypedConfig({
82
83
  const {
83
84
  references
84
85
  } = context.getScope();
86
+ const isXcssCall = isXcss(node, references, config.importSources);
85
87
  walkStyleProperties(node, references, config.importSources, ({
86
88
  key,
87
89
  value
@@ -126,7 +128,8 @@ const rule = createLintRuleWithTypedConfig({
126
128
  context,
127
129
  sourceNode: key,
128
130
  selector,
129
- config
131
+ config,
132
+ isXcssCall
130
133
  }));
131
134
  } catch (e) {
132
135
  context.report({
@@ -15,8 +15,17 @@ function checkNoAmbiguousPseudos({
15
15
  context,
16
16
  sourceNode,
17
17
  selector,
18
- config
18
+ config,
19
+ isXcssCall
19
20
  }) {
21
+ if (isXcssCall) {
22
+ /**
23
+ * The `xcss` API does not currently support a leading `&`.
24
+ *
25
+ * This may change in the future, but we are ignoring `xcss` calls for now.
26
+ */
27
+ return;
28
+ }
20
29
  if (selector.first.type !== 'pseudo') {
21
30
  return;
22
31
  }
@@ -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::16a3441765e5a97f9f32de7fd0de17f0>>
3
+ * @codegen <<SignedSource::aff3fad2b8534fad07ba5f0f1b981a55>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::c907cf4b4e11348239dadaefebe80fca>>
3
+ * @codegen <<SignedSource::6ad0de2d4bdac726387f27681ad9fcf4>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  import atlaskitTheme from './atlaskit-theme';
@@ -1,4 +1,5 @@
1
1
  import cssSelectorParser from 'postcss-selector-parser';
2
+ import { isXcss } from '@atlaskit/eslint-utils/is-supported-import';
2
3
  import { importSources } from '@atlaskit/eslint-utils/schema';
3
4
  import { walkStyleProperties } from '@atlaskit/eslint-utils/walk-style-properties';
4
5
  import { createLintRuleWithTypedConfig } from '../utils/create-rule-with-typed-config';
@@ -87,6 +88,7 @@ var rule = createLintRuleWithTypedConfig({
87
88
  }(function (node) {
88
89
  var _context$getScope = context.getScope(),
89
90
  references = _context$getScope.references;
91
+ var isXcssCall = isXcss(node, references, config.importSources);
90
92
  walkStyleProperties(node, references, config.importSources, function (_ref) {
91
93
  var key = _ref.key,
92
94
  value = _ref.value;
@@ -131,7 +133,8 @@ var rule = createLintRuleWithTypedConfig({
131
133
  context: context,
132
134
  sourceNode: key,
133
135
  selector: selector,
134
- config: config
136
+ config: config,
137
+ isXcssCall: isXcssCall
135
138
  });
136
139
  });
137
140
  } catch (e) {
@@ -17,7 +17,16 @@ function checkNoAmbiguousPseudos(_ref) {
17
17
  var context = _ref.context,
18
18
  sourceNode = _ref.sourceNode,
19
19
  selector = _ref.selector,
20
- config = _ref.config;
20
+ config = _ref.config,
21
+ isXcssCall = _ref.isXcssCall;
22
+ if (isXcssCall) {
23
+ /**
24
+ * The `xcss` API does not currently support a leading `&`.
25
+ *
26
+ * This may change in the future, but we are ignoring `xcss` calls for now.
27
+ */
28
+ return;
29
+ }
21
30
  if (selector.first.type !== 'pseudo') {
22
31
  return;
23
32
  }
@@ -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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  declare const _default: {
@@ -8,6 +8,7 @@ type CheckArgs = {
8
8
  config: {
9
9
  shouldAlwaysInsertNestingSelectorForAmbiguousPseudos: boolean;
10
10
  };
11
+ isXcssCall: boolean;
11
12
  };
12
13
  export declare function lintSelector(args: CheckArgs): void;
13
14
  export {};
@@ -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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard 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::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  declare const _default: {
@@ -8,6 +8,7 @@ type CheckArgs = {
8
8
  config: {
9
9
  shouldAlwaysInsertNestingSelectorForAmbiguousPseudos: boolean;
10
10
  };
11
+ isXcssCall: boolean;
11
12
  };
12
13
  export declare function lintSelector(args: CheckArgs): void;
13
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-ui-styling-standard",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "The eslint plugin to enforce and educate on Atlassian's UI Styling Standard",
6
6
  "license": "Apache-2.0",
@@ -55,7 +55,6 @@
55
55
  "@af/formatting": "*",
56
56
  "@atlaskit/ds-lib": "^2.3.0",
57
57
  "@atlaskit/eslint-plugin-design-system": "^10.4.0",
58
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
59
58
  "@atlassian/codegen": "*",
60
59
  "@compiled/eslint-plugin": "^0.13.6",
61
60
  "@types/eslint": "^8.56.6",
@@ -68,6 +67,5 @@
68
67
  },
69
68
  "scripts": {
70
69
  "codegen": "ts-node -r tsconfig-paths/register ./scripts/codegen.tsx"
71
- },
72
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
70
+ }
73
71
  }
@@ -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::16a3441765e5a97f9f32de7fd0de17f0>>
3
+ * @codegen <<SignedSource::aff3fad2b8534fad07ba5f0f1b981a55>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  import all from './presets/all.codegen';
@@ -9,6 +9,6 @@ import recommended from './presets/recommended.codegen';
9
9
  export { default as rules } from './rules/index.codegen';
10
10
 
11
11
  export const configs = {
12
- all,
13
- recommended,
12
+ all,
13
+ recommended,
14
14
  };
@@ -1,79 +1,76 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::a4ab25dd4ce24b183125bfbc709e3943>>
3
+ * @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  export default {
7
- plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
8
- rules: {
9
- '@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
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': [
27
- 'warn',
28
- { excludeReactComponents: true },
29
- ],
30
- '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
31
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
32
- '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
33
- '@compiled/no-suppress-xcss': 'warn',
34
- '@compiled/no-js-xcss': 'warn',
35
- '@atlaskit/design-system/no-empty-styled-expression': [
36
- 'warn',
37
- {
38
- importSources: [
39
- '@compiled/react',
40
- '@atlaskit/css',
41
- '@emotion/core',
42
- '@emotion/react',
43
- '@emotion/styled',
44
- 'styled-components',
45
- ],
46
- },
47
- ],
48
- '@atlaskit/design-system/no-exported-css': [
49
- 'warn',
50
- {
51
- importSources: [
52
- '@compiled/react',
53
- '@atlaskit/css',
54
- '@emotion/core',
55
- '@emotion/react',
56
- '@emotion/styled',
57
- 'styled-components',
58
- ],
59
- },
60
- ],
61
- '@atlaskit/design-system/no-exported-keyframes': [
62
- 'warn',
63
- {
64
- importSources: [
65
- '@compiled/react',
66
- '@atlaskit/css',
67
- '@emotion/core',
68
- '@emotion/react',
69
- '@emotion/styled',
70
- 'styled-components',
71
- ],
72
- },
73
- ],
74
- '@atlaskit/design-system/no-invalid-css-map': [
75
- 'warn',
76
- { allowedFunctionCalls: [['@atlaskit/tokens', 'token']] },
77
- ],
78
- },
7
+ plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
8
+ rules: {
9
+ '@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
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', { excludeReactComponents: true }],
27
+ '@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
28
+ '@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
29
+ '@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
30
+ '@compiled/no-suppress-xcss': 'warn',
31
+ '@compiled/no-js-xcss': 'warn',
32
+ '@atlaskit/design-system/no-empty-styled-expression': [
33
+ 'warn',
34
+ {
35
+ importSources: [
36
+ '@compiled/react',
37
+ '@atlaskit/css',
38
+ '@emotion/core',
39
+ '@emotion/react',
40
+ '@emotion/styled',
41
+ 'styled-components',
42
+ ],
43
+ },
44
+ ],
45
+ '@atlaskit/design-system/no-exported-css': [
46
+ 'warn',
47
+ {
48
+ importSources: [
49
+ '@compiled/react',
50
+ '@atlaskit/css',
51
+ '@emotion/core',
52
+ '@emotion/react',
53
+ '@emotion/styled',
54
+ 'styled-components',
55
+ ],
56
+ },
57
+ ],
58
+ '@atlaskit/design-system/no-exported-keyframes': [
59
+ 'warn',
60
+ {
61
+ importSources: [
62
+ '@compiled/react',
63
+ '@atlaskit/css',
64
+ '@emotion/core',
65
+ '@emotion/react',
66
+ '@emotion/styled',
67
+ 'styled-components',
68
+ ],
69
+ },
70
+ ],
71
+ '@atlaskit/design-system/no-invalid-css-map': [
72
+ 'warn',
73
+ { allowedFunctionCalls: [['@atlaskit/tokens', 'token']] },
74
+ ],
75
+ },
79
76
  };