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

@paleite/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paleite/eslint-config

@paleite's ESLint config

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

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