File tree Expand file tree Collapse file tree 3 files changed +8
-53
lines changed
packages/code-analyzer-eslint-engine Expand file tree Collapse file tree 3 files changed +8
-53
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @salesforce/code-analyzer-eslint-engine" ,
33 "description" : " Plugin package that adds 'eslint' as an engine into Salesforce Code Analyzer" ,
4- "version" : " 0.37.0 " ,
4+ "version" : " 0.37.1-SNAPSHOT " ,
55 "author" : " The Salesforce Code Analyzer Team" ,
66 "license" : " BSD-3-Clause" ,
77 "homepage" : " https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/overview" ,
1313 "main" : " dist/index.js" ,
1414 "types" : " dist/index.d.ts" ,
1515 "dependencies" : {
16- "@eslint/css" : " ^0.14.1" ,
1716 "@eslint/js" : " ^9.39.1" ,
1817 "@lwc/eslint-plugin-lwc" : " ^3.3.0" ,
1918 "@lwc/eslint-plugin-lwc-platform" : " ^6.3.0" ,
20- "@salesforce-ux/eslint-plugin-slds" : " ^1.0.6 " ,
19+ "@salesforce-ux/eslint-plugin-slds" : " ^1.0.7 " ,
2120 "@salesforce/code-analyzer-engine-api" : " 0.32.0" ,
2221 "@salesforce/code-analyzer-eslint8-engine" : " 0.9.0" ,
2322 "@salesforce/eslint-config-lwc" : " ^4.1.1" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import eslintTs from "typescript-eslint";
44import lwcEslintPluginLwcPlatform from "@lwc/eslint-plugin-lwc-platform" ;
55import salesforceEslintConfigLwc from "@salesforce/eslint-config-lwc" ;
66import sldsEslintPlugin from "@salesforce-ux/eslint-plugin-slds" ;
7- import eslintCss from "@eslint/css" ;
87import { ESLintEngineConfig } from "./config" ;
98import globals from "globals" ;
109
@@ -133,15 +132,7 @@ export class BaseConfigFactory {
133132 return sldsEslintPlugin . configs [ 'flat/recommended-css' ] . map ( ( cssConfig : Linter . Config ) => {
134133 return {
135134 ...cssConfig ,
136- files : this . engineConfig . file_extensions . css . map ( ext => `**/*${ ext } ` ) ,
137- // TODO: Remove this workaround once @salesforce -ux/eslint-plugin-slds v1.0.7+ is released.
138- // The SLDS plugin's CSS config references `language: "css/css"` but doesn't register the
139- // CSS language plugin in their plugins object. We must add it ourselves to avoid the error:
140- // "Could not find 'css' in plugin 'css'". See: https://github.com/salesforce-ux/slds-linter/issues/314
141- plugins : {
142- ...cssConfig . plugins ,
143- css : eslintCss
144- }
135+ files : this . engineConfig . file_extensions . css . map ( ext => `**/*${ ext } ` )
145136 } ;
146137 } ) ;
147138 }
You can’t perform that action at this time.
0 commit comments