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

@bothrs/eslint-config

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bothrs/eslint-config

ESLint configuration used at Bothrs.

  • 1.6.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
133
decreased by-54.61%
Maintainers
5
Weekly downloads
 
Created
Source

Bothrs: ESLint configuration

A very opinionated ESLint configuration used at Bothrs.

Prerequisites

  • Prettier
  • Typescript

Installation

Install the package as a devDependency.

yarn add @bothrs/eslint-config -D

Add the package to the extends-section of your eslint configuration.

Example .eslintrc.js file:

// .eslintrc.js

module.exports = {
  type: "module",
  env: {
    es6: true,
    node: true,
  },
  extends: [
    '@bothrs/eslint-config',

    // Additionally add rules for frameworks
    '@bothrs/eslint-config/jest',
    '@bothrs/eslint-config/react',
    '@bothrs/eslint-config/react-native',
  ],
  // Add parserOptions when using Typescript
  parser: '@typescript-eslint/parser',
  parserOptions: {
    project: './tsconfig.json',
  },
}

Rules

This ESLint config is a collection of plugins and custom rules.

Plugins

Keywords

FAQs

Package last updated on 17 May 2022

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