@atlaskit/eslint-plugin-platform 0.7.4 → 0.7.5
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 +8 -0
- package/dist/cjs/rules/no-module-level-eval-nav4/index.js +1 -1
- package/dist/es2019/rules/no-module-level-eval-nav4/index.js +1 -1
- package/dist/esm/rules/no-module-level-eval-nav4/index.js +1 -1
- package/package.json +1 -1
- package/src/rules/no-module-level-eval-nav4/index.tsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-platform
|
|
2
2
|
|
|
3
|
+
## 0.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131612)
|
|
8
|
+
[`898640d108441`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/898640d108441) -
|
|
9
|
+
Add other nav4 functions to the lint rule for no-module-level-eval-nav4
|
|
10
|
+
|
|
3
11
|
## 0.7.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ var featureLibraryFunctions = new Set([
|
|
|
15
15
|
*
|
|
16
16
|
* Slack thread: https://atlassian.slack.com/archives/CFGLH1ZS8/p1726449739284819
|
|
17
17
|
*/
|
|
18
|
-
'isVisualRefreshEnabled', 'getWillShowNav4']);
|
|
18
|
+
'isVisualRefreshEnabled', 'getMetaBoolean', 'getNav4Rollout', 'getWillShowNav3', 'getWillShowNav4', 'getWillShowNav4UserOptIn', 'getWillShowNav4UserOptOut']);
|
|
19
19
|
var isInFunctionLevel = function isInFunctionLevel(context) {
|
|
20
20
|
var scope = context.getScope();
|
|
21
21
|
while (((_scope = scope) === null || _scope === void 0 ? void 0 : _scope.type) !== 'module' && ((_scope2 = scope) === null || _scope2 === void 0 ? void 0 : _scope2.type) !== 'global') {
|
|
@@ -9,7 +9,7 @@ const featureLibraryFunctions = new Set([
|
|
|
9
9
|
*
|
|
10
10
|
* Slack thread: https://atlassian.slack.com/archives/CFGLH1ZS8/p1726449739284819
|
|
11
11
|
*/
|
|
12
|
-
'isVisualRefreshEnabled', 'getWillShowNav4']);
|
|
12
|
+
'isVisualRefreshEnabled', 'getMetaBoolean', 'getNav4Rollout', 'getWillShowNav3', 'getWillShowNav4', 'getWillShowNav4UserOptIn', 'getWillShowNav4UserOptOut']);
|
|
13
13
|
const isInFunctionLevel = context => {
|
|
14
14
|
let scope = context.getScope();
|
|
15
15
|
while (((_scope = scope) === null || _scope === void 0 ? void 0 : _scope.type) !== 'module' && ((_scope2 = scope) === null || _scope2 === void 0 ? void 0 : _scope2.type) !== 'global') {
|
|
@@ -9,7 +9,7 @@ var featureLibraryFunctions = new Set([
|
|
|
9
9
|
*
|
|
10
10
|
* Slack thread: https://atlassian.slack.com/archives/CFGLH1ZS8/p1726449739284819
|
|
11
11
|
*/
|
|
12
|
-
'isVisualRefreshEnabled', 'getWillShowNav4']);
|
|
12
|
+
'isVisualRefreshEnabled', 'getMetaBoolean', 'getNav4Rollout', 'getWillShowNav3', 'getWillShowNav4', 'getWillShowNav4UserOptIn', 'getWillShowNav4UserOptOut']);
|
|
13
13
|
var isInFunctionLevel = function isInFunctionLevel(context) {
|
|
14
14
|
var scope = context.getScope();
|
|
15
15
|
while (((_scope = scope) === null || _scope === void 0 ? void 0 : _scope.type) !== 'module' && ((_scope2 = scope) === null || _scope2 === void 0 ? void 0 : _scope2.type) !== 'global') {
|
package/package.json
CHANGED
|
@@ -13,7 +13,12 @@ const featureLibraryFunctions = new Set([
|
|
|
13
13
|
* Slack thread: https://atlassian.slack.com/archives/CFGLH1ZS8/p1726449739284819
|
|
14
14
|
*/
|
|
15
15
|
'isVisualRefreshEnabled',
|
|
16
|
+
'getMetaBoolean',
|
|
17
|
+
'getNav4Rollout',
|
|
18
|
+
'getWillShowNav3',
|
|
16
19
|
'getWillShowNav4',
|
|
20
|
+
'getWillShowNav4UserOptIn',
|
|
21
|
+
'getWillShowNav4UserOptOut',
|
|
17
22
|
]);
|
|
18
23
|
|
|
19
24
|
const isInFunctionLevel = (context: Rule.RuleContext) => {
|