
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
broccoli-style-lint
Advanced tools
Add stylelint to your broccoli build pipeline with ease.
Currently doesn't support ignored files configuration
npm install --save-dev broccoli-style-lint
###Basic
var StyleLint = require('broccoli-style-lint');
// path to files that need linting
var node = new StyleLint('app/styles');
the default output will be the same SCSS files, in the same tree structure.
###Generating Tests
var node = new StyleLint('app/styles', {generateTests:true});
Instead of receiving a tree of scss files, the plugin will output a tree of test files
original tree
.
├── scssfile1.sscss
└── nested-dir/
├── scssfile2.scss
output tree
.
├── scssfile1.stylelint-test.js
└── nested-dir/
├── scssfile2.stylelint-test.js
var StyleLint = require('broccoli-style-lint');
var Funnel = require('broccoli-funnel');
// path to files that need linting
var node = new StyleLint('app/styles');
// to extract tests from linter output
new Funnel(node, {
srcDir:'tests',
});
See below for more advaned test configurations
linterConfig {Object}
Hash as specified by stylelint
doesn't accept files option
onError {function}
A hook that allows you to do whatever you want
testFailingFiles {boolean}
If true it will generate a unit test if the file fails lint.
testPassingFiles {boolean}
If true it will generate a unit test if the passes fails lint.
generateTests {boolean}
If true it will generate tests for both passing and failing tests, overrides the testPassingFiles and testFailingFiles
disableConsoleLogging {boolean}
If true it will disable logging of errors to console
FAQs
Broccoli stylelint plugin
We found that broccoli-style-lint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.