Skip to content

Commit

Permalink
Update dependencies (#34)
Browse files Browse the repository at this point in the history
Removed external dependencies on rimraf and uuid packages, replacing
them with built-in functionality within Node.

Node 18 is now the minimum required version.

Signed-off-by: Mark S. Lewis <[email protected]>
  • Loading branch information
bestbeforetoday authored Oct 31, 2024
1 parent 85c5497 commit eb424f4
Show file tree
Hide file tree
Showing 25 changed files with 14,288 additions and 208 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
max_line_length = 120
indent_style = space
indent_size = 4

[*.{yaml,yml}]
indent_size = 2

[*.html]
indent_size = 2

[*.md]
indent_size = 2

[*.{mj,cj,j,t}s]
quote_type = double
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

98 changes: 0 additions & 98 deletions .eslintrc.js

This file was deleted.

30 changes: 16 additions & 14 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@ name: Node.js CI

on:
push:
branches: [ "main" ]
branches:
- main
pull_request:
branches: [ "main" ]
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]

node-version:
- 18
- 22
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build --if-present
- run: npm test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ dist
*.tsbuildinfo
coverage
*.tgz
package-lock.json
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const jest = require("eslint-plugin-jest");
const js = require("@eslint/js");
const prettier = require("eslint-config-prettier");
const tseslint = require("typescript-eslint");

module.exports = tseslint.config(
{
ignores: ["*", "!src/", "!test/"],
},
js.configs.recommended,
...tseslint.configs.strictTypeChecked,
prettier,
jest.configs["flat/recommended"],
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
},
rules: {
complexity: ["error", 10],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
allowExpressions: true,
},
],
},
},
);
5 changes: 1 addition & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ module.exports = {
testEnvironment: "node",
collectCoverage: true,
coverageProvider: "v8",
testPathIgnorePatterns: [
"/node_modules/",
"/scenario/"
]
testPathIgnorePatterns: ["/node_modules/", "/scenario/"],
};
Loading

0 comments on commit eb424f4

Please sign in to comment.