Skip to content

Commit 2e0204a

Browse files
authored
Merge pull request #389 from kresimir-coko/388
feat(eslint-config): add Cavanaugh 7.4.x to list of possible deprecations
2 parents 90d2b43 + eae871b commit 2e0204a

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

projects/eslint-config/plugins/portal/docs/rules/deprecation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ In short, all notices should contain one of the following version descriptors:
3939
- Judson (7.1.x)
4040
- Mueller (7.2.x)
4141
- Athanasius (7.3.x)
42+
- Cavanaugh (7.4.x)
4243

4344
And replacement information of the form:
4445

projects/eslint-config/plugins/portal/lib/rules/deprecation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const VERSIONS = new Map([
2525
['7.1', 'Judson (7.1.x)'],
2626
['7.2', 'Mueller (7.2.x)'],
2727
['7.3', 'Athanasius (7.3.x)'],
28+
['7.4', 'Cavanaugh (7.4.x)'],
2829
]);
2930

3031
/**

projects/eslint-config/plugins/portal/tests/lib/rules/deprecation.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,27 @@ ruleTester.run('deprecation', rule, {
477477
*/
478478
`,
479479
},
480+
{
481+
code: `
482+
/**
483+
* @deprecated As of Cavanaugh (7.4.x)
484+
*/
485+
`,
486+
},
487+
{
488+
code: `
489+
/**
490+
* @deprecated As of Cavanaugh (7.4.x), with no direct replacement
491+
*/
492+
`,
493+
},
494+
{
495+
code: `
496+
/**
497+
* @deprecated As of Cavanaugh (7.4.x), replaced by Liferay.Qux
498+
*/
499+
`,
500+
},
480501
{
481502
code: `
482503
/**

0 commit comments

Comments
 (0)