@atlaskit/eslint-plugin-ui-styling-standard 1.6.0 → 1.6.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 +17 -0
- package/dist/cjs/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/es2019/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/esm/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/types/rules/no-unsafe-selectors/constants.d.ts +1 -1
- package/dist/types/rules/no-unsafe-values/utils.d.ts +2 -2
- package/dist/types-ts4.5/rules/no-unsafe-selectors/constants.d.ts +17 -1
- package/dist/types-ts4.5/rules/no-unsafe-values/utils.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2c00950ad9e0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c00950ad9e0b) -
|
|
8
|
+
Align no-unsafe-selectors allowed pseudos with @compiled/react CSSPseudos: add &:popover-open and
|
|
9
|
+
chained pseudos (e.g. &:hover::after, &:focus::before, &:visited:focus) so the constants tuple
|
|
10
|
+
type-checks. Rule behavior unchanged; only type-sync with the platform.
|
|
11
|
+
|
|
12
|
+
## 1.6.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`000d0a2d3aca2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/000d0a2d3aca2) -
|
|
17
|
+
Remove non-erasable syntax (e.g. enums, namespaces with runtime code) from package
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 1.6.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -13,7 +13,9 @@ 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', '&::-webkit-details-marker'
|
|
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', '&:popover-open', '&: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
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
18
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
17
19
|
var allowedPseudos = exports.allowedPseudos = new Set(
|
|
18
20
|
/**
|
|
19
21
|
* The `&` is included above for type checking reasons,
|
|
@@ -7,7 +7,9 @@
|
|
|
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', '&::-webkit-details-marker'
|
|
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', '&:popover-open', '&: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
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
12
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
11
13
|
export const allowedPseudos = new Set(
|
|
12
14
|
/**
|
|
13
15
|
* The `&` is included above for type checking reasons,
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* Exporting this so it isn't considered unused.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
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'
|
|
10
|
+
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', '&:popover-open', '&: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
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
12
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
11
13
|
export var allowedPseudos = new Set(
|
|
12
14
|
/**
|
|
13
15
|
* The `&` is included above for type checking reasons,
|
|
@@ -13,7 +13,7 @@ type HasAllUnique<Tuple, Union, Seen = never> = Tuple extends readonly [infer He
|
|
|
13
13
|
* Exporting this so it isn't considered unused.
|
|
14
14
|
*/
|
|
15
15
|
export type _ = Validate<HasAllUnique<typeof cssPseudos, CSSPseudos>>;
|
|
16
|
-
declare const cssPseudos: readonly ["&: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"];
|
|
16
|
+
declare const cssPseudos: readonly ["&: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", "&:popover-open", "&: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", "&:active:visited", "&:focus:not(:focus-visible)", "&:focus::after", "&:focus::before", "&:focus-visible::after", "&:focus-visible::before", "&:focus-within::after", "&:focus-within::before", "&:hover::after", "&:hover::before", "&:visited:active", "&:visited:hover", "&:visited:focus", "&:visited:focus-visible", "&:visited:focus-within"];
|
|
17
17
|
export declare const allowedPseudos: Set<string>;
|
|
18
18
|
export declare const legacyPseudoElements: Set<string>;
|
|
19
19
|
export declare const ignoredAtRules: Set<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Rule } from 'eslint';
|
|
2
2
|
import type { CallExpression } from 'estree-jsx';
|
|
3
3
|
export declare class Linter {
|
|
4
|
-
private readonly context;
|
|
5
|
-
private readonly baseNode;
|
|
6
4
|
private readonly allowedDynamicKeys;
|
|
7
5
|
private readonly allowedFunctionCalls;
|
|
6
|
+
private readonly context;
|
|
7
|
+
private readonly baseNode;
|
|
8
8
|
constructor(context: Rule.RuleContext, baseNode: CallExpression);
|
|
9
9
|
/**
|
|
10
10
|
* Wrapper around `context.report` to provide type checking on the message ID.
|
|
@@ -54,6 +54,7 @@ declare const cssPseudos: readonly [
|
|
|
54
54
|
"&:picture-in-picture",
|
|
55
55
|
"&:placeholder-shown",
|
|
56
56
|
"&:playing",
|
|
57
|
+
"&:popover-open",
|
|
57
58
|
"&:read-only",
|
|
58
59
|
"&:read-write",
|
|
59
60
|
"&:required",
|
|
@@ -77,7 +78,22 @@ declare const cssPseudos: readonly [
|
|
|
77
78
|
"&::spelling-error",
|
|
78
79
|
"&::target-text",
|
|
79
80
|
"&::view-transition",
|
|
80
|
-
"&::-webkit-details-marker"
|
|
81
|
+
"&::-webkit-details-marker",
|
|
82
|
+
"&:active:visited",
|
|
83
|
+
"&:focus:not(:focus-visible)",
|
|
84
|
+
"&:focus::after",
|
|
85
|
+
"&:focus::before",
|
|
86
|
+
"&:focus-visible::after",
|
|
87
|
+
"&:focus-visible::before",
|
|
88
|
+
"&:focus-within::after",
|
|
89
|
+
"&:focus-within::before",
|
|
90
|
+
"&:hover::after",
|
|
91
|
+
"&:hover::before",
|
|
92
|
+
"&:visited:active",
|
|
93
|
+
"&:visited:hover",
|
|
94
|
+
"&:visited:focus",
|
|
95
|
+
"&:visited:focus-visible",
|
|
96
|
+
"&:visited:focus-within"
|
|
81
97
|
];
|
|
82
98
|
export declare const allowedPseudos: Set<string>;
|
|
83
99
|
export declare const legacyPseudoElements: Set<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Rule } from 'eslint';
|
|
2
2
|
import type { CallExpression } from 'estree-jsx';
|
|
3
3
|
export declare class Linter {
|
|
4
|
-
private readonly context;
|
|
5
|
-
private readonly baseNode;
|
|
6
4
|
private readonly allowedDynamicKeys;
|
|
7
5
|
private readonly allowedFunctionCalls;
|
|
6
|
+
private readonly context;
|
|
7
|
+
private readonly baseNode;
|
|
8
8
|
constructor(context: Rule.RuleContext, baseNode: CallExpression);
|
|
9
9
|
/**
|
|
10
10
|
* Wrapper around `context.report` to provide type checking on the message ID.
|
package/package.json
CHANGED