New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-worker-brunch

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-worker-brunch

Eslint brunch plugin using workers

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-worker-brunch

Inspired by eslint-brunch

Adds ESLint support to Brunch.

Usage

Install the plugin via npm with npm install --save-dev eslint-worker-brunch.

Configuration settings can be set in any acceptable .eslintrc.* configuration file formats. If no configuration file can be found, this plugin will fallback to default ESLint options.

const sysPath = require("path");
exports.plugins = {
  eslint: {
    workers: require("os").cpus().length >> 1,
    config: {
      rules: {semi: 'always'},
    },
    overrides: {
      "*.coffee": ({data, path, map}) => {
        const basename = sysPath.basename(path, sysPath.extname(path));

        return {
          rules: {
            "no-unused-vars": [2, {
              "vars": "all"
              "args": "none"
              "caughtErrors": "none"
              "varsIgnorePattern": basename
            }]
          }
        };
      },
      "*.fbs": {
        rules: {
          "no-use-before-define": 0
          "no-invalid-this": 0
          "no-magic-numbers": 0
        }
      }
    },
    ignore: /^(?:bower_components|vendor)[/\\]/,
    pattern: /^src\/.*\.jsx?$/,
    warnOnly: false,
    formatter: 'table',
  },
};

Options

OptionTypeOptionalDefaultDescription
workersIntegerYesundefinedNumber of workers to use for linting. Usefull to get large project linted faster
configObjectYesundefinedOptions to pass to the ESLint engine (docs)
overridesObjectYesundefinedOverrides eslint config per file pattern
patternRegExpYes/^app\/.*\.jsx?$/Pattern of file paths to be processed (docs)
warnOnlyBooleanYestrueUse warn logging level instead of error
formatterStringYes'stylish'Built-in formatter to use (docs)

FAQs

Package last updated on 10 Mar 2019

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