Socket
Book a DemoInstallSign in
Socket

@tivix/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tivix/eslint-config

Tivix's ESLint config

1.2.5
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

@tivix/eslint-config

This package contains a root ESLint config, with automatic support for TypeScript and React.

Methodology

Style rules

As linting configs are often heavily debated, this config uses Prettier for most code-style choices.

The base config is eslint-config-airbnb.

TypeScript support

When working with TypeScript, the recommended rules from @typescript-eslint/eslint-plugin are applied.

You should also ensure that your IDE is set up to run ESLint on TypeScript files. In VSCode, this setting is:

  "eslint.validate": [
      "javascript",
      "javascriptreact",
      "typescript",
      "typescriptreact"
  ],

Installation

To manually install, add this package to the "extends" array in your project’s ESLint config.

{
  "extends": ["@tivix/eslint-config/typescript-react"]
}

The following configs are available:

  • @tivix/typescript
  • @tivix/typescript-react
  • @tivix/react
  • @tivix/eslint-config

Config generator

For advanced cases, you can use the exported generateConfig function to build a config.

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.