@atlaskit/eslint-plugin-ui-styling-standard 0.20.1 → 1.0.0
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 +23 -0
- package/README.md +2 -5
- package/dist/cjs/index.codegen.js +45 -10
- package/dist/cjs/index.js +22 -1
- package/dist/cjs/presets/all-flat.codegen.js +53 -0
- package/dist/cjs/presets/all.codegen.js +2 -9
- package/dist/cjs/presets/recommended-flat.codegen.js +53 -0
- package/dist/cjs/presets/recommended.codegen.js +2 -9
- package/dist/cjs/rules/enforce-style-prop/index.js +45 -17
- package/dist/cjs/rules/external-rules.js +0 -38
- package/dist/cjs/rules/index.codegen.js +4 -3
- package/dist/es2019/index.codegen.js +50 -6
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/presets/all-flat.codegen.js +44 -0
- package/dist/es2019/presets/all.codegen.js +2 -9
- package/dist/es2019/presets/recommended-flat.codegen.js +44 -0
- package/dist/es2019/presets/recommended.codegen.js +2 -9
- package/dist/es2019/rules/enforce-style-prop/index.js +45 -17
- package/dist/es2019/rules/external-rules.js +0 -38
- package/dist/es2019/rules/index.codegen.js +2 -2
- package/dist/esm/index.codegen.js +46 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/presets/all-flat.codegen.js +44 -0
- package/dist/esm/presets/all.codegen.js +2 -9
- package/dist/esm/presets/recommended-flat.codegen.js +44 -0
- package/dist/esm/presets/recommended.codegen.js +2 -9
- package/dist/esm/rules/enforce-style-prop/index.js +45 -17
- package/dist/esm/rules/external-rules.js +0 -38
- package/dist/esm/rules/index.codegen.js +2 -2
- package/dist/types/index.codegen.d.ts +370 -81
- package/dist/types/index.d.ts +1 -1
- package/dist/types/presets/all-flat.codegen.d.ts +44 -0
- package/dist/types/presets/all.codegen.d.ts +33 -40
- package/dist/types/presets/recommended-flat.codegen.d.ts +44 -0
- package/dist/types/presets/recommended.codegen.d.ts +33 -40
- package/dist/types/rules/index.codegen.d.ts +1 -2
- package/dist/types-ts4.5/index.codegen.d.ts +550 -81
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +65 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +57 -40
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +65 -0
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +57 -40
- package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -2
- package/package.json +11 -5
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
|
+
*/
|
|
6
|
+
import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
|
|
7
|
+
declare const _default: {
|
|
8
|
+
readonly plugins: {
|
|
9
|
+
readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
|
|
10
|
+
};
|
|
11
|
+
readonly rules: {
|
|
12
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
13
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
14
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
15
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
16
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
17
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
18
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
19
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
20
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
21
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
22
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
23
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
24
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
25
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
26
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
27
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
28
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
29
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
30
|
+
readonly excludeReactComponents: true;
|
|
31
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
32
|
+
}];
|
|
33
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
34
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
35
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
36
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
37
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
38
|
+
}];
|
|
39
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
40
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
41
|
+
}];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
@@ -1,48 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
7
|
-
plugins:
|
|
8
|
-
rules: {
|
|
9
|
-
'@atlaskit/ui-styling-standard/atlaskit-theme':
|
|
10
|
-
'@atlaskit/ui-styling-standard/convert-props-syntax':
|
|
11
|
-
'@atlaskit/ui-styling-standard/enforce-style-prop':
|
|
12
|
-
'@atlaskit/ui-styling-standard/local-cx-xcss':
|
|
13
|
-
'@atlaskit/ui-styling-standard/no-array-arguments':
|
|
14
|
-
'@atlaskit/ui-styling-standard/no-classname-prop':
|
|
15
|
-
'@atlaskit/ui-styling-standard/no-container-queries':
|
|
16
|
-
'@atlaskit/ui-styling-standard/no-dynamic-styles':
|
|
17
|
-
'@atlaskit/ui-styling-standard/no-exported-styles':
|
|
18
|
-
'@atlaskit/ui-styling-standard/no-global-styles':
|
|
19
|
-
'@atlaskit/ui-styling-standard/no-important-styles':
|
|
20
|
-
'@atlaskit/ui-styling-standard/no-imported-style-values':
|
|
21
|
-
'@atlaskit/ui-styling-standard/no-nested-selectors':
|
|
22
|
-
'@atlaskit/ui-styling-standard/no-styled':
|
|
23
|
-
'@atlaskit/ui-styling-standard/no-unsafe-selectors':
|
|
24
|
-
'@atlaskit/ui-styling-standard/no-unsafe-values':
|
|
25
|
-
'@atlaskit/ui-styling-standard/use-compiled':
|
|
26
|
-
'@atlaskit/design-system/consistent-css-prop-usage':
|
|
27
|
-
excludeReactComponents:
|
|
28
|
-
shouldAlwaysCheckXcss:
|
|
29
|
-
}
|
|
30
|
-
'@atlaskit/design-system/no-css-tagged-template-expression':
|
|
31
|
-
'@atlaskit/design-system/no-keyframes-tagged-template-expression':
|
|
32
|
-
'@atlaskit/design-system/no-styled-tagged-template-expression':
|
|
33
|
-
'@
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
allowedFunctionCalls: string[][];
|
|
40
|
-
})[];
|
|
41
|
-
'@compiled/jsx-pragma': (string | {
|
|
42
|
-
runtime: string;
|
|
43
|
-
onlyRunIfImportingCompiled: boolean;
|
|
44
|
-
importSources: string[];
|
|
45
|
-
})[];
|
|
7
|
+
readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system"];
|
|
8
|
+
readonly rules: {
|
|
9
|
+
readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
|
|
10
|
+
readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
|
|
11
|
+
readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
|
|
12
|
+
readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
|
|
13
|
+
readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
|
|
14
|
+
readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
|
|
15
|
+
readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
|
|
16
|
+
readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
|
|
17
|
+
readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
|
|
18
|
+
readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
|
|
19
|
+
readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
|
|
20
|
+
readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
|
|
21
|
+
readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
|
|
22
|
+
readonly '@atlaskit/ui-styling-standard/no-styled': "error";
|
|
23
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
|
|
24
|
+
readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
|
|
25
|
+
readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
|
|
26
|
+
readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
|
|
27
|
+
readonly excludeReactComponents: true;
|
|
28
|
+
readonly shouldAlwaysCheckXcss: true;
|
|
29
|
+
}];
|
|
30
|
+
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
31
|
+
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
32
|
+
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
33
|
+
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
34
|
+
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
35
|
+
}];
|
|
36
|
+
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
37
|
+
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
38
|
+
}];
|
|
46
39
|
};
|
|
47
40
|
};
|
|
48
41
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const rules: {
|
|
2
2
|
'atlaskit-theme': import("eslint").Rule.RuleModule;
|
|
3
3
|
'convert-props-syntax': import("eslint").Rule.RuleModule;
|
|
4
4
|
'enforce-style-prop': import("eslint").Rule.RuleModule;
|
|
@@ -17,4 +17,3 @@ declare const _default: {
|
|
|
17
17
|
'no-unsafe-values': import("eslint").Rule.RuleModule;
|
|
18
18
|
'use-compiled': import("eslint").Rule.RuleModule;
|
|
19
19
|
};
|
|
20
|
-
export default _default;
|