@atlaskit/eslint-plugin-ui-styling-standard 0.1.0 → 0.2.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 +16 -0
- package/README.md +8 -0
- package/afm-cc/tsconfig.json +21 -0
- package/dist/cjs/index.js +5 -2
- package/dist/es2019/index.js +5 -2
- package/dist/esm/index.js +5 -2
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types-ts4.5/src/index.d.ts +3 -0
- package/package.json +3 -2
- package/src/index.tsx +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#71319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71319) [`d716e2b5e102`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716e2b5e102) - Ensures all dependencies are properly defined
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#69723](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69723) [`06cd0f04fefb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06cd0f04fefb) - Adds the following rules to the recommended config:
|
|
14
|
+
|
|
15
|
+
- `local-cx-xcss` - Ensures the `cx()` function is only used within the `xcss` prop
|
|
16
|
+
- `no-supress-xcss` - Disallows supressing type violations when using the `xcss` prop
|
|
17
|
+
- `no-js-xcss` - Disallows using `xcss` prop inside JavaScript files
|
|
18
|
+
|
|
3
19
|
## 0.1.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -5,3 +5,11 @@ The UI Styling Standard plugin utilizes rules from across Atlassian, Open Source
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
Not intended for use outside the Atlassian frontend repository.
|
|
8
|
+
|
|
9
|
+
## Rules
|
|
10
|
+
|
|
11
|
+
| Rule | Description | Recommended | Fixable | Suggestions |
|
|
12
|
+
| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------- | ----------- |
|
|
13
|
+
| <a href="../eslint-plugin/src/rules/local-cx-xcss/README.md">local-cx-xcss</a> | Ensures the cx() function, which is part of the XCSS API, is only used within the xcss prop. This aids tracking what styles are applied to a jsx element. | Yes | | |
|
|
14
|
+
| <a href="https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-suppress-xcss">no-suppress-xcss</a> | Disallows supressing type violations when using the xcss prop | Yes | | |
|
|
15
|
+
| <a href="https://github.com/atlassian-labs/compiled/tree/master/packages/eslint-plugin/src/rules/no-js-xcss">no-js-xcss</a> | Disallows using xcss prop inside JavaScript files | Yes | | |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../dist",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"baseUrl": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": []
|
|
21
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,9 +7,12 @@ exports.rules = exports.configs = void 0;
|
|
|
7
7
|
var rules = exports.rules = {};
|
|
8
8
|
var configs = exports.configs = {
|
|
9
9
|
recommended: {
|
|
10
|
-
plugins: ['@atlaskit/
|
|
10
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
|
|
11
11
|
rules: {
|
|
12
|
-
'@atlaskit/design-system/consistent-css-prop-usage': 'error'
|
|
12
|
+
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
13
|
+
'@atlaskit/design-system/local-cx-xcss': 'error',
|
|
14
|
+
'@compiled/no-suppress-xcss': 'error',
|
|
15
|
+
'@compiled/no-js-xcss': 'error'
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
};
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export const rules = {};
|
|
2
2
|
export const configs = {
|
|
3
3
|
recommended: {
|
|
4
|
-
plugins: ['@atlaskit/
|
|
4
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
|
|
5
5
|
rules: {
|
|
6
|
-
'@atlaskit/design-system/consistent-css-prop-usage': 'error'
|
|
6
|
+
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
7
|
+
'@atlaskit/design-system/local-cx-xcss': 'error',
|
|
8
|
+
'@compiled/no-suppress-xcss': 'error',
|
|
9
|
+
'@compiled/no-js-xcss': 'error'
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export var rules = {};
|
|
2
2
|
export var configs = {
|
|
3
3
|
recommended: {
|
|
4
|
-
plugins: ['@atlaskit/
|
|
4
|
+
plugins: ['@atlaskit/ui-styling-standard', '@atlaskit/design-system', '@compiled'],
|
|
5
5
|
rules: {
|
|
6
|
-
'@atlaskit/design-system/consistent-css-prop-usage': 'error'
|
|
6
|
+
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
7
|
+
'@atlaskit/design-system/local-cx-xcss': 'error',
|
|
8
|
+
'@compiled/no-suppress-xcss': 'error',
|
|
9
|
+
'@compiled/no-js-xcss': 'error'
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
};
|
|
@@ -4,6 +4,9 @@ export declare const configs: {
|
|
|
4
4
|
plugins: string[];
|
|
5
5
|
rules: {
|
|
6
6
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
7
|
+
'@atlaskit/design-system/local-cx-xcss': string;
|
|
8
|
+
'@compiled/no-suppress-xcss': string;
|
|
9
|
+
'@compiled/no-js-xcss': string;
|
|
7
10
|
};
|
|
8
11
|
};
|
|
9
12
|
};
|
|
@@ -4,6 +4,9 @@ export declare const configs: {
|
|
|
4
4
|
plugins: string[];
|
|
5
5
|
rules: {
|
|
6
6
|
'@atlaskit/design-system/consistent-css-prop-usage': string;
|
|
7
|
+
'@atlaskit/design-system/local-cx-xcss': string;
|
|
8
|
+
'@compiled/no-suppress-xcss': string;
|
|
9
|
+
'@compiled/no-js-xcss': string;
|
|
7
10
|
};
|
|
8
11
|
};
|
|
9
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-ui-styling-standard",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"author": "Atlassian Pty Ltd",
|
|
5
5
|
"description": "The Atlassian UI Styling Standard Plugin Package - used to enforce Atlassian's styling standards within internal applications",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -35,8 +35,9 @@
|
|
|
35
35
|
"@babel/runtime": "^7.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@atlaskit/eslint-plugin-design-system": "^8.
|
|
38
|
+
"@atlaskit/eslint-plugin-design-system": "^8.25.0",
|
|
39
39
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
40
|
+
"@compiled/eslint-plugin": "^0.13.3",
|
|
40
41
|
"@types/eslint": "^8.4.5",
|
|
41
42
|
"eslint": "^7.7.0",
|
|
42
43
|
"tsconfig-paths": "^4.2.0",
|
package/src/index.tsx
CHANGED
|
@@ -2,9 +2,16 @@ export const rules = {};
|
|
|
2
2
|
|
|
3
3
|
export const configs = {
|
|
4
4
|
recommended: {
|
|
5
|
-
plugins: [
|
|
5
|
+
plugins: [
|
|
6
|
+
'@atlaskit/ui-styling-standard',
|
|
7
|
+
'@atlaskit/design-system',
|
|
8
|
+
'@compiled',
|
|
9
|
+
],
|
|
6
10
|
rules: {
|
|
7
11
|
'@atlaskit/design-system/consistent-css-prop-usage': 'error',
|
|
12
|
+
'@atlaskit/design-system/local-cx-xcss': 'error',
|
|
13
|
+
'@compiled/no-suppress-xcss': 'error',
|
|
14
|
+
'@compiled/no-js-xcss': 'error',
|
|
8
15
|
},
|
|
9
16
|
},
|
|
10
17
|
};
|