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

eslint-config-vizia

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-vizia

The common vizia linter configs.

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-78.79%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-vizia

Common ESLint shareable config files for vizia.

Install into your project:

npm install --save eslint eslint-config-vizia

Example uses:

ES5 browser project.

Make a .eslintrc.json config file with the following in:

{
    "env": {
        "browser": true
    }
    "extends": "vizia"
}

You must specify your environment in the "env" part. You can also customize rules as you like.

ES2015 Node.js project.

As before the environment needs to be specified. Since Node 6+ has good ES2015 feature coverage, it makes sense to use ES2015 features. A sharable config is provided for ES2015 code:

{
    "env": {
        "node": true
    }
    "extends": "vizia/ES2015"
}

Internally this config extends the base vizia config.

Tests

Tests often look like bad code. They're prone to many more lines of code per file than healthy production code etc. It's recommended to have a .eslintrc.json file in your test directory to address this. ESLint extends a config found in a directory above automatically, so you only need to turn off rules that become noisy in tests. Such a file might look like:

{
    "env": {
        "mocha": true
    },
    "rules": {
        "max-statements": 'off',
        "max-lines": 'off'
    }
}

Keywords

FAQs

Package last updated on 26 Jun 2017

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