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

@gathermade/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gathermade/eslint-config

GatherMade's shared ESLint configurations.

  • 2.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

@gathermade/eslint-config

GatherMade's shared ESLint configurations.

Installation

Install via your package manager of choice:

npm install -D @gathermade/eslint-config
yarn add -D @gathermade/eslint-config

You'll also need to install eslint and prettier, which are peer dependencies.

You will also need to install typescript if you're using those configurations; these are also represented as peer dependencies.

Configurations

  • @gathermade/eslint-config/recommended: A base configuration. You probably want this rule set enabled at the root of your configuration.
  • @gathermade/eslint-config/recommended-typescript: A base configuration for TypeScript files.
  • @gathermade/eslint-config/jest: A configuration for Jest tests.
  • @gathermade/eslint-config/node/commonjs/typescript: A configuration for TypeScript files run via a CommonJS Node runtime.
  • @gathermade/eslint-config/node/commonjs: A configuration for files run via a CommonJS Node runtime.

Usage

The most effective way to use this configuration is in conjunction with overrides. For example:

// .eslintrc.js
module.exports = {
  root: true,
  extends: ["@gathermade/eslint-config/recommended"],
  overrides: [
    // TypeScript files
    {
      files: ["src/**/*.ts"],
      parserOptions: {
        tsconfigRootDir: __dirname,
        project: "./tsconfig.json",
      },
      extends: ["@gathermade/eslint-config/recommended-typescript"],
    },
    // Tests
    {
      files: ["src/**/*.test.{j,t}s"],
      extends: ["@gathermade/eslint-config/jest"],
    },
  ],
};

FAQs

Package last updated on 02 Sep 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