@atlaskit/eslint-plugin-platform 0.7.1 → 0.7.2
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 +9 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/rules/ensure-feature-flag-prefix/index.js +2 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/rules/ensure-feature-flag-prefix/index.js +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/rules/ensure-feature-flag-prefix/index.js +2 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -4
- package/src/rules/ensure-feature-flag-prefix/index.tsx +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-platform
|
|
2
2
|
|
|
3
|
+
## 0.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116772](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116772)
|
|
8
|
+
[`46167815c5528`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/46167815c5528) -
|
|
9
|
+
Update feature flag prefix rule to be warn and recommend prefix only for deprecated launch darkly
|
|
10
|
+
flags.
|
|
11
|
+
|
|
3
12
|
## 0.7.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var configs = exports.configs = {
|
|
|
55
55
|
plugins: ['@atlaskit/platform'],
|
|
56
56
|
rules: {
|
|
57
57
|
'@atlaskit/platform/ensure-feature-flag-registration': 'error',
|
|
58
|
-
'@atlaskit/platform/ensure-feature-flag-prefix': ['
|
|
58
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ['warn', {
|
|
59
59
|
allowedPrefixes: ['platform.']
|
|
60
60
|
}],
|
|
61
61
|
'@atlaskit/platform/ensure-test-runner-arguments': 'error',
|
|
@@ -10,11 +10,12 @@ var _registrationUtils = require("../util/registration-utils");
|
|
|
10
10
|
var rule = {
|
|
11
11
|
meta: {
|
|
12
12
|
docs: {
|
|
13
|
+
url: 'http://go/pff-eslint',
|
|
13
14
|
recommended: false
|
|
14
15
|
},
|
|
15
16
|
type: 'problem',
|
|
16
17
|
messages: {
|
|
17
|
-
featureFlagIncorrectPrefix: "
|
|
18
|
+
featureFlagIncorrectPrefix: "Is this a LaunchDarkly feature flag? It needs a prefix so Confluence picks it up: [{{ allowedPrefixes }}]. Statsig feature gates don't need a prefix."
|
|
18
19
|
},
|
|
19
20
|
hasSuggestions: true,
|
|
20
21
|
schema: [{
|
package/dist/es2019/index.js
CHANGED
|
@@ -47,7 +47,7 @@ export const configs = {
|
|
|
47
47
|
plugins: ['@atlaskit/platform'],
|
|
48
48
|
rules: {
|
|
49
49
|
'@atlaskit/platform/ensure-feature-flag-registration': 'error',
|
|
50
|
-
'@atlaskit/platform/ensure-feature-flag-prefix': ['
|
|
50
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ['warn', {
|
|
51
51
|
allowedPrefixes: ['platform.']
|
|
52
52
|
}],
|
|
53
53
|
'@atlaskit/platform/ensure-test-runner-arguments': 'error',
|
|
@@ -4,11 +4,12 @@ import { getMetadataForFilename, getterIdentifierToFlagTypeMap } from '../util/r
|
|
|
4
4
|
const rule = {
|
|
5
5
|
meta: {
|
|
6
6
|
docs: {
|
|
7
|
+
url: 'http://go/pff-eslint',
|
|
7
8
|
recommended: false
|
|
8
9
|
},
|
|
9
10
|
type: 'problem',
|
|
10
11
|
messages: {
|
|
11
|
-
featureFlagIncorrectPrefix: `
|
|
12
|
+
featureFlagIncorrectPrefix: `Is this a LaunchDarkly feature flag? It needs a prefix so Confluence picks it up: [{{ allowedPrefixes }}]. Statsig feature gates don't need a prefix.`
|
|
12
13
|
},
|
|
13
14
|
hasSuggestions: true,
|
|
14
15
|
schema: [{
|
package/dist/esm/index.js
CHANGED
|
@@ -50,7 +50,7 @@ export var configs = {
|
|
|
50
50
|
plugins: ['@atlaskit/platform'],
|
|
51
51
|
rules: {
|
|
52
52
|
'@atlaskit/platform/ensure-feature-flag-registration': 'error',
|
|
53
|
-
'@atlaskit/platform/ensure-feature-flag-prefix': ['
|
|
53
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ['warn', {
|
|
54
54
|
allowedPrefixes: ['platform.']
|
|
55
55
|
}],
|
|
56
56
|
'@atlaskit/platform/ensure-test-runner-arguments': 'error',
|
|
@@ -4,11 +4,12 @@ import { getMetadataForFilename, getterIdentifierToFlagTypeMap } from '../util/r
|
|
|
4
4
|
var rule = {
|
|
5
5
|
meta: {
|
|
6
6
|
docs: {
|
|
7
|
+
url: 'http://go/pff-eslint',
|
|
7
8
|
recommended: false
|
|
8
9
|
},
|
|
9
10
|
type: 'problem',
|
|
10
11
|
messages: {
|
|
11
|
-
featureFlagIncorrectPrefix: "
|
|
12
|
+
featureFlagIncorrectPrefix: "Is this a LaunchDarkly feature flag? It needs a prefix so Confluence picks it up: [{{ allowedPrefixes }}]. Statsig feature gates don't need a prefix."
|
|
12
13
|
},
|
|
13
14
|
hasSuggestions: true,
|
|
14
15
|
schema: [{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-platform",
|
|
3
3
|
"description": "The essential plugin for use with Atlassian frontend platform tools",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"atlassian": {
|
|
7
7
|
"team": "UIP - Platform Integration Trust (PITa)",
|
package/src/index.tsx
CHANGED
|
@@ -49,10 +49,7 @@ export const configs = {
|
|
|
49
49
|
plugins: ['@atlaskit/platform'],
|
|
50
50
|
rules: {
|
|
51
51
|
'@atlaskit/platform/ensure-feature-flag-registration': 'error',
|
|
52
|
-
'@atlaskit/platform/ensure-feature-flag-prefix': [
|
|
53
|
-
'error',
|
|
54
|
-
{ allowedPrefixes: ['platform.'] },
|
|
55
|
-
],
|
|
52
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ['warn', { allowedPrefixes: ['platform.'] }],
|
|
56
53
|
'@atlaskit/platform/ensure-test-runner-arguments': 'error',
|
|
57
54
|
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn',
|
|
58
55
|
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error',
|
|
@@ -9,11 +9,12 @@ type RuleOptions = {
|
|
|
9
9
|
const rule: Rule.RuleModule = {
|
|
10
10
|
meta: {
|
|
11
11
|
docs: {
|
|
12
|
+
url: 'http://go/pff-eslint',
|
|
12
13
|
recommended: false,
|
|
13
14
|
},
|
|
14
15
|
type: 'problem',
|
|
15
16
|
messages: {
|
|
16
|
-
featureFlagIncorrectPrefix: `
|
|
17
|
+
featureFlagIncorrectPrefix: `Is this a LaunchDarkly feature flag? It needs a prefix so Confluence picks it up: [{{ allowedPrefixes }}]. Statsig feature gates don't need a prefix.`,
|
|
17
18
|
},
|
|
18
19
|
hasSuggestions: true,
|
|
19
20
|
schema: [
|