Skip to content

Commit

Permalink
Updating eslint rules and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nchiasson-dgi committed Oct 15, 2024
1 parent 2fb5673 commit 56203e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
33 changes: 20 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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: {},
}];
ecmaVersion: 2020,
sourceType: "module",
},

rules: {
"no-unused-vars": "warn",
"no-undef": "off",
},

},
{
ignores: ["dist/"]
}];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 56203e8

Please sign in to comment.