@blockstack/eslint-config
A re-usable ESLint config for Blockstack projects
Last updated 2 months ago by kyranjamie .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @blockstack/eslint-config 
SYNC missed versions from official npm registry.

@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],
  }
}

Current Tags

  • 1.0.5                                ...           latest (2 months ago)

6 Versions

  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |