Sass
sass/no-node-sass
Compile Sass with Dart Sass (the sass or sass-embedded package), never node-sass, which is deprecated LibSass.
umiarkowanastatycznefe-sass
Dlaczego
node-sass wraps LibSass, which the Sass team deprecated: it gets no new features (no @use, no math.div, no modern colour functions), builds a native binary that often fails to install on new Node.js versions, and compiles some code differently from the Sass everyone else runs.
Poprawka
Replace it with sass (or sass-embedded, which is faster on large projects) and point the bundler at it; Vite, webpack's sass-loader and the framework CLIs pick it up by name. Then fix the deprecation warnings Dart Sass prints, starting with @import (sass/no-import).
Przykłady
// bad
"devDependencies": { "node-sass": "^9.0.0" }
// good
"devDependencies": { "sass": "^1.108.2" }Źródła
Fakty
- Identyfikator
sass/no-node-sass- Waga
- umiarkowana
- Sprawdzanie
- statyczne sprawdzane w kodzie źródłowym przez
audit - Dotyczy plików
project- Tylko w projektach z
sass- Uczy jej skill
fe-sassSass (SCSS)- Od wersji
- 0.1.0
Przeczytaj w terminalu
npx github:dawidolko/frontend-skills explain sass/no-node-sass