1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action.git synced 2026-04-12 18:01:24 +02:00

Update eslint.config.js

This commit is contained in:
Minionguyjpro
2025-06-07 19:00:15 +02:00
committed by GitHub
parent c5757597dd
commit 6f7a2f49f6

View File

@@ -1,11 +1,28 @@
import { FlatCompat } from "@eslint/eslintrc";
import path from "path";
import { fileURLToPath } from "url";
import js from "@eslint/js"; import js from "@eslint/js";
import github from "eslint-plugin-github"; import github from "eslint-plugin-github";
import jest from "eslint-plugin-jest"; import jest from "eslint-plugin-jest";
import babelParser from "@babel/eslint-parser"; import babelParser from "@babel/eslint-parser";
import prettier from "eslint-plugin-prettier"; import prettier from "eslint-plugin-prettier";
// Make __dirname available
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Setup FlatCompat to use legacy shareable configs if needed
const compat = new FlatCompat({
baseDirectory: __dirname,
});
// ESLint flat config expects an array of config objects // ESLint flat config expects an array of config objects
export default [ export default [
// FlatCompat usage to extend from old-style configs, if needed
...compat.extends("eslint-config-my-config"), // <-- adjust or remove if not needed
// Direct flat config for your JS files
{ {
files: ["**/*.js", "**/*.mjs", "**/*.cjs"], files: ["**/*.js", "**/*.mjs", "**/*.cjs"],
ignores: [ ignores: [
@@ -43,6 +60,8 @@ export default [
}, },
settings: {}, settings: {},
}, },
// Recommended configs from plugins/libraries
js.configs.recommended, js.configs.recommended,
github.configs.recommended, github.configs.recommended,
jest.configs.recommended, jest.configs.recommended,