SonarSource / eslint-plugin-sonarjs

SonarJS rules for ESLint
GNU Lesser General Public License v3.0
1.19k stars 73 forks source link

Rule: CSS files should not be empty #436

Closed dnlmelo closed 9 months ago

dnlmelo commented 10 months ago

I want to request a feature.

CSS files should not be empty

Please, add this rule. I have looking for something like, but not found

yassin-kammoun-sonarsource commented 9 months ago

Dear @dnlmelo,

Thank you for your valuable feedback!

It appears there may be a slight misunderstanding. This project is specifically focused on a subset of SonarJS rules for JavaScript/TypeScript, delivered through an ESLint plugin. Unfortunately, it does not encompass CSS.

However, I'd like to point out that SonarJS is a comprehensive code analyzer for JavaScript, TypeScript, and also CSS. The rule you're seeking, namely that CSS files should not be empty (S4667), is provided by SonarJS.

To leverage this rule directly from your IDE, I recommend using SonarLint. It's a complimentary IDE plugin that offers linting for several languages, including CSS.

I hope this information is helpful!