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

@blockstack/eslint-config

Package Overview
Dependencies
Maintainers
9
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blockstack/eslint-config

A re-usable ESLint config for Blockstack projects

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
decreased by-6.13%
Maintainers
9
Weekly downloads
 
Created
Source

@blockstack/prettier-config

A set of ESLint configuration and rules for use in Blockstack internal projects.

Installation

yarn add --dev eslint @blockstack/eslint-config
# or, with npm
npm install --save-dev eslint @blockstack/eslint-config

Then, create or modify your .eslintrc.js file to extend this config:

module.exports = {
  extends: "@blockstack",
  parser: '@typescript-eslint/parser',
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ['./tsconfig.json'],
    ecmaVersion: 2019,
    sourceType: 'module',
  },
}

Finally, modify your package.json file to use our prettier config, which is already installed as a dependency of this package.

{
  "prettier": "@blockstack/prettier-config"
}

Overriding rules

This configuration includes a bunch of rules that have become standard in our JavaScript projects. However, if you feel the need to override a rule, you can always do so by simply adding rules to your .eslintrc.js file.

module.exports = {
  extends: ["@blockstack"],
  rules: {
    "@typescript-eslint/no-use-before-define": [2],
  }
}

FAQs

Package last updated on 09 Dec 2020

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