Created
September 9, 2022 15:28
-
-
Save woxtu/2c430f86649efc747e4256b38330627b to your computer and use it in GitHub Desktop.
ESLint with flat config + Prettier + TypeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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