@atlaskit/eslint-plugin-ui-styling-standard 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +180 -172
- package/constellation/atlaskit-theme/usage.mdx +17 -17
- package/constellation/convert-props-syntax/usage.mdx +14 -14
- package/constellation/enforce-style-prop/usage.mdx +17 -17
- package/constellation/index/overview.mdx +70 -70
- package/constellation/local-cx-xcss/usage.mdx +4 -4
- package/constellation/no-array-arguments/usage.mdx +7 -7
- package/constellation/no-container-queries/usage.mdx +14 -14
- package/constellation/no-dynamic-styles/usage.mdx +19 -19
- package/constellation/no-exported-styles/usage.mdx +15 -15
- package/constellation/no-global-styles/usage.mdx +13 -13
- package/constellation/no-important-styles/usage.mdx +2 -2
- package/constellation/no-imported-style-values/usage.mdx +16 -16
- package/constellation/no-nested-selectors/usage.mdx +18 -18
- package/constellation/no-styled/usage.mdx +6 -6
- package/constellation/no-unsafe-selectors/usage.mdx +90 -90
- package/constellation/no-unsafe-values/usage.mdx +33 -33
- package/dist/cjs/index.codegen.js +1 -1
- package/dist/cjs/presets/all.codegen.js +1 -1
- package/dist/cjs/presets/recommended.codegen.js +1 -1
- package/dist/cjs/rules/index.codegen.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/es2019/index.codegen.js +1 -1
- package/dist/es2019/presets/all.codegen.js +1 -1
- package/dist/es2019/presets/recommended.codegen.js +1 -1
- package/dist/es2019/rules/index.codegen.js +1 -1
- package/dist/es2019/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/esm/index.codegen.js +1 -1
- package/dist/esm/presets/all.codegen.js +1 -1
- package/dist/esm/presets/recommended.codegen.js +1 -1
- package/dist/esm/rules/index.codegen.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/index.js +4 -1
- package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +10 -1
- package/dist/types/presets/all.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +1 -1
- package/dist/types/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
- package/dist/types-ts4.5/rules/no-unsafe-selectors/lint-selector.d.ts +1 -0
- package/package.json +2 -4
- package/src/index.codegen.tsx +3 -3
- package/src/presets/all.codegen.tsx +70 -73
- package/src/presets/recommended.codegen.tsx +70 -73
- package/src/rules/index.codegen.tsx +18 -18
- package/src/rules/no-unsafe-selectors/__tests__/no-ambiguous-pseudos.test.tsx +211 -201
- package/src/rules/no-unsafe-selectors/index.tsx +174 -177
- package/src/rules/no-unsafe-selectors/lint-selector.tsx +128 -141
- package/tsconfig.app.json +45 -45
- package/tsconfig.dev.json +43 -43
|
@@ -1,79 +1,76 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f240d1cd5b93827327b66c28ad47e698>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{ allowedFunctionCalls: [['@atlaskit/tokens', 'token']] },
|
|
77
|
-
],
|
|
78
|
-
},
|
|
7
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
|
|
8
|
+
rules: {
|
|
9
|
+
'@atlaskit/ui-styling-standard/atlaskit-theme': 'error',
|
|
10
|
+
'@atlaskit/ui-styling-standard/convert-props-syntax': 'error',
|
|
11
|
+
'@atlaskit/ui-styling-standard/enforce-style-prop': 'warn',
|
|
12
|
+
'@atlaskit/ui-styling-standard/local-cx-xcss': 'warn',
|
|
13
|
+
'@atlaskit/ui-styling-standard/no-array-arguments': 'warn',
|
|
14
|
+
'@atlaskit/ui-styling-standard/no-classname-prop': 'warn',
|
|
15
|
+
'@atlaskit/ui-styling-standard/no-container-queries': 'warn',
|
|
16
|
+
'@atlaskit/ui-styling-standard/no-dynamic-styles': 'warn',
|
|
17
|
+
'@atlaskit/ui-styling-standard/no-exported-styles': 'warn',
|
|
18
|
+
'@atlaskit/ui-styling-standard/no-global-styles': 'warn',
|
|
19
|
+
'@atlaskit/ui-styling-standard/no-important-styles': 'warn',
|
|
20
|
+
'@atlaskit/ui-styling-standard/no-imported-style-values': 'warn',
|
|
21
|
+
'@atlaskit/ui-styling-standard/no-nested-selectors': 'warn',
|
|
22
|
+
'@atlaskit/ui-styling-standard/no-styled': 'warn',
|
|
23
|
+
'@atlaskit/ui-styling-standard/no-unsafe-selectors': 'warn',
|
|
24
|
+
'@atlaskit/ui-styling-standard/no-unsafe-values': 'warn',
|
|
25
|
+
'@atlaskit/ui-styling-standard/use-compiled': 'warn',
|
|
26
|
+
'@atlaskit/design-system/consistent-css-prop-usage': ['warn', { excludeReactComponents: true }],
|
|
27
|
+
'@atlaskit/design-system/no-css-tagged-template-expression': 'warn',
|
|
28
|
+
'@atlaskit/design-system/no-keyframes-tagged-template-expression': 'warn',
|
|
29
|
+
'@atlaskit/design-system/no-styled-tagged-template-expression': 'warn',
|
|
30
|
+
'@compiled/no-suppress-xcss': 'warn',
|
|
31
|
+
'@compiled/no-js-xcss': 'warn',
|
|
32
|
+
'@atlaskit/design-system/no-empty-styled-expression': [
|
|
33
|
+
'warn',
|
|
34
|
+
{
|
|
35
|
+
importSources: [
|
|
36
|
+
'@compiled/react',
|
|
37
|
+
'@atlaskit/css',
|
|
38
|
+
'@emotion/core',
|
|
39
|
+
'@emotion/react',
|
|
40
|
+
'@emotion/styled',
|
|
41
|
+
'styled-components',
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
'@atlaskit/design-system/no-exported-css': [
|
|
46
|
+
'warn',
|
|
47
|
+
{
|
|
48
|
+
importSources: [
|
|
49
|
+
'@compiled/react',
|
|
50
|
+
'@atlaskit/css',
|
|
51
|
+
'@emotion/core',
|
|
52
|
+
'@emotion/react',
|
|
53
|
+
'@emotion/styled',
|
|
54
|
+
'styled-components',
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
'@atlaskit/design-system/no-exported-keyframes': [
|
|
59
|
+
'warn',
|
|
60
|
+
{
|
|
61
|
+
importSources: [
|
|
62
|
+
'@compiled/react',
|
|
63
|
+
'@atlaskit/css',
|
|
64
|
+
'@emotion/core',
|
|
65
|
+
'@emotion/react',
|
|
66
|
+
'@emotion/styled',
|
|
67
|
+
'styled-components',
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
'@atlaskit/design-system/no-invalid-css-map': [
|
|
72
|
+
'warn',
|
|
73
|
+
{ allowedFunctionCalls: [['@atlaskit/tokens', 'token']] },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
79
76
|
};
|
|
@@ -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::6ad0de2d4bdac726387f27681ad9fcf4>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
import atlaskitTheme from './atlaskit-theme';
|
|
@@ -22,21 +22,21 @@ import noUnsafeValues from './no-unsafe-values';
|
|
|
22
22
|
import useCompiled from './use-compiled';
|
|
23
23
|
|
|
24
24
|
export default {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
25
|
+
'atlaskit-theme': atlaskitTheme,
|
|
26
|
+
'convert-props-syntax': convertPropsSyntax,
|
|
27
|
+
'enforce-style-prop': enforceStyleProp,
|
|
28
|
+
'local-cx-xcss': localCxXcss,
|
|
29
|
+
'no-array-arguments': noArrayArguments,
|
|
30
|
+
'no-classname-prop': noClassnameProp,
|
|
31
|
+
'no-container-queries': noContainerQueries,
|
|
32
|
+
'no-dynamic-styles': noDynamicStyles,
|
|
33
|
+
'no-exported-styles': noExportedStyles,
|
|
34
|
+
'no-global-styles': noGlobalStyles,
|
|
35
|
+
'no-important-styles': noImportantStyles,
|
|
36
|
+
'no-imported-style-values': noImportedStyleValues,
|
|
37
|
+
'no-nested-selectors': noNestedSelectors,
|
|
38
|
+
'no-styled': noStyled,
|
|
39
|
+
'no-unsafe-selectors': noUnsafeSelectors,
|
|
40
|
+
'no-unsafe-values': noUnsafeValues,
|
|
41
|
+
'use-compiled': useCompiled,
|
|
42
42
|
};
|