Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions packages/code-analyzer-eslint-engine/src/rule-mappings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {COMMON_TAGS, SeverityLevel} from "@salesforce/code-analyzer-engine-api";

// Convenience tag to apply to the LWC rules
// Convenience tag to apply to framework specific rules
const LWC = "LWC";
const SLDS = "SLDS";

/**
* The following is a list of the base rules that we have reviewed where we have designated the rule tags and
Expand Down Expand Up @@ -1601,15 +1602,15 @@ export const RULE_MAPPINGS: Record<string, {severity: SeverityLevel, tags: strin
// SLDS/HTML BASE RULES - @salesforce-ux/eslint-plugin-slds
// =================================================================================================================
"@salesforce-ux/slds/enforce-bem-usage": {
severity: SeverityLevel.Low,
tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML]
severity: SeverityLevel.Moderate,
tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML]
},
"@salesforce-ux/slds/modal-close-button-issue": {
severity: SeverityLevel.Moderate,
tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.BEST_PRACTICES, COMMON_TAGS.LANGUAGES.HTML]
severity: SeverityLevel.High,
tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML]
},
"@salesforce-ux/slds/no-deprecated-classes-slds2": {
severity: SeverityLevel.High,
tags: [COMMON_TAGS.RECOMMENDED, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML]
tags: [COMMON_TAGS.RECOMMENDED, SLDS, COMMON_TAGS.CATEGORIES.ERROR_PRONE, COMMON_TAGS.LANGUAGES.HTML]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"resourceUrls": [
"https://developer.salesforce.com/docs/platform/slds-linter/guide/reference-rules.html#enforce-bem-usage"
],
"severityLevel": 4,
"severityLevel": 3,
"tags": [
"Recommended",
"SLDS",
"BestPractices",
"HTML"
]
Expand All @@ -18,10 +19,11 @@
"resourceUrls": [
"https://developer.salesforce.com/docs/platform/slds-linter/guide/reference-rules.html#modal-close-button-issue"
],
"severityLevel": 3,
"severityLevel": 2,
"tags": [
"Recommended",
"BestPractices",
"SLDS",
"ErrorProne",
"HTML"
]
},
Expand All @@ -34,6 +36,7 @@
"severityLevel": 2,
"tags": [
"Recommended",
"SLDS",
"ErrorProne",
"HTML"
]
Expand Down
Loading