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

@dlevs/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlevs/eslint-config

ESLint config for my projects

  • 2.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ESLint config

An ESLint config for TypeScript projects.

Installation

npm i -D eslint @dlevs/eslint-config

Usage

Make an eslint.config.js file:

import { configure } from "@dlevs/eslint-config";

/** @type {import("eslint").Linter.FlatConfig[]} */
export default [
  {
    // Use this instead of a .eslintignore file.
    ignores: ["build/**", "public/**"],
  },
  ...configure({ react: true, remix: true }),
];

Note, .eslintrc files won't work - you must name the file eslint.config.js, and use the "flat config" format. It was implemented this way as it's the only way to include plugins in a shareable config.

Update VSCode settings

If using VSCode, lint errors will not show until you add this to your settings.json file:

{
  "eslint.experimental.useFlatConfig": true
}

FAQs

Package last updated on 26 May 2024

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