@atlaskit/eslint-plugin-ui-styling-standard 0.18.4 → 0.19.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.
- package/CHANGELOG.md +19 -0
- package/README.md +0 -2
- package/dist/cjs/presets/all.codegen.js +1 -7
- package/dist/cjs/presets/recommended.codegen.js +1 -7
- package/dist/cjs/rules/convert-props-syntax/index.js +5 -13
- package/dist/cjs/rules/external-rules.js +3 -29
- package/dist/cjs/rules/no-array-arguments/index.js +3 -3
- package/dist/cjs/rules/no-dynamic-styles/index.js +3 -3
- package/dist/cjs/rules/no-global-styles/index.js +5 -13
- package/dist/cjs/rules/no-important-styles/index.js +3 -3
- package/dist/cjs/rules/no-imported-style-values/index.js +3 -3
- package/dist/cjs/rules/no-nested-selectors/index.js +1 -1
- package/dist/cjs/rules/no-styled/index.js +4 -20
- package/dist/cjs/rules/no-unsafe-selectors/constants.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/index.js +2 -10
- package/dist/cjs/rules/no-unsafe-values/utils.js +3 -3
- package/dist/cjs/rules/use-compiled/index.js +2 -10
- package/dist/es2019/presets/all.codegen.js +1 -7
- package/dist/es2019/presets/recommended.codegen.js +1 -7
- package/dist/es2019/rules/external-rules.js +3 -29
- package/dist/es2019/rules/no-unsafe-selectors/constants.js +1 -1
- package/dist/esm/presets/all.codegen.js +1 -7
- package/dist/esm/presets/recommended.codegen.js +1 -7
- package/dist/esm/rules/convert-props-syntax/index.js +5 -13
- package/dist/esm/rules/external-rules.js +3 -29
- package/dist/esm/rules/no-array-arguments/index.js +3 -3
- package/dist/esm/rules/no-dynamic-styles/index.js +3 -3
- package/dist/esm/rules/no-global-styles/index.js +5 -13
- package/dist/esm/rules/no-important-styles/index.js +3 -3
- package/dist/esm/rules/no-imported-style-values/index.js +3 -3
- package/dist/esm/rules/no-styled/index.js +4 -20
- package/dist/esm/rules/no-unsafe-selectors/constants.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/index.js +2 -10
- package/dist/esm/rules/no-unsafe-values/utils.js +3 -3
- package/dist/esm/rules/use-compiled/index.js +2 -10
- package/dist/types/index.codegen.d.ts +0 -12
- package/dist/types/presets/all.codegen.d.ts +1 -7
- package/dist/types/presets/recommended.codegen.d.ts +1 -7
- package/dist/types/rules/external-rules.d.ts +3 -1
- package/dist/types/rules/no-unsafe-selectors/constants.d.ts +1 -1
- package/dist/types-ts4.5/index.codegen.d.ts +0 -12
- package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -7
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -7
- package/dist/types-ts4.5/rules/external-rules.d.ts +3 -1
- package/dist/types-ts4.5/rules/no-unsafe-selectors/constants.d.ts +2 -1
- package/package.json +7 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 0.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152862](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152862)
|
|
8
|
+
[`8febdd40a9680`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8febdd40a9680) -
|
|
9
|
+
Added &::-webkit-details-marker CSS psuedo into the allowed set of psuedos in
|
|
10
|
+
@atlaskit/ui-styling-standard/no-unsafe-selectors rule
|
|
11
|
+
|
|
12
|
+
## 0.19.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#128926](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128926)
|
|
17
|
+
[`5df26d24db3c7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5df26d24db3c7) -
|
|
18
|
+
Remove configuration for '@atlaskit/design-system/no-exported-css' and
|
|
19
|
+
'@atlaskit/design-system/no-exported-keyframes' as we expect
|
|
20
|
+
'@atlaskit/ui-styling-standard/no-exported-styles' to cover these cases now.
|
|
21
|
+
|
|
3
22
|
## 0.18.4
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -66,8 +66,6 @@ module.exports = {
|
|
|
66
66
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-suppress-xcss/usage">@compiled/no-suppress-xcss</a> | Disallows supressing type violations when using the xcss prop. | Yes | | |
|
|
67
67
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-js-xcss/usage">@compiled/no-js-xcss</a> | Disallows using xcss prop inside JavaScript files. | Yes | | |
|
|
68
68
|
| <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 | | |
|
|
69
|
-
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-exported-css/usage">@atlaskit/design-system/no-exported-css</a> | Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
70
|
-
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/no-exported-keyframes/usage">@atlaskit/design-system/no-exported-keyframes</a> | Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
71
69
|
| <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 | | |
|
|
72
70
|
|
|
73
71
|
<!-- END_RULE_TABLE_CODEGEN -->
|
|
@@ -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::330ecd53e03bf78708580ddcfb206876>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -41,12 +41,6 @@ var _default = exports.default = {
|
|
|
41
41
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
42
42
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
43
|
}],
|
|
44
|
-
'@atlaskit/design-system/no-exported-css': ['error', {
|
|
45
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
46
|
-
}],
|
|
47
|
-
'@atlaskit/design-system/no-exported-keyframes': ['error', {
|
|
48
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
49
|
-
}],
|
|
50
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
51
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
52
46
|
}]
|
|
@@ -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::330ecd53e03bf78708580ddcfb206876>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -41,12 +41,6 @@ var _default = exports.default = {
|
|
|
41
41
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
42
42
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
43
|
}],
|
|
44
|
-
'@atlaskit/design-system/no-exported-css': ['error', {
|
|
45
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
46
|
-
}],
|
|
47
|
-
'@atlaskit/design-system/no-exported-keyframes': ['error', {
|
|
48
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
49
|
-
}],
|
|
50
44
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
51
45
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
52
46
|
}]
|
|
@@ -10,9 +10,9 @@ var _createRule = require("../utils/create-rule");
|
|
|
10
10
|
var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
|
|
11
11
|
var _estraverse = _interopRequireDefault(require("estraverse"));
|
|
12
12
|
var _eslintCodemodUtils = require("eslint-codemod-utils");
|
|
13
|
-
function _createForOfIteratorHelper(
|
|
14
|
-
function _unsupportedIterableToArray(
|
|
15
|
-
function _arrayLikeToArray(
|
|
13
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
14
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
15
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16
16
|
/**
|
|
17
17
|
* Represents some information about single line that contains some props, e.g.
|
|
18
18
|
* the arrow function in
|
|
@@ -385,15 +385,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
385
385
|
},
|
|
386
386
|
create: function create(context) {
|
|
387
387
|
return {
|
|
388
|
-
CallExpression: function (
|
|
389
|
-
function CallExpression(_x) {
|
|
390
|
-
return _CallExpression.apply(this, arguments);
|
|
391
|
-
}
|
|
392
|
-
CallExpression.toString = function () {
|
|
393
|
-
return _CallExpression.toString();
|
|
394
|
-
};
|
|
395
|
-
return CallExpression;
|
|
396
|
-
}(function (node) {
|
|
388
|
+
CallExpression: function CallExpression(node) {
|
|
397
389
|
var _node$parent, _node$parent2;
|
|
398
390
|
var references = context.getScope().references;
|
|
399
391
|
|
|
@@ -419,7 +411,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
419
411
|
return;
|
|
420
412
|
}
|
|
421
413
|
lintArguments(context, node.arguments);
|
|
422
|
-
}
|
|
414
|
+
}
|
|
423
415
|
};
|
|
424
416
|
}
|
|
425
417
|
});
|
|
@@ -5,7 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.externalRules = void 0;
|
|
7
7
|
var _createRule = require("./utils/create-rule");
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* External rules must be scoped, have a display name, and external urls.
|
|
10
|
+
*/
|
|
9
11
|
|
|
10
12
|
var importSources = ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components'];
|
|
11
13
|
var externalRules = exports.externalRules = [{
|
|
@@ -100,34 +102,6 @@ var externalRules = exports.externalRules = [{
|
|
|
100
102
|
importSources: importSources
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
|
-
}, {
|
|
104
|
-
name: '@atlaskit/design-system/no-exported-css',
|
|
105
|
-
displayName: 'no-exported-css',
|
|
106
|
-
isExternal: true,
|
|
107
|
-
docs: {
|
|
108
|
-
description: 'Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
109
|
-
url: (0, _createRule.getRuleUrl)('no-exported-css'),
|
|
110
|
-
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-css/usage',
|
|
111
|
-
recommended: true,
|
|
112
|
-
severity: 'error',
|
|
113
|
-
pluginConfig: {
|
|
114
|
-
importSources: importSources
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
name: '@atlaskit/design-system/no-exported-keyframes',
|
|
119
|
-
displayName: 'no-exported-keyframes',
|
|
120
|
-
isExternal: true,
|
|
121
|
-
docs: {
|
|
122
|
-
description: 'Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
123
|
-
url: (0, _createRule.getRuleUrl)('no-exported-keyframes'),
|
|
124
|
-
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-keyframes/usage',
|
|
125
|
-
recommended: true,
|
|
126
|
-
severity: 'error',
|
|
127
|
-
pluginConfig: {
|
|
128
|
-
importSources: importSources
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
105
|
}, {
|
|
132
106
|
name: '@atlaskit/design-system/no-invalid-css-map',
|
|
133
107
|
displayName: 'no-invalid-css-map',
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.rule = exports.default = void 0;
|
|
7
7
|
var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
|
|
8
8
|
var _createRule = require("../utils/create-rule");
|
|
9
|
-
function _createForOfIteratorHelper(
|
|
10
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _arrayLikeToArray(
|
|
9
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
10
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
11
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12
12
|
var schema = [{
|
|
13
13
|
type: 'object',
|
|
14
14
|
properties: {
|
|
@@ -8,9 +8,9 @@ exports.rule = exports.default = void 0;
|
|
|
8
8
|
var _esquery = _interopRequireDefault(require("esquery"));
|
|
9
9
|
var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
|
|
10
10
|
var _createRule = require("../utils/create-rule");
|
|
11
|
-
function _createForOfIteratorHelper(
|
|
12
|
-
function _unsupportedIterableToArray(
|
|
13
|
-
function _arrayLikeToArray(
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
14
|
var schema = [{
|
|
15
15
|
type: 'object',
|
|
16
16
|
properties: {
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.rule = exports.default = void 0;
|
|
7
7
|
var _createRule = require("../utils/create-rule");
|
|
8
|
-
function _createForOfIteratorHelper(
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
8
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
11
|
var restrictedFileTypes = ['.css', '.less', '.sass', '.scss'];
|
|
12
12
|
var restrictedImports = {
|
|
13
13
|
'@emotion/core': ['Global'],
|
|
@@ -73,18 +73,10 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return {
|
|
76
|
-
ImportDeclaration: function (
|
|
77
|
-
function ImportDeclaration(_x) {
|
|
78
|
-
return _ImportDeclaration.apply(this, arguments);
|
|
79
|
-
}
|
|
80
|
-
ImportDeclaration.toString = function () {
|
|
81
|
-
return _ImportDeclaration.toString();
|
|
82
|
-
};
|
|
83
|
-
return ImportDeclaration;
|
|
84
|
-
}(function (node) {
|
|
76
|
+
ImportDeclaration: function ImportDeclaration(node) {
|
|
85
77
|
checkFileType(node);
|
|
86
78
|
checkImports(node);
|
|
87
|
-
}
|
|
79
|
+
},
|
|
88
80
|
'JSXOpeningElement[name.name="style"]': function JSXOpeningElementNameNameStyle(node) {
|
|
89
81
|
context.report({
|
|
90
82
|
node: node,
|
|
@@ -9,9 +9,9 @@ var _esquery = _interopRequireDefault(require("esquery"));
|
|
|
9
9
|
var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
|
|
10
10
|
var _schema = require("@atlaskit/eslint-utils/schema");
|
|
11
11
|
var _createRuleWithTypedConfig = require("../utils/create-rule-with-typed-config");
|
|
12
|
-
function _createForOfIteratorHelper(
|
|
13
|
-
function _unsupportedIterableToArray(
|
|
14
|
-
function _arrayLikeToArray(
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
15
|
var rule = exports.rule = (0, _createRuleWithTypedConfig.createLintRuleWithTypedConfig)({
|
|
16
16
|
meta: {
|
|
17
17
|
name: 'no-important-styles',
|
|
@@ -11,9 +11,9 @@ var _allowedFunctionCalls = require("@atlaskit/eslint-utils/allowed-function-cal
|
|
|
11
11
|
var _findVariable = require("@atlaskit/eslint-utils/find-variable");
|
|
12
12
|
var _isSupportedImport = require("@atlaskit/eslint-utils/is-supported-import");
|
|
13
13
|
var _createRule = require("../utils/create-rule");
|
|
14
|
-
function _createForOfIteratorHelper(
|
|
15
|
-
function _unsupportedIterableToArray(
|
|
16
|
-
function _arrayLikeToArray(
|
|
14
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
15
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
16
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17
17
|
var schema = [{
|
|
18
18
|
type: 'object',
|
|
19
19
|
properties: {
|
|
@@ -12,7 +12,7 @@ var _walkStyleProperties = require("@atlaskit/eslint-utils/walk-style-properties
|
|
|
12
12
|
var _schema = require("@atlaskit/eslint-utils/schema");
|
|
13
13
|
var _createRuleWithTypedConfig = require("../utils/create-rule-with-typed-config");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
var getCssSelector = function getCssSelector(key) {
|
|
17
17
|
if (key.type === 'Literal' && typeof key.value === 'string') {
|
|
18
18
|
return key.value;
|
|
@@ -21,15 +21,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
21
21
|
},
|
|
22
22
|
create: function create(context) {
|
|
23
23
|
return {
|
|
24
|
-
CallExpression: function (
|
|
25
|
-
function CallExpression(_x) {
|
|
26
|
-
return _CallExpression.apply(this, arguments);
|
|
27
|
-
}
|
|
28
|
-
CallExpression.toString = function () {
|
|
29
|
-
return _CallExpression.toString();
|
|
30
|
-
};
|
|
31
|
-
return CallExpression;
|
|
32
|
-
}(function (node) {
|
|
24
|
+
CallExpression: function CallExpression(node) {
|
|
33
25
|
var references = context.getScope().references;
|
|
34
26
|
var importSources = (0, _isSupportedImport.getImportSources)(context);
|
|
35
27
|
if ((0, _isSupportedImport.isStyled)(node, references, importSources)) {
|
|
@@ -38,16 +30,8 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
38
30
|
messageId: 'no-styled'
|
|
39
31
|
});
|
|
40
32
|
}
|
|
41
|
-
}
|
|
42
|
-
MemberExpression: function (
|
|
43
|
-
function MemberExpression(_x2) {
|
|
44
|
-
return _MemberExpression.apply(this, arguments);
|
|
45
|
-
}
|
|
46
|
-
MemberExpression.toString = function () {
|
|
47
|
-
return _MemberExpression.toString();
|
|
48
|
-
};
|
|
49
|
-
return MemberExpression;
|
|
50
|
-
}(function (node) {
|
|
33
|
+
},
|
|
34
|
+
MemberExpression: function MemberExpression(node) {
|
|
51
35
|
var references = context.getScope().references;
|
|
52
36
|
var importSources = (0, _isSupportedImport.getImportSources)(context);
|
|
53
37
|
if (node.object.type === 'Identifier' && (0, _isSupportedImport.isStyled)(node.object, references, importSources)) {
|
|
@@ -60,7 +44,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
60
44
|
messageId: 'no-styled'
|
|
61
45
|
});
|
|
62
46
|
}
|
|
63
|
-
}
|
|
47
|
+
}
|
|
64
48
|
};
|
|
65
49
|
}
|
|
66
50
|
});
|
|
@@ -13,7 +13,7 @@ exports.legacyPseudoElements = exports.ignoredAtRules = exports.allowedPseudos =
|
|
|
13
13
|
* Exporting this so it isn't considered unused.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition'];
|
|
16
|
+
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker'];
|
|
17
17
|
var allowedPseudos = exports.allowedPseudos = new Set(
|
|
18
18
|
/**
|
|
19
19
|
* The `&` is included above for type checking reasons,
|
|
@@ -84,15 +84,7 @@ var rule = (0, _createRuleWithTypedConfig.createLintRuleWithTypedConfig)({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
|
-
CallExpression: function (
|
|
88
|
-
function CallExpression(_x) {
|
|
89
|
-
return _CallExpression.apply(this, arguments);
|
|
90
|
-
}
|
|
91
|
-
CallExpression.toString = function () {
|
|
92
|
-
return _CallExpression.toString();
|
|
93
|
-
};
|
|
94
|
-
return CallExpression;
|
|
95
|
-
}(function (node) {
|
|
87
|
+
CallExpression: function CallExpression(node) {
|
|
96
88
|
var _context$getScope = context.getScope(),
|
|
97
89
|
references = _context$getScope.references;
|
|
98
90
|
var isXcssCall = (0, _isSupportedImport.isXcss)(node, references, config.importSources);
|
|
@@ -154,7 +146,7 @@ var rule = (0, _createRuleWithTypedConfig.createLintRuleWithTypedConfig)({
|
|
|
154
146
|
});
|
|
155
147
|
}
|
|
156
148
|
});
|
|
157
|
-
}
|
|
149
|
+
}
|
|
158
150
|
};
|
|
159
151
|
}
|
|
160
152
|
});
|
|
@@ -10,9 +10,9 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _allowedFunctionCalls = require("@atlaskit/eslint-utils/allowed-function-calls");
|
|
11
11
|
var _findIdentifierNode = require("@atlaskit/eslint-utils/find-identifier-node");
|
|
12
12
|
var _findVariable = require("@atlaskit/eslint-utils/find-variable");
|
|
13
|
-
function _createForOfIteratorHelper(
|
|
14
|
-
function _unsupportedIterableToArray(
|
|
15
|
-
function _arrayLikeToArray(
|
|
13
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
14
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
15
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16
16
|
function isReferenceToCssVar(variable) {
|
|
17
17
|
var definitions = variable.defs;
|
|
18
18
|
return definitions.every(function (definition) {
|
|
@@ -114,15 +114,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
114
114
|
})
|
|
115
115
|
});
|
|
116
116
|
},
|
|
117
|
-
ImportDeclaration: function (
|
|
118
|
-
function ImportDeclaration(_x) {
|
|
119
|
-
return _ImportDeclaration.apply(this, arguments);
|
|
120
|
-
}
|
|
121
|
-
ImportDeclaration.toString = function () {
|
|
122
|
-
return _ImportDeclaration.toString();
|
|
123
|
-
};
|
|
124
|
-
return ImportDeclaration;
|
|
125
|
-
}(function (node) {
|
|
117
|
+
ImportDeclaration: function ImportDeclaration(node) {
|
|
126
118
|
var importSource = node.source.value;
|
|
127
119
|
if (!isSupportedImportSource(importSource)) {
|
|
128
120
|
return;
|
|
@@ -168,7 +160,7 @@ var rule = exports.rule = (0, _createRule.createLintRule)({
|
|
|
168
160
|
}, fix);
|
|
169
161
|
})
|
|
170
162
|
});
|
|
171
|
-
}
|
|
163
|
+
}
|
|
172
164
|
};
|
|
173
165
|
}
|
|
174
166
|
});
|
|
@@ -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::330ecd53e03bf78708580ddcfb206876>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -35,12 +35,6 @@ export default {
|
|
|
35
35
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
36
36
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
37
37
|
}],
|
|
38
|
-
'@atlaskit/design-system/no-exported-css': ['error', {
|
|
39
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
40
|
-
}],
|
|
41
|
-
'@atlaskit/design-system/no-exported-keyframes': ['error', {
|
|
42
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
|
-
}],
|
|
44
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
40
|
}]
|
|
@@ -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::330ecd53e03bf78708580ddcfb206876>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -35,12 +35,6 @@ export default {
|
|
|
35
35
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
36
36
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
37
37
|
}],
|
|
38
|
-
'@atlaskit/design-system/no-exported-css': ['error', {
|
|
39
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
40
|
-
}],
|
|
41
|
-
'@atlaskit/design-system/no-exported-keyframes': ['error', {
|
|
42
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
|
-
}],
|
|
44
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
40
|
}]
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { getRuleUrl } from './utils/create-rule';
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* External rules must be scoped, have a display name, and external urls.
|
|
5
|
+
*/
|
|
4
6
|
|
|
5
7
|
const importSources = ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components'];
|
|
6
8
|
export const externalRules = [{
|
|
@@ -95,34 +97,6 @@ export const externalRules = [{
|
|
|
95
97
|
importSources
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
|
-
}, {
|
|
99
|
-
name: '@atlaskit/design-system/no-exported-css',
|
|
100
|
-
displayName: 'no-exported-css',
|
|
101
|
-
isExternal: true,
|
|
102
|
-
docs: {
|
|
103
|
-
description: 'Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
104
|
-
url: getRuleUrl('no-exported-css'),
|
|
105
|
-
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-css/usage',
|
|
106
|
-
recommended: true,
|
|
107
|
-
severity: 'error',
|
|
108
|
-
pluginConfig: {
|
|
109
|
-
importSources
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
name: '@atlaskit/design-system/no-exported-keyframes',
|
|
114
|
-
displayName: 'no-exported-keyframes',
|
|
115
|
-
isExternal: true,
|
|
116
|
-
docs: {
|
|
117
|
-
description: 'Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable.',
|
|
118
|
-
url: getRuleUrl('no-exported-keyframes'),
|
|
119
|
-
externalUrl: 'https://atlassian.design/components/eslint-plugin-design-system/no-exported-keyframes/usage',
|
|
120
|
-
recommended: true,
|
|
121
|
-
severity: 'error',
|
|
122
|
-
pluginConfig: {
|
|
123
|
-
importSources
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
100
|
}, {
|
|
127
101
|
name: '@atlaskit/design-system/no-invalid-css-map',
|
|
128
102
|
displayName: 'no-invalid-css-map',
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Exporting this so it isn't considered unused.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
const cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition'];
|
|
10
|
+
const cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker'];
|
|
11
11
|
export const allowedPseudos = new Set(
|
|
12
12
|
/**
|
|
13
13
|
* The `&` is included above for type checking reasons,
|
|
@@ -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::330ecd53e03bf78708580ddcfb206876>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -35,12 +35,6 @@ export default {
|
|
|
35
35
|
'@atlaskit/design-system/no-empty-styled-expression': ['error', {
|
|
36
36
|
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
37
37
|
}],
|
|
38
|
-
'@atlaskit/design-system/no-exported-css': ['error', {
|
|
39
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
40
|
-
}],
|
|
41
|
-
'@atlaskit/design-system/no-exported-keyframes': ['error', {
|
|
42
|
-
importSources: ['@compiled/react', '@atlaskit/css', '@emotion/core', '@emotion/react', '@emotion/styled', 'styled-components']
|
|
43
|
-
}],
|
|
44
38
|
'@atlaskit/design-system/no-invalid-css-map': ['error', {
|
|
45
39
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
46
40
|
}]
|