1
0
mirror of https://github.com/Minionguyjpro/Inno-Setup-Action synced 2026-02-18 09:31:19 +01:00

refactor: update linting configuration and remove eslintConfig from package.json

- Changed lint script to target JavaScript files in the src directory.
- Removed eslintConfig section as it is no longer needed.
This commit is contained in:
Minionguyjpro
2025-06-18 20:23:01 +02:00
parent 92fdc4cf25
commit 1fa3b88982
4 changed files with 518 additions and 717 deletions

View File

@@ -1,69 +0,0 @@
import { FlatCompat } from "@eslint/eslintrc";
import path from "path";
import { fileURLToPath } from "url";
import js from "@eslint/js";
import github from "eslint-plugin-github";
import jest from "eslint-plugin-jest";
import babelParser from "@babel/eslint-parser";
import prettier from "eslint-plugin-prettier";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
resolvePluginsRelativeTo: __dirname,
});
export default [
// Convert legacy configs
...compat.extends("prettier"),
{
files: ["**/*.js", "**/*.mjs", "**/*.cjs"],
ignores: [
"!.*",
"**/node_modules/**",
"**/dist/**",
"**/coverage/**",
"*.json",
],
languageOptions: {
ecmaVersion: 2023,
sourceType: "module",
parser: babelParser,
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ["@babel/preset-env"],
},
},
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
},
plugins: {
github,
jest,
prettier,
},
rules: {
camelcase: "off",
"eslint-comments/no-use": "off",
"eslint-comments/no-unused-disable": "off",
"i18n-text/no-en": "off",
"import/no-commonjs": "error",
"import/no-namespace": "off",
"no-console": "off",
"no-unused-vars": "off",
"prettier/prettier": "error",
semi: "off",
},
},
js.configs.recommended,
github.configs.recommended,
jest.configs.recommended,
];