🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@studyportals/eslint-config

Package Overview
Dependencies
Maintainers
18
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studyportals/eslint-config

Eslint config for studyportals

0.0.7
latest
npm
Version published
Weekly downloads
6
500%
Maintainers
18
Weekly downloads
 
Created
Source

Installation

Install the package

npm install --save-dev eslint @studyportals/eslint-config

Add beneath code to your package.json

"eslintConfig": {
  "extends": "@studyportals/eslint-config"
}

Vue

For vue projects you also need to install some extra depencies:

npm install --save-dev eslint-plugin-html eslint-plugin-vue

Add beneath code to your package.json

"eslintConfig": {
  "extends": "@studyportals/eslint-config/vue"
}

Basic usage

Usage within your command line

  • Make sure you have the packages installed.
  • Run eslint against your desired file(s), npx eslint --ext js,vue MyComponent.vue

Usage within webpack

  • Install eslint-loader, npm i -D eslint-loader
  • Add beneath rule to your webpack config file.
// webpack.config.js
module.exports = {
  // ... other options
  module: {
    rules: [
      {
        enforce: 'pre',
        test: /\.(js|vue)$/,
        loader: 'eslint-loader',
        exclude: /node_modules/
      }
    ]
  }
}

Guidelines

Coming soon!

Keywords

eslint

FAQs

Package last updated on 19 Sep 2018

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