Socket
Socket
Sign inDemoInstall

@mlaursen/eslint-config

Package Overview
Dependencies
11
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @mlaursen/eslint-config

An eslint config used by mlaursen for most projects.


Version published
Weekly downloads
28
increased by154.55%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-config

A reusable eslint config that I use for most of my projects.

Usage

module.exports = {
  extends: "@mlaursen/eslint-config",
};

Additional Type Checking

Or if I want to do additional rules and strict type checking linting rules:

module.exports = {
  extends: "@mlaursen/eslint-config",
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ["./tsconfig.json"],
  },
  rules: {
    // any custom rules for this project
  },
  overrides: [
    {
      files: ["**/*.ts", "**/*.tsx"],
      extends: [
        "plugin:@typescript-eslint/recommended-requiring-type-checking",
      ],
    },
    // any custom overrides for this project
  ],
};

Keywords

FAQs

Last updated on 16 Mar 2024

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