Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tabula/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tabula/eslint-config

Configuration for the ESLint

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
190
increased by1627.27%
Maintainers
1
Weekly downloads
 
Created
Source

@tabula/eslint-config

This package provides ESLint configurators as shared configs.

Rules

We use recommended rules from the following packages:

  • eslint
  • @typescript-eslint
  • import
  • unicorn
  • prettier

We add support of React for browser:

Also, we add our opinionated rules configuration on top of it.

Installation

Use the package manager pnpm to install @tabula/eslint-config.

pnpm add @tabula/eslint-config --save-dev

You can use npm or yarn too.

Usage

The package provides browser and node presets. Add an .eslintrc.json configuration file to the root of your project for browser:

{
  "extends": "@tabula/eslint-config/browser",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

or for browser tests:

{
  "extends": "@tabula/eslint-config/browser-tests",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

or for Node.js:

{
  "extends": "@tabula/eslint-config/node",

  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

Parser Options

Pay attention to the parserOptions.project option.

We use rules which require type checking. The parser must be configured properly for them.

See more information about parserOptions.project here.

License

This project is ISC licensed.

Keywords

FAQs

Package last updated on 05 Apr 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc