@valora/eslint-config-typescript

1.0.2 • Public • Published

@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    2,486
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    2,486
  • 1.0.1
    135
  • 1.0.0
    105
  • 0.0.1
    32

Package Sidebar

Install

npm i @valora/eslint-config-typescript

Weekly Downloads

2,410

Version

1.0.2

License

Apache-2.0

Unpacked Size

15.4 kB

Total Files

5

Last publish

Collaborators

  • satishr
  • valora-bot
  • jeanregisser
  • jh2oman
  • dievazqu
  • jophish
  • caj-valora
  • sbw