DEV Community

Discussion on: Migrating and configuring Eslint with Angular 11

Collapse
 
glyder profile image
George Pagotelis

Agree with the other person about .scss requires a link!

SCSS is difficult to find ESLINT that works in Angular. For example:
a {
@include flexbox(row)
height: 100%;
padding: 20px;
border-radius: 3px;
}

The above should be picked up in linting (missing semicolon on flexbox) but ESLINT doesn't.

If I open the file vscode-prettier or eslint IS picking it up.

I have tried (npmjs.com/package/eslint-plugin-cs...) but doesn't appear to trigger:
"overrides": [
{
// TODO: this isn't triggering on flexbox semicolon errors
"files": "*.scss",
"plugins": ["css-modules"],
"extends": ["plugin:css-modules/recommended"],
"rules": {
"css-modules/no-unused-class": [2, { "camelCase": true }],
"css-modules/no-undef-class": [2, { "camelCase": true }]
}
},