Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@paleite/eslint-config

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Issues
File Explorer

Advanced tools

@paleite/eslint-config

@paleite's ESLint config

    1.0.9latest
    Github

Version published
Maintainers
1
Weekly downloads
331
decreased by-12.89%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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