eslint-config-qcobjects

0.0.27 • Public • Published

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"
  }
}

/eslint-config-qcobjects/

    Package Sidebar

    Install

    npm i eslint-config-qcobjects

    Weekly Downloads

    3

    Version

    0.0.27

    License

    LGPL-3.0-or-later

    Unpacked Size

    10.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • jeanmachuca