Socket
Socket
Sign inDemoInstall

eslint-config-qcobjects

Package Overview
Dependencies
102
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-qcobjects

ESLint Config for QCObjects


Version published
Weekly downloads
20
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-config-qcobjects

ESLint Config for QCObjects

Install

  npm i -D eslint-config-qcobjects

NOTE: Make sure you have installed QCObjects and ESLint before you use this

To install them

  npm i --save-dev qcobjects eslint

## Settings

Create a .eslintrc.json file with this content

  {
    "extends": [
      "qcobjects"
    ]
  }

Extended settings to work with modules

Create a .eslintrc.json file with this content

{
    "extends": [
      "qcobjects"
    ],
    "ecmaFeatures": {
        "modules": true,
        "spread" : true,
        "restParams" : true
    },
    "parserOptions": {
        "sourceType": "module"
    }
  }

Include eslint in your test script in package.json

  npx eslint . --fix
{
  "scripts":{
    "test": "npx eslint . --fix"
  }
}

Keywords

FAQs

Last updated on 25 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc