Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-swiffer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-swiffer

A Broccoli plugin for Swiffer the Dust linter

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

broccoli-swiffer

A Broccoli plugin which uses swiffer to lint Dust templates.

How to install?

$ npm install broccoli-swiffer --save-dev

How to use?

In your Brocfile.js:

var dustLint = require('broccoli-swiffer');
var outputTree = dustLint(inputTree, options);

Options

  • extensions: An array of file extensions to process, default ['tl', 'dust'].
  • throwOnError: {boolean} cause exception error if linting fails
  • rules: {Object} the rules that .swifferrc would contain
var dustLint = require('broccoli-swiffer');
var outputTree = dustLint(inputTree, {
    extensions: ['dustjs'] // look for files.dustjs instead
    rules: [{
      name: 'it is a trap',
      description: 'stop using @bar',
      target: {
        type: '@',
        matches: 'bar'
      }
    }],
    // fail on lint error, but not in prod
    throwOnError: someAppThing.isProd ? false : true
});

Keywords

FAQs

Package last updated on 01 Aug 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc