Socket
Socket
Sign inDemoInstall

@valora/eslint-config-typescript

Package Overview
Dependencies
1
Maintainers
8
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @valora/eslint-config-typescript

Shareable ESLint config for Valora TypeScript packages.


Version published
Weekly downloads
5.3K
increased by32.02%
Maintainers
8
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 27 Jul 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc