@dlevs/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dlevs/eslint-config

Weekly Downloads

8

Version

2.0.5

License

ISC

Unpacked Size

37.6 kB

Total Files

11

Last publish

Collaborators

  • dlevs