A SCSS/Sass linter based on sass-lint that enforces a 'happiness' style guide, similar to the JavaScript happiness linter. Current stable version is 5.3.0 (last released in 2017). It provides a CLI tool and Node.js API to check .scss and .sass files for style errors. Key differentiators: it is a simple, opinionated linter with minimal configuration, intended to bring consistency without debate. However, the project is no longer maintained, and sass-lint itself is deprecated in favor of stylelint. Use in legacy projects only.
npm install happiness-scssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CLI usage and Node.js API for linting SCSS/Sass files using happiness-scss.
Migrate to stylelint with stylelint-config-standard-scss.
Switch to stylelint and stylelint-scss plugin.
Use '--config' flag to specify custom config file if needed.
Explicitly add ignore patterns for other directories using -i option.
Run 'npm install sass-lint' as a dependency.
Install globally: 'npm install -g happiness-scss' or use npx: 'npx happiness-scss'.
Use 'const happiness = require('happiness-scss');' and call happiness.lintFiles() from v5+.