
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.