@valora/eslint-config-typescript

1.0.4 • Public • Published

@valora/eslint-config-typescript

GitHub License npm version GitHub Workflow Status PRs Welcome

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.

Contributing

Readme

Keywords

none

Package Sidebar

Install

npm i @valora/eslint-config-typescript

Weekly Downloads

2,848

Version

1.0.4

License

Apache-2.0

Unpacked Size

16.8 kB

Total Files

4

Last publish

Collaborators

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