From 56203e8846f59ac3f1a617331f47ccd0fd09c9ce Mon Sep 17 00:00:00 2001 From: Noel Chiasson Date: Tue, 15 Oct 2024 14:49:37 -0300 Subject: [PATCH] Updating eslint rules and configuration --- eslint.config.mjs | 33 ++++++++++++++++++++------------- package.json | 2 +- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 1a568f6..c5dca90 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,8 +1,8 @@ -import globals from "globals"; import path from "node:path"; import { fileURLToPath } from "node:url"; import js from "@eslint/js"; import { FlatCompat } from "@eslint/eslintrc"; +import globals from "globals"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @@ -13,17 +13,24 @@ const compat = new FlatCompat({ }); export default [...compat.extends("eslint:recommended"), { - languageOptions: { - globals: { - ...globals.commonjs, - ...globals.node, - Atomics: "readonly", - SharedArrayBuffer: "readonly", - }, - - ecmaVersion: 2018, - sourceType: "commonjs", + languageOptions: { + globals: { + ...globals.commonjs, + ...globals.node, + Atomics: "readonly", + SharedArrayBuffer: "readonly", }, - rules: {}, -}]; \ No newline at end of file + ecmaVersion: 2020, + sourceType: "module", + }, + + rules: { + "no-unused-vars": "warn", + "no-undef": "off", + }, + +}, +{ + ignores: ["dist/"] +}]; diff --git a/package.json b/package.json index 982c337..3ec88d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "action-major-tag", - "version": "1.0.0", + "version": "1.1.0", "description": "Action to tag an action with a major tag.", "main": "index.js", "scripts": {