eslint-config-vizzuality
This package provides Vizzuality's .eslintrc as an extensible shared config.
Last updated a year ago by davidsingal .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-vizzuality 
SYNC missed versions from official npm registry.

eslint-config-vizzuality

This package provides Vizzuality's .eslintrc as an extensible shared config.

## Usage

We export three ESLint configurations for your usage.

Install

Unsing npm:

npx install-peerdeps --dev eslint-config-vizzuality
npm install --save-dev eslint-config-vizzuality

Using yarn:

yarn add eslint@5.7.0 \
  eslint-config-airbnb@17.1.0 \
  eslint-plugin-import@2.14.0 \
  eslint-plugin-jsx-a11y@6.1.1 \
  eslint-plugin-react@7.11.0 \
  eslint-config-vizzuality@latest \
  --dev

Add "extends": "vizzuality" to your .eslintrc

Example of .eslintrc.json:

{
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  },
  "extends": [
    "vizzuality"
  ]
}

Add script to in your package.json:

{
  "scripts": {
    ...
    "lint": "eslint --ext .js --ext .jsx ."
  }
}

And execute eslint running:

yarn lint

Recommendations

Pre-commit hooks

As a good practice running eslint only in git staged files using (lint-staged)[https://github.com/okonet/lint-staged] will have quicker analysis and ensure quality in each commit.

And it is as easy as install the dependency:

npm install lint-staged

or

yarn add lint-staged

And add the following code to the package.json:

  "scripts": {
    "precommit": "lint-staged"
  },
  "lint-staged": {
    "**/*.js": [
      "eslint --quiet --fix",
      "git add"
    ]
  },

Current Tags

  • 1.3.0                                ...           latest (a year ago)

17 Versions

  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 9
Dependencies (0)
None
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |