Registry / testing / ember-cli-scss-lint

ember-cli-scss-lint

JSON →
library2.4.1jsnpmunverified

Ember CLI addon that integrates sass-lint into the build pipeline, automatically linting SCSS files during ember serve, test, or build. Version 2.4.1 is the latest stable release; this package is in maintenance mode and relies on the deprecated sass-lint package (last released in 2018). It requires Ember.js v2.18+, Ember CLI v2.13+, and Node >=10. Differentiates from alternative Ember SCSS linting addons by using the Node.js-based sass-lint (not the Ruby scss-lint) and by being a straightforward drop-in that reads configuration from .sass-lint.yml or ember-cli-build.js.

npm install ember-cli-scss-lint
INSTALL
IMPORT
SIG · EMBER-CLI-SCSS-LIN
E
ember-cli-scss-lint
testingjavascriptv2.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ember-cli-scss-lint
ember install ember-cli-scss-lint
npm install --save-dev ember-cli-scss-lint
You must use 'ember install' to ensure the addon is properly registered in the consuming app.
scssLintOptions
let app = new EmberApp(defaults, { scssLintOptions: { ... } });
let app = new EmberApp(defaults, { scssLint: { ... } });
The configuration key in ember-cli-build.js must be 'scssLintOptions', not 'scssLint'.
.sass-lint.yml
Create a .sass-lint.yml file in the project root.
Create .scss-lint.yml (for Ruby scss-lint) or .eslintrc (this is for JS).
The configuration file must be named .sass-lint.yml and placed in the root of the Ember project.

Installs the addon, adds a minimal .sass-lint.yml config, and triggers linting during an Ember build.

// Step 1: Install the addon ember install ember-cli-scss-lint // Step 2: Create .sass-lint.yml in project root with sample rules: // files: // include: '**/*.scss' // options: // formatter: stylish // merge-default-rules: false // rules: // border-zero: // - 1 // - convention: zero // Step 3: Run ember server – linting will happen automatically on build. ember serve
Debug
Known issues
deprecatedThis addon depends on sass-lint, which is deprecated and no longer maintained (last release 2018). Newer Ember projects should consider using sass-lint's successor, stylelint with stylelint-scss.
fix
Migrate to stylelint with stylelint-scss (or use ember-cli-stylelint).
affects: >=2.0.0
deprecatedNode.js 10 is the minimum required; Node 6 and 8 are no longer supported by the addon (engines field says >=10).
fix
Ensure your Node.js version is 10 or higher (preferably LTS).
affects: >=2.4.0
gotchaThe sass-lint package (not this addon) has been deprecated in favor of stylelint. This means no new rules or bug fixes will come from the underlying linter.
fix
Consider moving to stylelint for SCSS linting; install ember-cli-stylelint and configure accordingly.
affects: >=2.0.0
deprecatedEmber CLI versions before 2.13 are not supported (compatibility says v2.13+).
fix
Upgrade your Ember CLI version to at least 2.13.
affects: <2.0.0
Errors
Common errors & fixes
Cannot find module 'sass-lint'
The sass-lint package is missing from node_modules.
fix
Run 'npm install' (or 'yarn') to ensure sass-lint is installed as a transitive dependency.
No valid configuration file found
Missing or misnamed .sass-lint.yml file.
fix
Create a .sass-lint.yml file in the root of your Ember project with proper rules.
The addon 'ember-cli-scss-lint' requires the ember-cli-babel addon to be installed
Missing ember-cli-babel dependency.
fix
Run 'ember install ember-cli-babel' then reinstall this addon.
Upgrade
Version history
2.4.1latest on npm
Audit
Dependencies
ember-cli-babelrequiredRequired for addon to work with Ember CLI
Agent activity
2 hits · last 30 days
node
2
Resources
ember-cli-scss-lint — npm install ember-cli-scss-lint · libregistry