Skip to content

Instantly share code, notes, and snippets.

@woxtu
Created September 9, 2022 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woxtu/2c430f86649efc747e4256b38330627b to your computer and use it in GitHub Desktop.
Save woxtu/2c430f86649efc747e4256b38330627b to your computer and use it in GitHub Desktop.
ESLint with flat config + Prettier + TypeScript
// Install the following packages:
// - @eslint/eslintrc
// - @typescript-eslint/eslint-plugin
// - eslint-config-prettier
import { FlatCompat } from "@eslint/eslintrc";
import prettierConfig from "eslint-config-prettier";
const compat = new FlatCompat();
export default [
"eslint:recommended",
// The current "@typescript-eslint/eslint-plugin" still needs backporting
...compat.extends("plugin:@typescript-eslint/recommended"),
prettierConfig,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment