eslint-plugin-iqvia
ESLint configuration used by IQVIA
Last updated a year ago by eslint-plugin-iqvia-ci .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-iqvia 
SYNC missed versions from official npm registry.

eslint-plugin-iqvia

This package includes the shareable ESLint configuration used by IQVIA.

Usage in Projects

  1. Install this package and ESLint:

    yarn add --dev eslint-plugin-iqvia eslint@4.19.1
    
  2. Either add the following line to your package.json file:

    "eslintConfig": {
      "extends": [
        "eslint:recommended",
        "plugin:iqvia/recommended"
      ]
    }
    

    Or, add a .eslintrc.js file instead:

    module.exports = {
      extends: [
        "eslint:recommended",
        "plugin:iqvia/recommended",
      ],
    };
    
  3. Enable running from the command line by adding these scripts to package.json:

    "scripts": {
      ...
      "linter": "eslint --max-warnings 0",
      "lint": "yarn linter . --ignore-pattern '!.*'"
    },
    

    usage:

    $ yarn lint
    
  4. Enable linting on every commit by adding a commit hook:

    Install husky and lint-staged:

    yarn add --dev husky@0.14.3 lint-staged@6.0.0
    

    Then add the following to package.json:

    "scripts": {
      ...
      "precommit": "lint-staged"
    },
    "lint-staged": {
      "./*.js": "lint"
    },
    

That's it! Learn more about configuring ESLint on the ESLint website.

Extends:

Rules:

Current Tags

  • 0.0.22                                ...           latest (a year ago)

16 Versions

  • 0.0.18-branch-2400-addkeytoarrays-20180814-2233                                ...           a year ago
  • 0.0.18-branch-addarrowbodystylerule-20180814-2232                                ...           a year ago
  • 0.0.18-branch-91-ci-cd-20180808-1506                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           a year ago
  • 0.0.19                                ...           a year ago
  • 0.0.18                                ...           a year ago
  • 0.0.17 [deprecated]           ...           a year ago
  • 0.0.16 [deprecated]           ...           a year ago
  • 0.0.15 [deprecated]           ...           a year ago
  • 0.0.14 [deprecated]           ...           a year ago
  • 0.0.13 [deprecated]           ...           a year ago
  • 0.0.12 [deprecated]           ...           a year ago
  • 0.0.11 [deprecated]           ...           a year ago
  • 0.0.10 [deprecated]           ...           a year ago
Downloads
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |