@atlaskit/eslint-plugin-ui-styling-standard 2.1.1 → 2.1.2
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 +8 -0
- package/README.md +19 -18
- package/dist/cjs/presets/all-flat.codegen.js +3 -2
- package/dist/cjs/presets/all.codegen.js +3 -2
- package/dist/cjs/presets/recommended-flat.codegen.js +3 -2
- package/dist/cjs/presets/recommended.codegen.js +3 -2
- package/dist/cjs/rules/external-rules.js +11 -0
- package/dist/es2019/presets/all-flat.codegen.js +3 -2
- package/dist/es2019/presets/all.codegen.js +3 -2
- package/dist/es2019/presets/recommended-flat.codegen.js +3 -2
- package/dist/es2019/presets/recommended.codegen.js +3 -2
- package/dist/es2019/rules/external-rules.js +11 -0
- package/dist/esm/presets/all-flat.codegen.js +3 -2
- package/dist/esm/presets/all.codegen.js +3 -2
- package/dist/esm/presets/recommended-flat.codegen.js +3 -2
- package/dist/esm/presets/recommended.codegen.js +3 -2
- package/dist/esm/rules/external-rules.js +11 -0
- package/dist/types/presets/all-flat.codegen.d.ts +1 -1
- package/dist/types/presets/all.codegen.d.ts +1 -1
- package/dist/types/presets/recommended-flat.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 2.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`00f3166426df4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00f3166426df4) -
|
|
8
|
+
add eslint rule for cssMapScope and ratcheting rule
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 2.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -42,29 +42,30 @@ module.exports = {
|
|
|
42
42
|
|
|
43
43
|
| Rule | Description | Recommended | Fixable | Suggestions |
|
|
44
44
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- | ------- | ----------- |
|
|
45
|
-
| <a href="./
|
|
46
|
-
| <a href="./
|
|
47
|
-
| <a href="./
|
|
48
|
-
| <a href="./
|
|
49
|
-
| <a href="./
|
|
50
|
-
| <a href="./
|
|
51
|
-
| <a href="./
|
|
52
|
-
| <a href="./
|
|
53
|
-
| <a href="./
|
|
54
|
-
| <a href="./
|
|
55
|
-
| <a href="./
|
|
56
|
-
| <a href="./
|
|
57
|
-
| <a href="./
|
|
58
|
-
| <a href="./
|
|
59
|
-
| <a href="./
|
|
60
|
-
| <a href="./
|
|
61
|
-
| <a href="./
|
|
62
|
-
| <a href="./
|
|
45
|
+
| <a href="./src/rules/atlaskit-theme/README.md">atlaskit-theme</a> | Ban certain usages of `@atlaskit/theme` that `@compiled/react` does not understand | Yes | | |
|
|
46
|
+
| <a href="./src/rules/convert-props-syntax/README.md">convert-props-syntax</a> | Convert props syntax that is unsupported by styled-components@<4 or @emotion/styled to props syntax that is supported. This is useful when used in conjunction with `no-styled-tagged-template-expression`, as output from the latter may use props syntax unsupported by those libraries. | Yes | Yes | |
|
|
47
|
+
| <a href="./src/rules/enforce-style-prop/README.md">enforce-style-prop</a> | Disallows usage of static styles in the `style` attribute in components | Yes | | |
|
|
48
|
+
| <a href="./src/rules/local-cx-xcss/README.md">local-cx-xcss</a> | 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. | Yes | | |
|
|
49
|
+
| <a href="./src/rules/no-array-arguments/README.md">no-array-arguments</a> | Prevents usage of array arguments to style declaration functions | Yes | Yes | |
|
|
50
|
+
| <a href="./src/rules/no-classname-prop/README.md">no-classname-prop</a> | Disallows usage of the `className` prop in JSX | Yes | | |
|
|
51
|
+
| <a href="./src/rules/no-container-queries/README.md">no-container-queries</a> | Prevents usage of @container query within css styling | Yes | | |
|
|
52
|
+
| <a href="./src/rules/no-dynamic-styles/README.md">no-dynamic-styles</a> | Disallows use of dynamic styles in CSS-in-JS calls | Yes | | |
|
|
53
|
+
| <a href="./src/rules/no-exported-styles/README.md">no-exported-styles</a> | Disallows exports of css, keyframes, styled and xcss | Yes | | |
|
|
54
|
+
| <a href="./src/rules/no-global-styles/README.md">no-global-styles</a> | Prevents global styles through CSS-in-JS or CSS module imports | Yes | | |
|
|
55
|
+
| <a href="./src/rules/no-important-styles/README.md">no-important-styles</a> | Disallows important style declarations | Yes | | |
|
|
56
|
+
| <a href="./src/rules/no-imported-style-values/README.md">no-imported-style-values</a> | Disallows imports of style values | Yes | | |
|
|
57
|
+
| <a href="./src/rules/no-nested-selectors/README.md">no-nested-selectors</a> | Prevents usage of nested selectors within css styling | Yes | | |
|
|
58
|
+
| <a href="./src/rules/no-styled/README.md">no-styled</a> | Disallows usage of the `styled` imports | Yes | | |
|
|
59
|
+
| <a href="./src/rules/no-unsafe-selectors/README.md">no-unsafe-selectors</a> | Disallows use of nested styles in `css` functions. | Yes | Yes | Yes |
|
|
60
|
+
| <a href="./src/rules/no-unsafe-values/README.md">no-unsafe-values</a> | Disallows styles that are difficult/impossible to statically anaylze. | Yes | | |
|
|
61
|
+
| <a href="./src/rules/no-unused-cssmap-properties/README.md">no-unused-cssmap-properties</a> | Detects unused properties in cssMap style objects that are not exported. Helps maintain clean code by identifying style variants that are defined but never used. | Yes | | |
|
|
62
|
+
| <a href="./src/rules/use-compiled/README.md">use-compiled</a> | Ensures usage of `@compiled/react` or `@atlaskit/css` instead of other CSS-in-JS libraries | Yes | Yes | |
|
|
63
63
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/consistent-css-prop-usage/usage">@atlaskit/design-system/consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
|
|
64
64
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-css-tagged-template-expression/usage">@atlaskit/design-system/no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | Yes | Yes | |
|
|
65
65
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-keyframes-tagged-template-expression/usage">@atlaskit/design-system/no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | Yes | Yes | |
|
|
66
66
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-styled-tagged-template-expression/usage">@atlaskit/design-system/no-styled-tagged-template-expression</a> | Disallows any `styled` tagged template expressions that originate from Emotion, Styled Components or Compiled | Yes | Yes | |
|
|
67
67
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-empty-styled-expression/usage">@atlaskit/design-system/no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | Yes | | |
|
|
68
68
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-invalid-css-map/usage">@atlaskit/design-system/no-invalid-css-map</a> | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | Yes | | |
|
|
69
|
+
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-css-map-scoped/usage">@atlaskit/design-system/no-css-map-scoped</a> | Disallows usage of the experimental `cssMapScoped` API from `@compiled/react`. This API is internal and is not part of the public Compiled CSS-in-JS interface. | Yes | | |
|
|
69
70
|
|
|
70
71
|
<!-- END_RULE_TABLE_CODEGEN -->
|
|
@@ -9,7 +9,7 @@ var atlaskitDesignSystemPlugin = _interopRequireWildcard(require("@atlaskit/esli
|
|
|
9
9
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
10
10
|
/**
|
|
11
11
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
13
13
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -49,7 +49,8 @@ var config = {
|
|
|
49
49
|
}],
|
|
50
50
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
51
51
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
52
|
-
}]
|
|
52
|
+
}],
|
|
53
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
var _default = exports.default = config;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -43,7 +43,8 @@ var config = {
|
|
|
43
43
|
}],
|
|
44
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
-
}]
|
|
46
|
+
}],
|
|
47
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
var _default = exports.default = config;
|
|
@@ -9,7 +9,7 @@ var atlaskitDesignSystemPlugin = _interopRequireWildcard(require("@atlaskit/esli
|
|
|
9
9
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
10
10
|
/**
|
|
11
11
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
13
13
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -49,7 +49,8 @@ var config = {
|
|
|
49
49
|
}],
|
|
50
50
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
51
51
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
52
|
-
}]
|
|
52
|
+
}],
|
|
53
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
var _default = exports.default = config;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -43,7 +43,8 @@ var config = {
|
|
|
43
43
|
}],
|
|
44
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
|
-
}]
|
|
46
|
+
}],
|
|
47
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
var _default = exports.default = config;
|
|
@@ -94,4 +94,15 @@ var externalRules = exports.externalRules = [{
|
|
|
94
94
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
}, {
|
|
98
|
+
name: '@atlaskit/design-system/no-css-map-scoped',
|
|
99
|
+
displayName: 'no-css-map-scoped',
|
|
100
|
+
isExternal: true,
|
|
101
|
+
docs: {
|
|
102
|
+
description: 'Disallows usage of the experimental `cssMapScoped` API from `@compiled/react`. This API is internal and is not part of the public Compiled CSS-in-JS interface.',
|
|
103
|
+
url: (0, _getRuleUrl.getRuleUrl)('no-css-map-scoped'),
|
|
104
|
+
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-css-map-scoped/usage',
|
|
105
|
+
recommended: true,
|
|
106
|
+
severity: 'error'
|
|
107
|
+
}
|
|
97
108
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -41,7 +41,8 @@ const config = {
|
|
|
41
41
|
}],
|
|
42
42
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
43
43
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
|
-
}]
|
|
44
|
+
}],
|
|
45
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -37,7 +37,8 @@ const config = {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}]
|
|
40
|
+
}],
|
|
41
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -41,7 +41,8 @@ const config = {
|
|
|
41
41
|
}],
|
|
42
42
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
43
43
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
|
-
}]
|
|
44
|
+
}],
|
|
45
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -37,7 +37,8 @@ const config = {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}]
|
|
40
|
+
}],
|
|
41
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
export default config;
|
|
@@ -89,4 +89,15 @@ export const externalRules = [{
|
|
|
89
89
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
}, {
|
|
93
|
+
name: '@atlaskit/design-system/no-css-map-scoped',
|
|
94
|
+
displayName: 'no-css-map-scoped',
|
|
95
|
+
isExternal: true,
|
|
96
|
+
docs: {
|
|
97
|
+
description: 'Disallows usage of the experimental `cssMapScoped` API from `@compiled/react`. This API is internal and is not part of the public Compiled CSS-in-JS interface.',
|
|
98
|
+
url: getRuleUrl('no-css-map-scoped'),
|
|
99
|
+
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-css-map-scoped/usage',
|
|
100
|
+
recommended: true,
|
|
101
|
+
severity: 'error'
|
|
102
|
+
}
|
|
92
103
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -41,7 +41,8 @@ var config = {
|
|
|
41
41
|
}],
|
|
42
42
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
43
43
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
|
-
}]
|
|
44
|
+
}],
|
|
45
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -37,7 +37,8 @@ var config = {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}]
|
|
40
|
+
}],
|
|
41
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -41,7 +41,8 @@ var config = {
|
|
|
41
41
|
}],
|
|
42
42
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
43
43
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
|
-
}]
|
|
44
|
+
}],
|
|
45
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
export default config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -37,7 +37,8 @@ var config = {
|
|
|
37
37
|
}],
|
|
38
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
39
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
40
|
-
}]
|
|
40
|
+
}],
|
|
41
|
+
'@atlaskit/design-system/no-css-map-scoped': 'error'
|
|
41
42
|
}
|
|
42
43
|
};
|
|
43
44
|
export default config;
|
|
@@ -89,4 +89,15 @@ export var externalRules = [{
|
|
|
89
89
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
}, {
|
|
93
|
+
name: '@atlaskit/design-system/no-css-map-scoped',
|
|
94
|
+
displayName: 'no-css-map-scoped',
|
|
95
|
+
isExternal: true,
|
|
96
|
+
docs: {
|
|
97
|
+
description: 'Disallows usage of the experimental `cssMapScoped` API from `@compiled/react`. This API is internal and is not part of the public Compiled CSS-in-JS interface.',
|
|
98
|
+
url: getRuleUrl('no-css-map-scoped'),
|
|
99
|
+
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-css-map-scoped/usage',
|
|
100
|
+
recommended: true,
|
|
101
|
+
severity: 'error'
|
|
102
|
+
}
|
|
92
103
|
}];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { Linter } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { ESLint } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8a252381063c65bbbd7bd21e6a7f99a7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { Linter } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::7d9130538f9fe4e88eebb9a6eb22e553>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { ESLint } from 'eslint';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-ui-styling-standard",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"atlaskit:src": "src/index.tsx",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/eslint-plugin-design-system": "^16.
|
|
31
|
+
"@atlaskit/eslint-plugin-design-system": "^16.2.0",
|
|
32
32
|
"@atlaskit/eslint-utils": "^3.0.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@typescript-eslint/utils": "^7.1.0",
|