0.0.18-branch-2400-addkeytoarrays-20180814-2233 • Published 8 years ago
eslint-plugin-iqvia v0.0.18-branch-2400-addkeytoarrays-20180814-2233
eslint-plugin-iqvia
This package includes the shareable ESLint configuration used by IQVIA.
Usage in Projects
Install this package and ESLint:
yarn add --dev eslint-plugin-iqvia eslint@4.19.1Either add the following line to your
package.jsonfile:"eslintConfig": { "extends": [ "eslint:recommended", "plugin:iqvia/recommended" ] }Or, add a
.eslintrc.jsfile instead:module.exports = { extends: [ "eslint:recommended", "plugin:iqvia/recommended", ], };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 lintEnable 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.0Then 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:
- brace-style
- curly
- func-style
- import/newline-after-import
- import/no-named-as-default
- import/extensions
- import/order
- jasmine/missing-expect
- jasmine/no-spec-dupes
- jasmine/no-suite-dupes
- jest/prefer-to-be-null
- jest/prefer-to-be-undefined
- no-use-before-define
- no-sequences
- no-tabs
- no-trailing-spaces
- no-var
- one-var
- one-var-declaration-per-line
- prefer-arrow-callback
- prefer-const
- prettier
- qi-react-intl
- react/jsx-boolean-value
- react/jsx-no-literals
- sort-imports
- ternaries
0.0.22
8 years ago
0.0.21
8 years ago
0.0.20
8 years ago
0.0.19
8 years ago
0.0.18-branch-91-ci-cd-20180808-2210
8 years ago
0.0.18-branch-91-ci-cd-20180808-2209
8 years ago
0.0.18-branch-91-ci-cd-20180808-1506
8 years ago
0.0.18
8 years ago
0.0.17
8 years ago
0.0.16
8 years ago
0.0.15
8 years ago
0.0.14
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago