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

eslint-config-distributed-lab

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-distributed-lab

Shared eslint config for Distributed Lab projects.

1.3.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

Overview

This is a shared eslint config based on JS standard code style.

How to add it to your project

  • Add dev dependencies

    npm i -D eslint eslint-config-distributed-lab eslint-plugin-chai-friendly eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard eslint-config-standard babel-eslint
    

    Additional plugins for Vue.js:

    npm i -D eslint-plugin-vue@next
    
  • Add eslintrc.js config to root of your project

    module.exports = {
        extends: 'distributed-lab',
        parserOptions: {},
        env: {},
        plugins: [],
        rules: {}
    }
    

    Available configurations:

    • distributed-lab - basic config
    • distributed-lab/node - for node.js packages and servers
    • distributed-lab/vue - for Vue.js apps
  • Add the npm script to your package.json.

    For node.js:

    {
        // ...
        "scripts": {
            //...
            "lint": "eslint src --cache --fix"
        }
    }
    

    For Vue.js:

        {
        // ...
        "scripts": {
            //...
            "lint": "eslint '{src,specs}/**/*.{js,vue}' --fix"
            // src and specs are directories that you want to lint
        }
    }
    
  • Run the linter

    npm run lint
    

Keywords

eslint

FAQs

Package last updated on 01 May 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