- upgrade eslint config
-
This commit is contained in:
+3
-1
@@ -6,6 +6,7 @@ import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import js from "@eslint/js";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
import github from 'eslint-plugin-github'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
@@ -17,12 +18,13 @@ const compat = new FlatCompat({
|
||||
|
||||
export default [{
|
||||
ignores: ["**/dist/", "**/lib/", "**/node_modules/"]
|
||||
}, ...compat.extends("plugin:github/recommended"), {
|
||||
}, {
|
||||
|
||||
files: ["**/*.ts", "__tests__/**.ts"],
|
||||
|
||||
plugins: {
|
||||
jest,
|
||||
github,
|
||||
"@typescript-eslint": typescriptEslint
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user