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
52 changes: 0 additions & 52 deletions .eslintrc.js

This file was deleted.

18 changes: 12 additions & 6 deletions .github/workflows/build-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ jobs:
build:
strategy:
matrix:
node-version: ['18.x', '20.x', '22.x']
node-version:
- '18.x'
- '20.x'
- '22.x'
- '24.x'

runs-on:
- ubuntu-latest
Expand All @@ -41,12 +45,14 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm ci
- run: npm run build
- run: npm run test
- run: npm run lint
- name: Install, build, lint, test
run: |
npm ci
npm run build
npm test
npm run lint
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:22 AS build
FROM node:24 AS build

WORKDIR /opt

Expand All @@ -12,7 +12,7 @@ COPY ./src ./src
RUN npm run build --ignore-scripts -- -p ./tsconfig.defs.json


FROM node:22-alpine AS runtime
FROM node:24-alpine AS runtime

WORKDIR /opt

Expand Down
25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// eslint.config.js or eslint.config.mjs for compat
import { default as acrLint } from '@acrontum/eslint-config';

export default [
{ ignores: ['test/fixtures', '**/node_modules', 'dist/'] },
{
files: ['**/*.spec.ts'],
rules: {
'max-lines-per-function': 'off',
},
},
...acrLint,
{
files: ['src/cli.ts', 'src/util/logger.ts'],
rules: {
'no-console': 'off',
},
},
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/restrict-template-expressions': ['error', { allowBoolean: true, allowNumber: true, }],
},
},
];
Loading