@@ -104,29 +104,33 @@ jobs:
104104 if [ ! -f "eslint.config.cjs" ]; then
105105 echo "Creating default ESLint config..."
106106 cat <<EOL > eslint.config.cjs
107- const js = require("@eslint/js");
108- const globals = require("globals");
109-
110- module.exports = [
111- js.configs.recommended,
112- {
113- languageOptions: {
114- ecmaVersion: "latest",
115- sourceType: "module",
116- globals: globals.node,
117- },
118- rules: {
119- "no-unused-vars": "warn",
120- "no-console": "off",
121- "@typescript-eslint/no-var-requires": 'off',
122- "@typescript-eslint/no-var-requires": "off",
123- "no-prototype-builtins": "off",
124- "@typescript-eslint/no-explicit-any": "off",
125- "no-constant-condition": "off"
107+ const js = require("@eslint/js");
108+ const globals = require("globals");
109+ const tsPlugin = require("@typescript-eslint/eslint-plugin");
110+
111+ module.exports = [
112+ js.configs.recommended,
113+ {
114+ languageOptions: {
115+ ecmaVersion: "latest",
116+ sourceType: "module",
117+ globals: globals.node,
118+ parser: require.resolve("@typescript-eslint/parser"),
119+ },
120+ plugins: {
121+ "@typescript-eslint": tsPlugin,
122+ },
123+ rules: {
124+ "no-unused-vars": "warn",
125+ "no-console": "off",
126+ "@typescript-eslint/no-var-requires": "off",
127+ "no-prototype-builtins": "off",
128+ "@typescript-eslint/no-explicit-any": "off",
129+ "no-constant-condition": "off"
130+ }
126131 }
127- }
128- ];
129- EOL
132+ ];
133+ EOL
130134 fi
131135
132136 # # Remove unused imports and missing file references
0 commit comments