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

metalsmith-xo

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

metalsmith-xo

Metalsmith XO plugin

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

metalsmith-xo

An XO plugin for Metalsmith that uses metalsmith-elint and eslint-config-xo underneath for a minimal config linter.

Installation

npm install --save metalsmith-xo

Getting Started

If you haven't checked out Metalsmith before, head over to their website and check out the documentation.

Usage

var xo = require('metalsmith-xo');

metalsmith
  .use(xo());

Configuration

Enable ES2015+ features

metalsmith.use(xo('esnext'));

Enable browser features

metalsmith.use(xo('browser'));

Custom metalsmith-eslint config

By default it will lint all .js files except for files in vendor, bower_components, and node_modules. If you wish to override these paths you can by specifying them below.

var config = {
	src: ['**/*.js','!ignore-this-folder/**/*.js']
}
metalsmith.use(xo('browser', config));

You can pass esnext or browser to the function to turn on the rules you need. However, esnext requires some extra modules that you can read over there.

Keywords

FAQs

Package last updated on 21 Oct 2015

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