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

@tabula/eslint-config

Package Overview
Dependencies
Maintainers
0
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

  • 1.0.0-next.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
190
increased by1627.27%
Maintainers
0
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-x
  • unicorn
  • prettier

We add support of React for browser:

We add support of testing tools:

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 utilities to build flat config, also configs and presets, which can be used for build your own configuration.

The defineConfig utility accepts record with config definitions. Each definition is a ESLint flat config itself, or object with files, ignores and configs fields.

It's function build flat config with defined names to improve debug and readability.

import { defineConfig } from '@tabula/eslint-config';

export default defineConfig({
  typescript: {
    files: ['{src,stories}/**/*.{ts,tsx}'],
    ignores: ['src/**/*.js'],

    configs: presets.typescript(),
  },

  stories: {
    files: ['stories/**/*.{ts,tsx}'],

    rules: {
      'react/no-multi-comp': 'off',
    },
  }
});

Also package exports configs and presets objects, which provide of single configs or configs list.

License

This project is ISC licensed.

Keywords

FAQs

Package last updated on 18 Nov 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