1.0.2 • Published 10 months ago

@valora/eslint-config-typescript v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
10 months ago

@valora/eslint-config-typescript

Shareable ESLint config for Valora TypeScript packages.

Installing

Add the ESLint config in your package:

yarn add @valora/eslint-config-typescript --dev

and add all the peerDependencies.

Using

Add a script to your package.json like:

{
  "scripts": {
    "lint": "eslint --ext=.tsx,.ts src/"
  }
}

and create a .eslintrc.js file:

module.exports = {
  extends: ['@valora/eslint-config-typescript'],
  // The @typescript-eslint/no-floating-promises and @typescript-eslint/no-misused-promises
  // plugins require a full compilation, so pass the `tsconfig.json` config file.
  parserOptions: {
    project: './tsconfig.json',
  },
  ignorePatterns: ['**/__mocks__/**', '**/lcov-report/**', 'vendor', '.bundle'],
}

Resources

ESLint Shareable Configs.

Publishing

Run yarn release and follow the instructions.

1.0.2

10 months ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

3 years ago