Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@start/plugin-lib-eslint

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@start/plugin-lib-eslint

🚷 Lint and/or fix code using ESLint

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
26
333.33%
Maintainers
4
Weekly downloads
 
Created
Source

🚷 plugin-lib-eslint

Lint and/or fix code using ESLint.

Install

$ yarn add --dev @start/plugin-lib-eslint

Usage

Signature

eslint(options?: {}, formatter?: string)

options

ESLint CLIEngine options.

Default:

{
  cache: true,
  cacheLocation: 'node_modules/.cache/eslint'
}

formatter

ESLint formatter.

Example

import sequence from '@start/plugin-sequence'
import findGitStaged from '@start/plugin-find-git-staged'
import read from '@start/plugin-read'
import eslint from '@start/plugin-lib-eslint'

export const task = () =>
  sequence(
    findGitStaged('src/**/*.js'),
    read,
    eslint({
      rules: {
        'no-undef': 'error'
      }
    })
  )
import sequence from '@start/plugin-sequence'
import find from '@start/plugin-find'
import read from '@start/plugin-read'
import eslint from '@start/plugin-lib-eslint'
import overwrite from '@start/plugin-overwrite'

export const task = () =>
  sequence(
    find('src/**/*.js'),
    read,
    eslint({ fix: true }),
    overwrite
  )

Keywords

tasks

FAQs

Package last updated on 14 Aug 2020

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