Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
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
The npm package broccoli-style-lint receives a total of 0 weekly downloads. As such, broccoli-style-lint popularity was classified as not popular.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.