Skip to content

Commit

Permalink
Update dependencies and use Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Sep 17, 2024
1 parent 42d2959 commit fcc023b
Show file tree
Hide file tree
Showing 7 changed files with 5,749 additions and 9,554 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
Expand All @@ -30,9 +30,9 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: new check name
report_paths: "**/testng-results.xml"
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm install
- run: npm run eslint
- run: npm run test
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ inputs:
default: 'false'

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
33 changes: 33 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const globals = require("globals");
const js = require("@eslint/js");

const {
FlatCompat,
} = require("@eslint/eslintrc");

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [{
ignores: ["dist/*", "**/testng-reports.js", "**/jquery-1.7.1.min.js"],
}, ...compat.extends("eslint:recommended"), {
languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
...globals.jest,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},

ecmaVersion: 2018,
sourceType: "commonjs",
},

rules: {
indent: 2,
},
}];
Loading

0 comments on commit fcc023b

Please sign in to comment.