chore: configure eslint with typescript and prettier integration
This commit is contained in:
parent
3dfb75ea83
commit
22bb8a1e4c
4 changed files with 811 additions and 3 deletions
21
eslint.config.mjs
Normal file
21
eslint.config.mjs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import eslint from "@eslint/js";
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import eslintConfigPrettier from "eslint-config-prettier/flat";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(["dist/", "node_modules/", "eslint.config.mjs"]),
|
||||
|
||||
eslint.configs.recommended,
|
||||
tseslint.configs.recommendedTypeChecked,
|
||||
eslintConfigPrettier,
|
||||
|
||||
{
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
},
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue