Gathering detailed insights and metrics for ember-cli-sass-lint
Gathering detailed insights and metrics for ember-cli-sass-lint
Gathering detailed insights and metrics for ember-cli-sass-lint
Gathering detailed insights and metrics for ember-cli-sass-lint
ember-cli-sass
Use Sass to preprocess your ember-cli app's files, with support for sourceMaps and include paths
ember-cli-autoprefixer
Process styles in an ember-cli application using Autoprefixer
ember-template-lint
Linter for Ember or Handlebars templates.
ember-template-imports
Tooling support for gjs and gts component authoring
npm install ember-cli-sass-lint
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
Node Version
NPM Version
7 Stars
32 Commits
11 Forks
4 Watching
2 Branches
8 Contributors
Updated on 27 Jun 2020
JavaScript (81.38%)
HTML (15.57%)
CSS (3.04%)
Cumulative downloads
Total Downloads
Last day
42.9%
110
Compared to previous day
Last week
-16.6%
572
Compared to previous week
Last month
-37.5%
2,273
Compared to previous month
Last year
-26.9%
68,883
Compared to previous year
24
This is a pure Node.js scss/scss linter for Ember CLI apps and addons.
1ember install ember-cli-sass-lint
And that's it! This addon will automatically parse your sass/scss files.
Linting configuration can be added in a .sass-lint.yml
file as required by Sass Lint. For example:
1# my-project/.sass-lint.yml 2 3rules: 4 extends-before-mixins: 2 # 2 throws error 5 placeholders-in-extend: 1 # 1 logs warning 6 extends-before-declarations: 0 # 0 means no errors or warnings
Options can be passed in your ember-cli-build.js
in the sassLint
object. The defaults are shown below:
1// my-project/ember-cli-build.js
2
3var app = new EmberApp(defaults, {
4 sassLint: {
5 configPath: '.sass-lint.yml',
6 shouldThrowExceptions: true,
7 shouldLog: true
8 }
9});
Type | String |
---|---|
Default | '.sass-lint.yml' |
A name of the file your config is contained in. This should be a .yml
file, preferrably in the root of the Broccoli project.
Type | Boolean |
---|---|
Default | true |
By default, sass-lint
throws exceptions when an error is encountered (note, warnings do not throw errors). Usually this is the preferred functionality.
However, you can stop errors being thrown and, therefore, errors stopping the build process by setting shouldThrowExceptions: false
. Use with caution!
Type | Boolean |
---|---|
Default | true |
Whether to log warnings and errors to the console. When this is set to false
you will not be notified or linting errors!
Type | Function |
---|---|
Param | fileLint (Object) |
You may override this plugin's default logError()
function should you need to intercept file lint objects (e.g. when testing this plugin).
1// my-project/ember-cli-build.js 2var errors = []; 3 4var app = new EmberApp(defaults, { 5 sassLint: { 6 logError: function(fileLint) { 7 errors.push(fileLint); 8 } 9 } 10});
fileLint
is passed in the format returned by sass-lint
's lintText()
method. you can format it using the format()
function in the sass-lint
package (npm install --save-dev sass-lint
).
Note, when you override logError()
this plugin won't log any warnings or errors.
All tests are currently contained in tests/runner.js
. This uses Mocha/Chai, not Ember Testing. Tests can be ran with:
npm test
You should also check that the dummy app's styles are still correctly compiled by running the ember app using ember s
.
PRs are welcomed and should be issued to the master
branch.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/24 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
137 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More