Socket
Socket
Sign inDemoInstall

@paleite/eslint-config

Package Overview
Dependencies
215
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @paleite/eslint-config

@paleite's ESLint config


Version published
Weekly downloads
51
decreased by-41.38%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@paleite/eslint-config

This package includes @paleite's shareable ESLint configuration.

Features

  • Defines a set of base rules common across all projects
  • Automatically adds React rules for projects that use React
  • Automatically adds TypeScript rules for projects written in TypeScript
  • Automatically disables conflicting rules

Installation

$ yarn add -D @paleite/eslint-config

Configuration

.eslintrc:

{ "extends": ["@paleite"] }

NB: If you're using this config for a TypeScript project, make sure you also follow the TypeScript-instructions

For React projects

No additional steps necessary.

For TypeScript projects

You must define the absolute path to each tsconfig.json-file in the parserOptions.project property. Prefer using globs over specifying each folder explicitly, because specifying each one individually makes the linter perform a lot slower.

eslint.config.js:

module.exports = {
  extends: ["@paleite"],
  parserOptions: {
    project: ["./packages/*/tsconfig.json", "./tsconfig.eslint.json"],
    tsconfigRootDir: __dirname,
  },
};

For more information on how to use this, see @typescript-eslint's official documentation

FAQs

Last updated on 17 Sep 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc