New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
18
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

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

Usage within webpack

  1. Install eslint-loader, npm i -D eslint-loader
  2. 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

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

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