Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json,yml}]
indent_style = space
indent_size = 2
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

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

This file was deleted.

13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly

# Group all dependabot version update PRs into one
groups:
github-actions:
applies-to: version-updates
patterns:
- "*"
39 changes: 17 additions & 22 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
name: CI

on: [push, pull_request]
on:
pull_request:
push:
branches-ignore: "dependabot/**"

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
NODE_VERSION: [16.x]
NODE_VERSION: [24.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-
- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.NODE_VERSION }}
cache: npm
cache-dependency-path: '**/package-lock.json'

- name: Use Node.js ${{ matrix.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.NODE_VERSION }}
- name: Install dependencies
run: npm ci

- name: Install dependencies
run: |
npm install

- name: Run tests
run: |
npm test
- name: Run tests
run: npm test
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import jqueryConfig from "eslint-config-jquery";
import globals from "globals";

export default [
{

// Only global ignores will bypass the parser
// and avoid JS parsing errors
// See https://github.com/eslint/eslint/discussions/17412
ignores: [
"__release/**"
]
},

jqueryConfig,

{
languageOptions: {
ecmaVersion: 2025,
sourceType: "script",

globals: {
...globals.node
}
},

rules: {
strict: [ "error", "global" ]
}
},

{
files: [ "*.mjs" ],

languageOptions: {
sourceType: "module"
}
}
];
2 changes: 1 addition & 1 deletion lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Release.define( {
[ "git", "npm", "curl" ].forEach( function( command ) {
try {
which.sync( command );
} catch ( e ) {
} catch {
Release.abort( "Missing required executable: " + command );
}
} );
Expand Down
Loading