Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
46 changes: 0 additions & 46 deletions .eslintrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
- name: Check out repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
Expand All @@ -48,11 +48,11 @@ jobs:
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand All @@ -61,7 +61,7 @@ jobs:
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Project
- name: Check out repository
uses: actions/checkout@v3
- name: Use Node.js 16
- name: Use Node.js 24
uses: actions/[email protected]
with:
node-version: 16
node-version: 24
- name: Install dependencies
run: npm i
- name: Lint checks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout Project
- name: Check out repository
uses: actions/checkout@v3
- name: Use Node.js 16
- name: Use Node.js 24
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 24
- name: Install dependencies
run: npm ci
- name: Run tests
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ dist
# MacOS .DS_Store files
.DS_Store

# Custom files I don't want added to npm
.vscode/
# Custom files I don't want added to git
sandbox.js
TODO
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Custom files I don't want added to the npm package
.vscode/
.github/
.nvmrc
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Diffbot"
]
}
55 changes: 55 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
const {
defineConfig,
} = require('eslint/config');

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 = defineConfig([{
extends: compat.extends('eslint:recommended'),

languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
...globals.node,
...globals.mocha,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},

ecmaVersion: 2018,
sourceType: 'commonjs',

parserOptions: {
allowImportExportEverywhere: false,
codeFrame: false,

ecmaFeatures: {
modules: true,
blockBindings: true,
},
},
},

rules: {
indent: ['warn', 2, {
SwitchCase: 1,
}],

'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-console': 'error',
},
}]);
Loading
Loading