Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-vazco

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-vazco

ESLint rules used across Vazco.eu in Meteor/React projects

  • 4.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
544
decreased by-18.2%
Maintainers
6
Weekly downloads
 
Created
Source

vazco/eslint-config-vazco

Build Status Greenkeeper badge peerDependencies devDependencies

Install

For ESLint 5.x

To install simply add this config (along with ESLint and required dependencies) to your project dev-dependencies:

npm install --save-dev babel-eslint
npm install --save-dev eslint
npm install --save-dev eslint-config-vazco
npm install --save-dev eslint-plugin-babel
npm install --save-dev eslint-plugin-react
npm install --save-dev eslint-plugin-vazco

# If you want to use prettier
npm install --save-dev prettier
npm install --save-dev eslint-plugin-prettier
npm install --save-dev eslint-config-prettier

Ready to use one-liner (for default config):

npm i -D babel-eslint eslint eslint-config-vazco eslint-plugin-babel eslint-plugin-react eslint-plugin-vazco

Ready to use two-liner (for prettier config), requires npm 5+:

npm i -D eslint-config-vazco
npx install-peerdeps --dev eslint-config-vazco
Previous ESLint versions
For ESLint 4.x

We recommend to upgrade to ESLint 5, but if you must you can use older dependencies and config from 3.x branch:

To install simply add this config (along with ESLint and required dependencies) to your project dev-dependencies:

Ready to use one-liner (for default config):

npm i -D babel-eslint eslint eslint-config-vazco@3 eslint-plugin-babel eslint-plugin-react eslint-plugin-vazco

Ready to use two-liner (for prettier config), requires npm 5+:

npm i -D eslint-config-vazco@3
npx install-peerdeps --dev eslint-config-vazco@3
ESLint 3.x

We strongly recommend to upgrade to ESLint 5, but if you must you can use older dependencies and config from 2.x branch:

npm i -D eslint@3 babel-eslint@7 eslint-config-vazco@2 eslint-plugin-babel@4 eslint-plugin-react@6 eslint-plugin-vazco@1
ESLint 2.x

If you want to use this config with ESLint 2.x (required e.g. for Node 0.10) you can install config for version 1.x:

npm i -D eslint@2 eslint-config-vazco@1 babel-eslint@6 eslint-plugin-babel@3 eslint-plugin-react@5

Usage

Extend your project ESLint rules with our config. This can be done in few ways:

.eslintrc / .eslintrc.json
{
    "extends": "vazco",
    "rules": {
        // custom project rules
    }
}
.eslintrc.yaml
extends:
  - vazco

rules:
  // custom project rules
package.json
{
    "eslintConfig": {
        "extends": "vazco"
    }
}

Alternative config - vazco/prettier

Prettier is an opinionated code formatter: it removes all styling and enforces outputted code to use a consistent style.

Usage is the same as in examples above, just replace "extends": "vazco" with "extends": "vazco/prettier".

{
    "extends": "vazco/prettier"
}

This config is more strict, and using eslint --fix will completely reformat your code using prettier.

Prettier workflow

Introducing prettier to project can be problematic. To avoid merge conflicts, all active branches should reformat code at the same time.

Later on code could be --fixed on every commit, with tools like lint-staged and pre-commit or husky

Changelog

All changes introduces in the config are tracked inside changelog file.

How to change the rules

All information regarding making changes in the config and versioning details can be found in contributing file.

Please read them before opening a Pull Request or suggesting a change.

License

Like every package maintained by Vazco, eslint-config-vazco is MIT licensed.

Keywords

FAQs

Package last updated on 12 Mar 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc