@atlaskit/eslint-plugin-ui-styling-standard 1.4.4 → 1.4.6
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 +14 -5
- package/dist/cjs/index.codegen.js +3 -3
- package/dist/cjs/presets/all-flat.codegen.js +5 -3
- package/dist/cjs/presets/all.codegen.js +5 -3
- package/dist/cjs/presets/recommended-flat.codegen.js +5 -3
- package/dist/cjs/presets/recommended.codegen.js +5 -3
- package/dist/cjs/rules/index.codegen.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/es2019/index.codegen.js +4 -5
- package/dist/es2019/presets/all-flat.codegen.js +5 -3
- package/dist/es2019/presets/all.codegen.js +5 -3
- package/dist/es2019/presets/recommended-flat.codegen.js +5 -3
- package/dist/es2019/presets/recommended.codegen.js +5 -3
- package/dist/es2019/rules/index.codegen.js +2 -1
- package/dist/es2019/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/esm/index.codegen.js +4 -4
- package/dist/esm/presets/all-flat.codegen.js +5 -3
- package/dist/esm/presets/all.codegen.js +5 -3
- package/dist/esm/presets/recommended-flat.codegen.js +5 -3
- package/dist/esm/presets/recommended.codegen.js +5 -3
- package/dist/esm/rules/index.codegen.js +2 -1
- package/dist/esm/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/types/index.codegen.d.ts +9 -718
- package/dist/types/presets/all-flat.codegen.d.ts +4 -40
- package/dist/types/presets/all.codegen.d.ts +4 -37
- package/dist/types/presets/recommended-flat.codegen.d.ts +4 -40
- package/dist/types/presets/recommended.codegen.d.ts +4 -37
- package/dist/types/rules/index.codegen.d.ts +7 -19
- package/dist/types/rules/utils/create-rule.d.ts +3 -1
- package/dist/types-ts4.5/index.codegen.d.ts +9 -1078
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/all.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +4 -61
- package/dist/types-ts4.5/rules/index.codegen.d.ts +7 -19
- package/dist/types-ts4.5/rules/utils/create-rule.d.ts +3 -1
- package/package.json +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) -
|
|
8
|
+
Internal refactors to remove unused variables. No functional or public changes.
|
|
9
|
+
|
|
10
|
+
## 1.4.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`74c2f420ee49b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/74c2f420ee49b) -
|
|
15
|
+
Internal changes to how border radius is applied.
|
|
16
|
+
|
|
3
17
|
## 1.4.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -345,7 +359,6 @@
|
|
|
345
359
|
- [#99544](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99544)
|
|
346
360
|
[`391edf6de450`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391edf6de450) -
|
|
347
361
|
Added `no-global-styles` rule which prevents:
|
|
348
|
-
|
|
349
362
|
- The `Global` API from `@emotion`
|
|
350
363
|
- The `createGlobalStyle` and `injectGlobal` APIs from `styled-components`
|
|
351
364
|
- `<style>` elements in JSX
|
|
@@ -530,7 +543,6 @@
|
|
|
530
543
|
functions will no longer be required to end with "Styles".
|
|
531
544
|
|
|
532
545
|
[BREAKING] Some rule options have been changed:
|
|
533
|
-
|
|
534
546
|
- `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that
|
|
535
547
|
enforces variable names.
|
|
536
548
|
- If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
|
|
@@ -627,7 +639,6 @@
|
|
|
627
639
|
- [#74981](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74981)
|
|
628
640
|
[`842300de03a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/842300de03a1) -
|
|
629
641
|
Add the following rules:
|
|
630
|
-
|
|
631
642
|
- `consistent-css-prop-usage`: Ensures consistency with `css` and `xcss` prop usages
|
|
632
643
|
- `no-empty-styled-expression`: Forbids any styled expression to be used when passing empty
|
|
633
644
|
arguments to styled.div() (or other JSX elements).
|
|
@@ -638,7 +649,6 @@
|
|
|
638
649
|
- [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983)
|
|
639
650
|
[`878065bfc4c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/878065bfc4c0) -
|
|
640
651
|
Adds the following rules to the recommended preset:
|
|
641
|
-
|
|
642
652
|
- `@atlaskit/design-system/no-css-tagged-template-expression`
|
|
643
653
|
- `@atlaskit/design-system/no-keyframes-tagged-template-expression`
|
|
644
654
|
- `@atlaskit/design-system/no-styled-tagged-template-expression`
|
|
@@ -664,7 +674,6 @@
|
|
|
664
674
|
- [#69723](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69723)
|
|
665
675
|
[`06cd0f04fefb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06cd0f04fefb) -
|
|
666
676
|
Adds the following rules to the recommended config:
|
|
667
|
-
|
|
668
677
|
- `local-cx-xcss` - Ensures the `cx()` function is only used within the `xcss` prop
|
|
669
678
|
- `no-supress-xcss` - Disallows supressing type violations when using the `xcss` prop
|
|
670
679
|
- `no-js-xcss` - Disallows using `xcss` prop inside JavaScript files
|
|
@@ -20,7 +20,7 @@ var _index = require("./rules/index.codegen");
|
|
|
20
20
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
21
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
22
22
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
23
|
-
* @codegen <<SignedSource::
|
|
23
|
+
* @codegen <<SignedSource::93c84481278f52fc66ecbba80094e6e5>>
|
|
24
24
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
25
25
|
*/
|
|
26
26
|
// this uses require because not all node versions this package supports use the same import assertions/attributes
|
|
@@ -56,6 +56,6 @@ var plugin = exports.plugin = {
|
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
var configs = exports.configs = plugin.configs
|
|
60
|
-
|
|
59
|
+
var configs = exports.configs = plugin.configs;
|
|
60
|
+
var meta = exports.meta = plugin.meta;
|
|
61
61
|
var _default = exports.default = plugin;
|
|
@@ -9,10 +9,11 @@ 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::a031ffa483e224bf49a4e9eec39acb69>>
|
|
13
13
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var config = {
|
|
16
17
|
plugins: {
|
|
17
18
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
18
19
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -49,4 +50,5 @@ var _default = exports.default = {
|
|
|
49
50
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
50
51
|
}]
|
|
51
52
|
}
|
|
52
|
-
};
|
|
53
|
+
};
|
|
54
|
+
var _default = exports.default = config;
|
|
@@ -6,10 +6,11 @@ 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::778759f32da9fc9b6d182dba1b796640>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
var config = {
|
|
13
14
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
14
15
|
rules: {
|
|
15
16
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -43,4 +44,5 @@ var _default = exports.default = {
|
|
|
43
44
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
45
|
}]
|
|
45
46
|
}
|
|
46
|
-
};
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = config;
|
|
@@ -9,10 +9,11 @@ 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::a031ffa483e224bf49a4e9eec39acb69>>
|
|
13
13
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var config = {
|
|
16
17
|
plugins: {
|
|
17
18
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
18
19
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -49,4 +50,5 @@ var _default = exports.default = {
|
|
|
49
50
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
50
51
|
}]
|
|
51
52
|
}
|
|
52
|
-
};
|
|
53
|
+
};
|
|
54
|
+
var _default = exports.default = config;
|
|
@@ -6,10 +6,11 @@ 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::778759f32da9fc9b6d182dba1b796640>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
var config = {
|
|
13
14
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
14
15
|
rules: {
|
|
15
16
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -43,4 +44,5 @@ var _default = exports.default = {
|
|
|
43
44
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
44
45
|
}]
|
|
45
46
|
}
|
|
46
|
-
};
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = config;
|
|
@@ -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::
|
|
27
|
+
* @codegen <<SignedSource::34a66bfc786bfa49ea7d4ad66ffe81f7>>
|
|
28
28
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
29
29
|
*/
|
|
30
30
|
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.lintSelector = lintSelector;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
|
-
var _constants = require("./constants");
|
|
11
10
|
var _postcssSelectorParser = require("postcss-selector-parser");
|
|
11
|
+
var _constants = require("./constants");
|
|
12
12
|
var _sourcePositionUtils = require("./source-position-utils");
|
|
13
13
|
function lintSelector(args) {
|
|
14
14
|
checkNoAmbiguousPseudos(args);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::93c84481278f52fc66ecbba80094e6e5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import allFlat from './presets/all-flat.codegen';
|
|
7
8
|
import all from './presets/all.codegen';
|
|
8
9
|
import recommendedFlat from './presets/recommended-flat.codegen';
|
|
@@ -49,8 +50,6 @@ export const plugin = {
|
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
52
|
export { rules } from './rules/index.codegen';
|
|
52
|
-
export const
|
|
53
|
-
|
|
54
|
-
meta
|
|
55
|
-
} = plugin;
|
|
53
|
+
export const configs = plugin.configs;
|
|
54
|
+
export const meta = plugin.meta;
|
|
56
55
|
export default plugin;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
|
|
8
|
+
const config = {
|
|
8
9
|
plugins: {
|
|
9
10
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
10
11
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -41,4 +42,5 @@ export default {
|
|
|
41
42
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
42
43
|
}]
|
|
43
44
|
}
|
|
44
|
-
};
|
|
45
|
+
};
|
|
46
|
+
export default config;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
7
8
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
9
|
rules: {
|
|
9
10
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -37,4 +38,5 @@ export default {
|
|
|
37
38
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
38
39
|
}]
|
|
39
40
|
}
|
|
40
|
-
};
|
|
41
|
+
};
|
|
42
|
+
export default config;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
|
|
8
|
+
const config = {
|
|
8
9
|
plugins: {
|
|
9
10
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
10
11
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -41,4 +42,5 @@ export default {
|
|
|
41
42
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
42
43
|
}]
|
|
43
44
|
}
|
|
44
|
-
};
|
|
45
|
+
};
|
|
46
|
+
export default config;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
const config = {
|
|
7
8
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
9
|
rules: {
|
|
9
10
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -37,4 +38,5 @@ export default {
|
|
|
37
38
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
38
39
|
}]
|
|
39
40
|
}
|
|
40
|
-
};
|
|
41
|
+
};
|
|
42
|
+
export default config;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::34a66bfc786bfa49ea7d4ad66ffe81f7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import atlaskitTheme from './atlaskit-theme';
|
|
7
8
|
import convertPropsSyntax from './convert-props-syntax';
|
|
8
9
|
import enforceStyleProp from './enforce-style-prop';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { allowedPseudos, legacyPseudoElements } from './constants';
|
|
2
1
|
import { isNesting } from 'postcss-selector-parser';
|
|
2
|
+
import { allowedPseudos, legacyPseudoElements } from './constants';
|
|
3
3
|
import { getRangeFromNode, getSourceLocationFromRange } from './source-position-utils';
|
|
4
4
|
export function lintSelector(args) {
|
|
5
5
|
checkNoAmbiguousPseudos(args);
|
|
@@ -3,9 +3,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
/**
|
|
5
5
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::93c84481278f52fc66ecbba80094e6e5>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
8
8
|
*/
|
|
9
|
+
|
|
9
10
|
import allFlat from './presets/all-flat.codegen';
|
|
10
11
|
import all from './presets/all.codegen';
|
|
11
12
|
import recommendedFlat from './presets/recommended-flat.codegen';
|
|
@@ -46,7 +47,6 @@ export var plugin = {
|
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
export { rules } from './rules/index.codegen';
|
|
49
|
-
var configs = plugin.configs
|
|
50
|
-
|
|
51
|
-
export { configs, meta };
|
|
50
|
+
export var configs = plugin.configs;
|
|
51
|
+
export var meta = plugin.meta;
|
|
52
52
|
export default plugin;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
|
|
8
|
+
var config = {
|
|
8
9
|
plugins: {
|
|
9
10
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
10
11
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -41,4 +42,5 @@ export default {
|
|
|
41
42
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
42
43
|
}]
|
|
43
44
|
}
|
|
44
|
-
};
|
|
45
|
+
};
|
|
46
|
+
export default config;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
var config = {
|
|
7
8
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
9
|
rules: {
|
|
9
10
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -37,4 +38,5 @@ export default {
|
|
|
37
38
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
38
39
|
}]
|
|
39
40
|
}
|
|
40
|
-
};
|
|
41
|
+
};
|
|
42
|
+
export default config;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
-
|
|
8
|
+
var config = {
|
|
8
9
|
plugins: {
|
|
9
10
|
// NOTE: The reference to this plugin is inserted dynamically while creating the plugin in `index.codegen.tsx`
|
|
10
11
|
'@atlaskit/design-system': atlaskitDesignSystemPlugin
|
|
@@ -41,4 +42,5 @@ export default {
|
|
|
41
42
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
42
43
|
}]
|
|
43
44
|
}
|
|
44
|
-
};
|
|
45
|
+
};
|
|
46
|
+
export default config;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
var config = {
|
|
7
8
|
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system'],
|
|
8
9
|
rules: {
|
|
9
10
|
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
@@ -37,4 +38,5 @@ export default {
|
|
|
37
38
|
allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
|
|
38
39
|
}]
|
|
39
40
|
}
|
|
40
|
-
};
|
|
41
|
+
};
|
|
42
|
+
export default config;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::34a66bfc786bfa49ea7d4ad66ffe81f7>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
+
|
|
6
7
|
import atlaskitTheme from './atlaskit-theme';
|
|
7
8
|
import convertPropsSyntax from './convert-props-syntax';
|
|
8
9
|
import enforceStyleProp from './enforce-style-prop';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { allowedPseudos, legacyPseudoElements } from './constants';
|
|
4
3
|
import { isNesting } from 'postcss-selector-parser';
|
|
4
|
+
import { allowedPseudos, legacyPseudoElements } from './constants';
|
|
5
5
|
import { getRangeFromNode, getSourceLocationFromRange } from './source-position-utils';
|
|
6
6
|
export function lintSelector(args) {
|
|
7
7
|
checkNoAmbiguousPseudos(args);
|