diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca30bd3..0fc31a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,6 @@ jobs: node-version: - 20.x - 22.x - - 23.x name: Use ${{ matrix.node-version }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: @@ -36,7 +35,7 @@ jobs: - run: npm run build:ts && npm run build:neon - - run: npm run check + - run: npm run test test-bun: strategy: @@ -62,4 +61,4 @@ jobs: - run: bun run build:ts && bun run build:neon - - run: bun run check + - run: bun run test diff --git a/eslint.config.mjs b/eslint.config.mjs index 287bba9..655b1a8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,23 +3,7 @@ import { audiolab } from '@swrlab/style-guide/eslint/index' export default audiolab( [ { - ignores: [ - /* ignore these files, since biome already covers them */ - '**/*.mjs', - '**/*.js', - '**/*.jsx', - '**/*.ts', - '**/*.tsx', - '**/*.json', - '**/*.jsonc', - /* ignore these directories */ - '**/static/**', - '**/store/**', - '**/keys/**', - '**/node_modules/**', - '**/test/*.json', - '**/test/*.xml', - ], + ignores: ['node_modules/**', 'lib/**', 'target/**', 'test/*.json', 'test/*.xml'], }, { languageOptions: { @@ -59,18 +43,14 @@ export default audiolab( ignores: [], }, ], - }, - }, - { - files: ['**/*.vue'], - rules: { - 'n/no-unsupported-features/node-builtins': 'off', + 'jsonc/no-comments': 'warn', + 'jsonc/sort-keys': 'warn', }, }, ], { prettier: true, comments: true, - vue: true, + vue: false, } ) diff --git a/package.json b/package.json index 519ad36..3f7e2c9 100644 --- a/package.json +++ b/package.json @@ -11,18 +11,16 @@ "build:neon": "cargo-cp-artifact -nc index.node -- cargo build --release --message-format=json-render-diagnostics", "build:bin": "./build.sh", "build:clean": "rimraf target && rimraf bin && cargo clean && mkdir -p bin", - "lint": "eslint src tests --fix", - "test": "mocha -r ts-node/register tests/**/*.test.ts", - "check": "bun run lint && bun run test", - "prepublishOnly": "bun run build:bin && bun run lint && bun run test" - }, - "engines": { - "node": ">=20" + "lint": "eslint .", + "test": "mocha -r ts-node/register tests/**/*.test.ts" }, "repository": { "type": "git", "url": "git+https://github.com/swrlab/node-crc.git" }, + "engines": { + "node": ">=20" + }, "keywords": ["node.js", "crc64"], "author": "Magic Len (https://magiclen.org)", "license": "MIT", diff --git a/tsconfig.json b/tsconfig.jsonc similarity index 100% rename from tsconfig.json rename to tsconfig.jsonc