|
1 | 1 | import {COMMON_TAGS, SeverityLevel} from "@salesforce/code-analyzer-engine-api"; |
2 | 2 |
|
3 | | -// Convenience tag to apply to the LWC rules |
| 3 | +// Convenience tag to apply to framework specific rules |
4 | 4 | const LWC = "LWC"; |
| 5 | +const SLDS = "SLDS"; |
5 | 6 |
|
6 | 7 | /** |
7 | 8 | * The following is a list of the base rules that we have reviewed where we have designated the rule tags and |
@@ -932,7 +933,8 @@ export const RULE_MAPPINGS: Record<string, {severity: SeverityLevel, tags: strin |
932 | 933 | // TODO: Turn it back on when the rule has been fixed: |
933 | 934 | // "@lwc/lwc-platform/valid-offline-wire": { |
934 | 935 | // severity: SeverityLevel.Moderate, |
935 | | - // tags: [COMMON_TAGS.RECOMMENDED, LWC, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.JAVASCRIPT] |
| 936 | + // tags: [COMMON_TAGS.RECOMMENDED, |
| 937 | +LWC, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.JAVASCRIPT] |
936 | 938 | // }, |
937 | 939 |
|
938 | 940 | "@lwc/lwc/no-api-reassignments": { |
@@ -1601,15 +1603,15 @@ export const RULE_MAPPINGS: Record<string, {severity: SeverityLevel, tags: strin |
1601 | 1603 | // SLDS/HTML BASE RULES - @salesforce-ux/eslint-plugin-slds |
1602 | 1604 | // ================================================================================================================= |
1603 | 1605 | "@salesforce-ux/slds/enforce-bem-usage": { |
1604 | | - severity: SeverityLevel.Low, |
1605 | | - tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML] |
| 1606 | + severity: SeverityLevel.Moderate, |
| 1607 | + tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML] |
1606 | 1608 | }, |
1607 | 1609 | "@salesforce-ux/slds/modal-close-button-issue": { |
1608 | | - severity: SeverityLevel.Moderate, |
1609 | | - tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML] |
| 1610 | + severity: SeverityLevel.High, |
| 1611 | + tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML] |
1610 | 1612 | }, |
1611 | 1613 | "@salesforce-ux/slds/no-deprecated-classes-slds2": { |
1612 | 1614 | severity: SeverityLevel.High, |
1613 | | - tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML] |
| 1615 | + tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML] |
1614 | 1616 | } |
1615 | 1617 | } |
0 commit comments