@atlaskit/eslint-plugin-ui-styling-standard 0.14.2 → 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 +188 -167
- package/README.md +1 -0
- package/afm-cc/tsconfig.json +10 -3
- package/afm-jira/tsconfig.json +28 -0
- 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 +99 -98
- 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 +244 -0
- package/constellation/no-unsafe-values/usage.mdx +33 -33
- package/dist/cjs/index.codegen.js +1 -1
- package/dist/cjs/presets/all.codegen.js +2 -1
- package/dist/cjs/presets/recommended.codegen.js +2 -1
- package/dist/cjs/rules/index.codegen.js +3 -1
- package/dist/cjs/rules/no-unsafe-selectors/constants.js +30 -0
- package/dist/cjs/rules/no-unsafe-selectors/index.js +188 -0
- package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +198 -0
- package/dist/cjs/rules/no-unsafe-selectors/source-position-utils.js +42 -0
- package/dist/cjs/rules/no-unsafe-selectors/walk-css-map.js +186 -0
- package/dist/es2019/index.codegen.js +1 -1
- package/dist/es2019/presets/all.codegen.js +2 -1
- package/dist/es2019/presets/recommended.codegen.js +2 -1
- package/dist/es2019/rules/index.codegen.js +3 -1
- package/dist/es2019/rules/no-unsafe-selectors/constants.js +22 -0
- package/dist/es2019/rules/no-unsafe-selectors/index.js +176 -0
- package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +161 -0
- package/dist/es2019/rules/no-unsafe-selectors/source-position-utils.js +31 -0
- package/dist/es2019/rules/no-unsafe-selectors/walk-css-map.js +180 -0
- package/dist/esm/index.codegen.js +1 -1
- package/dist/esm/presets/all.codegen.js +2 -1
- package/dist/esm/presets/recommended.codegen.js +2 -1
- package/dist/esm/rules/index.codegen.js +3 -1
- package/dist/esm/rules/no-unsafe-selectors/constants.js +24 -0
- package/dist/esm/rules/no-unsafe-selectors/index.js +181 -0
- package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +191 -0
- package/dist/esm/rules/no-unsafe-selectors/source-position-utils.js +34 -0
- package/dist/esm/rules/no-unsafe-selectors/walk-css-map.js +179 -0
- package/dist/types/index.codegen.d.ts +2 -0
- package/dist/types/presets/all.codegen.d.ts +2 -1
- package/dist/types/presets/recommended.codegen.d.ts +2 -1
- package/dist/types/rules/index.codegen.d.ts +1 -0
- package/dist/types/rules/no-unsafe-selectors/constants.d.ts +23 -0
- package/dist/types/rules/no-unsafe-selectors/index.d.ts +3 -0
- package/dist/types/rules/no-unsafe-selectors/lint-selector.d.ts +14 -0
- package/dist/types/rules/no-unsafe-selectors/source-position-utils.d.ts +20 -0
- package/dist/types/rules/no-unsafe-selectors/walk-css-map.d.ts +23 -0
- package/dist/types-ts4.5/index.codegen.d.ts +2 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -1
- package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -0
- package/dist/types-ts4.5/rules/no-unsafe-selectors/constants.d.ts +84 -0
- package/dist/types-ts4.5/rules/no-unsafe-selectors/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/no-unsafe-selectors/lint-selector.d.ts +14 -0
- package/dist/types-ts4.5/rules/no-unsafe-selectors/source-position-utils.d.ts +23 -0
- package/dist/types-ts4.5/rules/no-unsafe-selectors/walk-css-map.d.ts +23 -0
- package/package.json +7 -8
- package/scripts/codegen.tsx +3 -4
- package/src/index.codegen.tsx +3 -3
- package/src/presets/all.codegen.tsx +70 -72
- package/src/presets/recommended.codegen.tsx +70 -72
- package/src/rules/index.codegen.tsx +19 -17
- package/src/rules/no-classname-prop/index.tsx +1 -1
- package/src/rules/no-nested-selectors/index.tsx +1 -1
- package/src/rules/no-unsafe-selectors/README.md +232 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-ambiguous-pseudos.test.tsx +368 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-grouped-at-rules.test.tsx +60 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-increased-specificity.test.tsx +73 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-keyframes-at-rules.test.tsx +40 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-legacy-pseudo-element-syntax.test.tsx +101 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-restricted-at-rules.test.tsx +131 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-restricted-pseudos.test.tsx +132 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-selectors-object.test.tsx +25 -0
- package/src/rules/no-unsafe-selectors/__tests__/no-unparsable-selectors.test.tsx +35 -0
- package/src/rules/no-unsafe-selectors/__tests__/rule.test.tsx +238 -0
- package/src/rules/no-unsafe-selectors/constants.tsx +99 -0
- package/src/rules/no-unsafe-selectors/index.tsx +198 -0
- package/src/rules/no-unsafe-selectors/lint-selector.tsx +155 -0
- package/src/rules/no-unsafe-selectors/source-position-utils.tsx +55 -0
- package/src/rules/no-unsafe-selectors/walk-css-map.tsx +232 -0
- package/tsconfig.app.json +45 -45
- package/tsconfig.dev.json +43 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,367 +1,388 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 0.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#105631](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105631)
|
|
8
|
+
[`68f222356b10`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/68f222356b10) -
|
|
9
|
+
Fixes `no-unsafe-selector` to ignore `xcss` when checking for ambiguous pseudo-selectors. This is
|
|
10
|
+
because `xcss` does not support a leading `&` for properties.
|
|
11
|
+
|
|
12
|
+
## 0.15.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#100969](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100969)
|
|
17
|
+
[`0bdf8e822b2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0bdf8e822b2f) -
|
|
18
|
+
Added `no-unsafe-selectors` rule to enable static analysis and prevent regressions when migrating
|
|
19
|
+
between styling APIs.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 0.14.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
6
28
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
29
|
+
- [#101063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101063)
|
|
30
|
+
[`d135d014f1ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d135d014f1ae) -
|
|
31
|
+
The `atlaskit-theme` rule no longer reports on the `fontFallback` import from
|
|
32
|
+
`@atlaskit/theme/typography`
|
|
11
33
|
|
|
12
34
|
## 0.14.1
|
|
13
35
|
|
|
14
36
|
### Patch Changes
|
|
15
37
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
38
|
+
- [#99639](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99639)
|
|
39
|
+
[`e9887b5c7698`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9887b5c7698) -
|
|
40
|
+
Internal refactoring of `no-important-styles` rule
|
|
41
|
+
- Updated dependencies
|
|
20
42
|
|
|
21
43
|
## 0.14.0
|
|
22
44
|
|
|
23
45
|
### Minor Changes
|
|
24
46
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
47
|
+
- [#99733](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99733)
|
|
48
|
+
[`7051e483ab6d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7051e483ab6d) -
|
|
49
|
+
Added no-styled eslint rule to prevent usage of styled imports
|
|
28
50
|
|
|
29
51
|
## 0.13.0
|
|
30
52
|
|
|
31
53
|
### Minor Changes
|
|
32
54
|
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
55
|
+
- [#99544](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99544)
|
|
56
|
+
[`391edf6de450`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/391edf6de450) -
|
|
57
|
+
Added `no-global-styles` rule which prevents:
|
|
36
58
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
59
|
+
- The `Global` API from `@emotion`
|
|
60
|
+
- The `createGlobalStyle` and `injectGlobal` APIs from `styled-components`
|
|
61
|
+
- `<style>` elements in JSX
|
|
62
|
+
- CSS imports (including SASS and LESS)
|
|
41
63
|
|
|
42
64
|
## 0.12.0
|
|
43
65
|
|
|
44
66
|
### Minor Changes
|
|
45
67
|
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
libraries
|
|
68
|
+
- [#96162](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96162)
|
|
69
|
+
[`d68864c620d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d68864c620d0) -
|
|
70
|
+
Add `use-compiled` rule to enforce usage of `@compiled/react` instead of other CSS-in-JS libraries
|
|
50
71
|
|
|
51
72
|
## 0.11.6
|
|
52
73
|
|
|
53
74
|
### Patch Changes
|
|
54
75
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
76
|
+
- [#97707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97707)
|
|
77
|
+
[`764c0805b3c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/764c0805b3c1) -
|
|
78
|
+
Moved compiled/atlaskit-theme eslint rule to UI styling standard
|
|
58
79
|
|
|
59
80
|
## 0.11.5
|
|
60
81
|
|
|
61
82
|
### Patch Changes
|
|
62
83
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
- [#96532](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96532)
|
|
85
|
+
[`d54c7df2e836`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d54c7df2e836) -
|
|
86
|
+
Editing enforce-style-prop rule to use eslint utils functions
|
|
66
87
|
|
|
67
88
|
## 0.11.4
|
|
68
89
|
|
|
69
90
|
### Patch Changes
|
|
70
91
|
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
92
|
+
- [#93427](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93427)
|
|
93
|
+
[`d6d428f334b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d6d428f334b0) -
|
|
94
|
+
The `no-important-styles` rule now checks template literal values in style objects
|
|
74
95
|
|
|
75
96
|
## 0.11.3
|
|
76
97
|
|
|
77
98
|
### Patch Changes
|
|
78
99
|
|
|
79
|
-
-
|
|
80
|
-
|
|
81
|
-
|
|
100
|
+
- [#95279](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95279)
|
|
101
|
+
[`813a0e8d6227`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/813a0e8d6227) -
|
|
102
|
+
Deprecating @repo/internal/compiled/selectors ESlint rule
|
|
82
103
|
|
|
83
104
|
## 0.11.2
|
|
84
105
|
|
|
85
106
|
### Patch Changes
|
|
86
107
|
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
108
|
+
- [#94765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94765)
|
|
109
|
+
[`8e5a3bddb686`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e5a3bddb686) -
|
|
110
|
+
Adding no imported style values ESlint rule
|
|
90
111
|
|
|
91
112
|
## 0.11.1
|
|
92
113
|
|
|
93
114
|
### Patch Changes
|
|
94
115
|
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
116
|
+
- [#92963](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92963)
|
|
117
|
+
[`1bb8557fb0b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1bb8557fb0b6) -
|
|
118
|
+
Added no-exported-styles eslint rule to disallow exports of css, cssMap, keyframes, styled and
|
|
119
|
+
xcss styling
|
|
99
120
|
|
|
100
121
|
## 0.11.0
|
|
101
122
|
|
|
102
123
|
### Minor Changes
|
|
103
124
|
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
125
|
+
- [#87213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87213)
|
|
126
|
+
[`fbfa5a58cf39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbfa5a58cf39) -
|
|
127
|
+
Adds `no-unsafe-values` rule, which forbids most dynamic styling in
|
|
128
|
+
`css`/`styled`/`keyframes`/`cssMap`/`xcss` function calls. This includes object spreading,
|
|
129
|
+
function calls, and so on.
|
|
109
130
|
|
|
110
131
|
### Patch Changes
|
|
111
132
|
|
|
112
|
-
-
|
|
133
|
+
- Updated dependencies
|
|
113
134
|
|
|
114
135
|
## 0.10.0
|
|
115
136
|
|
|
116
137
|
### Minor Changes
|
|
117
138
|
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
139
|
+
- [#91611](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91611)
|
|
140
|
+
[`943056d22c36`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/943056d22c36) -
|
|
141
|
+
Add `no-dynamic-styles` rule which blocks function expressions as values in style declarations.
|
|
121
142
|
|
|
122
143
|
## 0.9.1
|
|
123
144
|
|
|
124
145
|
### Patch Changes
|
|
125
146
|
|
|
126
|
-
-
|
|
127
|
-
|
|
128
|
-
|
|
147
|
+
- [#90977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90977)
|
|
148
|
+
[`becda03f375e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/becda03f375e) -
|
|
149
|
+
Create eslint rule to enforce style prop usage by disallowing passing static css values
|
|
129
150
|
|
|
130
151
|
## 0.9.0
|
|
131
152
|
|
|
132
153
|
### Minor Changes
|
|
133
154
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
155
|
+
- [#91840](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91840)
|
|
156
|
+
[`997a3d2d0ca0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/997a3d2d0ca0) -
|
|
157
|
+
Add `no-array-arguments` rule which prevents passing array arguments to style declaration
|
|
158
|
+
functions.
|
|
138
159
|
|
|
139
160
|
### Patch Changes
|
|
140
161
|
|
|
141
|
-
-
|
|
162
|
+
- Updated dependencies
|
|
142
163
|
|
|
143
164
|
## 0.8.4
|
|
144
165
|
|
|
145
166
|
### Patch Changes
|
|
146
167
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
168
|
+
- [#89936](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89936)
|
|
169
|
+
[`eb8f66c5d0f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eb8f66c5d0f3) -
|
|
170
|
+
Add @atlaskit/eslint-plugin-ui-styling-standard to the internal Atlassian push model.
|
|
150
171
|
|
|
151
172
|
## 0.8.3
|
|
152
173
|
|
|
153
174
|
### Patch Changes
|
|
154
175
|
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
176
|
+
- [#87496](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87496)
|
|
177
|
+
[`d5b439e94043`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5b439e94043) -
|
|
178
|
+
Improve coverage of `convert-props-syntax` rule. Previously cases such as `css()` and
|
|
179
|
+
`styled(BaseComponent)()` were not covered by the rule.
|
|
159
180
|
|
|
160
181
|
## 0.8.2
|
|
161
182
|
|
|
162
183
|
### Patch Changes
|
|
163
184
|
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
|
|
185
|
+
- [#88753](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88753)
|
|
186
|
+
[`df5cbd4957ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/df5cbd4957ea) -
|
|
187
|
+
Fixed no nested selectors rule to skip @ queries, cssMap and keyFrames calls
|
|
167
188
|
|
|
168
189
|
## 0.8.1
|
|
169
190
|
|
|
170
191
|
### Patch Changes
|
|
171
192
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
-
|
|
193
|
+
- [#88029](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88029)
|
|
194
|
+
[`01d74d2899d5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/01d74d2899d5) -
|
|
195
|
+
Disabled ESlint rule convert-props-syntax on .attrs() calls
|
|
196
|
+
- [#87476](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87476)
|
|
197
|
+
[`af296d200ad2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/af296d200ad2) -
|
|
198
|
+
Internal refactoring to use `getCreateLintRule` from `@atlaskit/eslint-utils`
|
|
199
|
+
- Updated dependencies
|
|
179
200
|
|
|
180
201
|
## 0.8.0
|
|
181
202
|
|
|
182
203
|
### Minor Changes
|
|
183
204
|
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
205
|
+
- [#87972](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87972)
|
|
206
|
+
[`1f420b2c4a9f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1f420b2c4a9f) -
|
|
207
|
+
The `@atlaskit/design-system/no-styled-tagged-template-expression` rule will now lint against
|
|
208
|
+
`styled-components` by default in the preset configurations.
|
|
188
209
|
|
|
189
210
|
### Patch Changes
|
|
190
211
|
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
|
|
212
|
+
- [#86779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86779)
|
|
213
|
+
[`4b4bbf195e39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4b4bbf195e39) -
|
|
214
|
+
Created no nested selectors eslint rule to prevent setting styles for child elements
|
|
194
215
|
|
|
195
216
|
## 0.7.2
|
|
196
217
|
|
|
197
218
|
### Patch Changes
|
|
198
219
|
|
|
199
|
-
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
220
|
+
- [#86638](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86638)
|
|
221
|
+
[`f003f07e88e1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f003f07e88e1) -
|
|
222
|
+
Internal refactoring to use a shared `@atlaskit/eslint-utils` package
|
|
223
|
+
- Updated dependencies
|
|
203
224
|
|
|
204
225
|
## 0.7.1
|
|
205
226
|
|
|
206
227
|
### Patch Changes
|
|
207
228
|
|
|
208
|
-
-
|
|
209
|
-
|
|
210
|
-
|
|
229
|
+
- [#84413](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84413)
|
|
230
|
+
[`2860b53c90d9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2860b53c90d9) -
|
|
231
|
+
Added eslint rule to block @container queries in css styling
|
|
211
232
|
|
|
212
233
|
## 0.7.0
|
|
213
234
|
|
|
214
235
|
### Minor Changes
|
|
215
236
|
|
|
216
|
-
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
237
|
+
- [#83454](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83454)
|
|
238
|
+
[`be8b7ad6ff8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/be8b7ad6ff8e) -
|
|
239
|
+
Remove name autofixer from `consistent-css-prop-usage`. Variables for css / xcss / cssMap
|
|
240
|
+
functions will no longer be required to end with "Styles".
|
|
220
241
|
|
|
221
|
-
|
|
242
|
+
[BREAKING] Some rule options have been changed:
|
|
222
243
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
244
|
+
- `fixNamesOnly` and `autoFixNames` have been removed, as there is no longer an autofixer that
|
|
245
|
+
enforces variable names.
|
|
246
|
+
- If you use `fixNamesOnly: true`, we recommend switching to using `autoFix: false`.
|
|
247
|
+
- Users of the `autoFixNames` option should remove this from their configuration.
|
|
248
|
+
- `autoFix` option has been added. This controls whether the remaining autofixers should run or
|
|
249
|
+
not (e.g. hoisting `css` function calls, wrapping objects in `css` function calls), and is
|
|
250
|
+
`true` by default.
|
|
230
251
|
|
|
231
252
|
## 0.6.3
|
|
232
253
|
|
|
233
254
|
### Patch Changes
|
|
234
255
|
|
|
235
|
-
-
|
|
236
|
-
|
|
237
|
-
|
|
256
|
+
- [#83463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83463)
|
|
257
|
+
[`fee29cf1335a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fee29cf1335a) -
|
|
258
|
+
Extend convert-props-syntax to Emotion as well as it has a type issue.
|
|
238
259
|
|
|
239
260
|
## 0.6.2
|
|
240
261
|
|
|
241
262
|
### Patch Changes
|
|
242
263
|
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
|
|
264
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
265
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
266
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
246
267
|
|
|
247
268
|
## 0.6.1
|
|
248
269
|
|
|
249
270
|
### Patch Changes
|
|
250
271
|
|
|
251
|
-
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
272
|
+
- [#80129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80129)
|
|
273
|
+
[`dc0ce9161fc1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc0ce9161fc1) -
|
|
274
|
+
Add `convert-prop-syntax` to convert invalid `styled-components` props syntax to valid
|
|
275
|
+
`styled-components` props syntax.
|
|
276
|
+
- [#79686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79686)
|
|
277
|
+
[`7dc7cf06a8b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7dc7cf06a8b9) -
|
|
278
|
+
Bump @compiled/react to v0.17.0
|
|
258
279
|
|
|
259
280
|
## 0.6.0
|
|
260
281
|
|
|
261
282
|
### Minor Changes
|
|
262
283
|
|
|
263
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
284
|
+
- [#81459](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81459)
|
|
285
|
+
[`08abd3b15614`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08abd3b15614) -
|
|
286
|
+
Adds `no-classname-prop` rule which prevents the use of `className` in JSX.
|
|
266
287
|
|
|
267
288
|
## 0.5.2
|
|
268
289
|
|
|
269
290
|
### Patch Changes
|
|
270
291
|
|
|
271
|
-
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
292
|
+
- [#81702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81702)
|
|
293
|
+
[`04e7850f449c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e7850f449c) -
|
|
294
|
+
Adding a missing LICENSE for this package, updating from "UNLICENSED" to make it clear this is
|
|
295
|
+
available for use.
|
|
275
296
|
|
|
276
297
|
## 0.5.1
|
|
277
298
|
|
|
278
299
|
### Patch Changes
|
|
279
300
|
|
|
280
|
-
-
|
|
281
|
-
|
|
282
|
-
|
|
301
|
+
- [#81166](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81166)
|
|
302
|
+
[`a249a1bd29a6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a249a1bd29a6) -
|
|
303
|
+
Upgrade ESLint to version 8
|
|
283
304
|
|
|
284
305
|
## 0.5.0
|
|
285
306
|
|
|
286
307
|
### Minor Changes
|
|
287
308
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
309
|
+
- [#80523](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80523)
|
|
310
|
+
[`1fbc903e5b7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1fbc903e5b7b) -
|
|
311
|
+
Adds `no-important-styles` rule which prevents the use of `!important` flags in style
|
|
312
|
+
declarations.
|
|
292
313
|
|
|
293
314
|
## 0.4.1
|
|
294
315
|
|
|
295
316
|
### Patch Changes
|
|
296
317
|
|
|
297
|
-
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
318
|
+
- [#76885](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76885)
|
|
319
|
+
[`06030bc18dd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06030bc18dd4) -
|
|
320
|
+
Disable `styled-components` handling for `no-styled-tagged-template-expression` rule, due to edge
|
|
321
|
+
case where props are converted to output that fails typechecking.
|
|
301
322
|
|
|
302
323
|
## 0.4.0
|
|
303
324
|
|
|
304
325
|
### Minor Changes
|
|
305
326
|
|
|
306
|
-
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
327
|
+
- [#75600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75600)
|
|
328
|
+
[`8875d9de2e5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8875d9de2e5d) -
|
|
329
|
+
Migrates the ESLint rule from `@atlaskit/design-system/local-cx-xcss` to
|
|
330
|
+
`@atlaskit/ui-styling-standard/local-cx-xcss` and overhauls the codegen to enable better
|
|
331
|
+
documentation and rule distribution.
|
|
311
332
|
|
|
312
333
|
## 0.3.0
|
|
313
334
|
|
|
314
335
|
### Minor Changes
|
|
315
336
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
|
|
337
|
+
- [#74981](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74981)
|
|
338
|
+
[`842300de03a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/842300de03a1) -
|
|
339
|
+
Add the following rules:
|
|
319
340
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
341
|
+
- `consistent-css-prop-usage`: Ensures consistency with `css` and `xcss` prop usages
|
|
342
|
+
- `no-empty-styled-expression`: Forbids any styled expression to be used when passing empty
|
|
343
|
+
arguments to styled.div() (or other JSX elements).
|
|
344
|
+
- `no-exported-css`: Forbid exporting `css` function calls.
|
|
345
|
+
- `no-exported-keyframes`: Forbid exporting `keyframes` function calls.
|
|
346
|
+
- `no-invalid-css-map`: Checks the validity of a CSS map created through cssMap.
|
|
326
347
|
|
|
327
|
-
-
|
|
328
|
-
|
|
329
|
-
|
|
348
|
+
- [#72983](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72983)
|
|
349
|
+
[`878065bfc4c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/878065bfc4c0) -
|
|
350
|
+
Adds the following rules to the recommended preset:
|
|
330
351
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
352
|
+
- `@atlaskit/design-system/no-css-tagged-template-expression`
|
|
353
|
+
- `@atlaskit/design-system/no-keyframes-tagged-template-expression`
|
|
354
|
+
- `@atlaskit/design-system/no-styled-tagged-template-expression`
|
|
334
355
|
|
|
335
356
|
### Patch Changes
|
|
336
357
|
|
|
337
|
-
-
|
|
338
|
-
|
|
339
|
-
|
|
358
|
+
- [#75152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75152)
|
|
359
|
+
[`c16a175d372b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c16a175d372b) -
|
|
360
|
+
Change 'error' to 'warn' to unbreak AFM platform
|
|
340
361
|
|
|
341
362
|
## 0.2.1
|
|
342
363
|
|
|
343
364
|
### Patch Changes
|
|
344
365
|
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
|
|
366
|
+
- [#71319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71319)
|
|
367
|
+
[`d716e2b5e102`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d716e2b5e102) -
|
|
368
|
+
Ensures all dependencies are properly defined
|
|
348
369
|
|
|
349
370
|
## 0.2.0
|
|
350
371
|
|
|
351
372
|
### Minor Changes
|
|
352
373
|
|
|
353
|
-
-
|
|
354
|
-
|
|
355
|
-
|
|
374
|
+
- [#69723](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69723)
|
|
375
|
+
[`06cd0f04fefb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/06cd0f04fefb) -
|
|
376
|
+
Adds the following rules to the recommended config:
|
|
356
377
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
378
|
+
- `local-cx-xcss` - Ensures the `cx()` function is only used within the `xcss` prop
|
|
379
|
+
- `no-supress-xcss` - Disallows supressing type violations when using the `xcss` prop
|
|
380
|
+
- `no-js-xcss` - Disallows using `xcss` prop inside JavaScript files
|
|
360
381
|
|
|
361
382
|
## 0.1.0
|
|
362
383
|
|
|
363
384
|
### Minor Changes
|
|
364
385
|
|
|
365
|
-
-
|
|
366
|
-
|
|
367
|
-
|
|
386
|
+
- [#63960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63960)
|
|
387
|
+
[`8e3774cada83`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e3774cada83) -
|
|
388
|
+
Created the design system styling standard package
|
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ module.exports = {
|
|
|
56
56
|
| <a href="./src/rules/no-imported-style-values/README.md">no-imported-style-values</a> | Disallows imports of style values | Yes | | |
|
|
57
57
|
| <a href="./src/rules/no-nested-selectors/README.md">no-nested-selectors</a> | Prevents usage of nested selectors within css styling | Yes | | |
|
|
58
58
|
| <a href="./src/rules/no-styled/README.md">no-styled</a> | Disallows usage of the `styled` imports | Yes | | |
|
|
59
|
+
| <a href="./src/rules/no-unsafe-selectors/README.md">no-unsafe-selectors</a> | Disallows use of nested styles in `css` functions. | Yes | Yes | Yes |
|
|
59
60
|
| <a href="./src/rules/no-unsafe-values/README.md">no-unsafe-values</a> | Disallows styles that are difficult/impossible to statically anaylze. | Yes | | |
|
|
60
61
|
| <a href="./src/rules/use-compiled/README.md">use-compiled</a> | Ensures usage of `@compiled/react` instead of other CSS-in-JS libraries | Yes | Yes | |
|
|
61
62
|
| <a href="https://atlassian.design/components/eslint-plugin-ui-styling-standard/consistent-css-prop-usage/usage">@atlaskit/design-system/consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "es5",
|
|
5
|
+
"lib": [
|
|
6
|
+
"ES2021.String"
|
|
7
|
+
],
|
|
8
|
+
"composite": true,
|
|
5
9
|
"outDir": "../dist",
|
|
6
10
|
"rootDir": "../",
|
|
7
|
-
"baseUrl": "../"
|
|
8
|
-
"composite": true
|
|
11
|
+
"baseUrl": "../"
|
|
9
12
|
},
|
|
10
13
|
"include": [
|
|
11
14
|
"../src/**/*.ts",
|
|
@@ -17,5 +20,9 @@
|
|
|
17
20
|
"../src/**/*.test.*",
|
|
18
21
|
"../src/**/test.*"
|
|
19
22
|
],
|
|
20
|
-
"references": [
|
|
23
|
+
"references": [
|
|
24
|
+
{
|
|
25
|
+
"path": "../../eslint-utils/afm-cc/tsconfig.json"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
21
28
|
}
|