Skip to content

Commit

Permalink
Merge pull request #14 from cto-af/update-deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
hildjj authored Jun 24, 2024
2 parents cb3cf14 + de7e1b5 commit eeee5f7
Show file tree
Hide file tree
Showing 9 changed files with 1,436 additions and 1,027 deletions.
14 changes: 0 additions & 14 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Check coding standards
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
if: matrix.node-version == '22.x' && matrix.os == 'ubuntu-latest'
run: npm run examples && npm run lint
- name: Test
run: npm run test
Expand Down
7 changes: 3 additions & 4 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'
'use strict';

module.exports = {
reporter: 'spec',
timeout: '30000'
}

timeout: '30000',
};
32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import es6 from '@cto.af/eslint-config/es6.js';
import globals from '@cto.af/eslint-config/globals.js';
import mocha from 'eslint-plugin-mocha';

export default [
{
ignores: [
'**/*.d.ts',
],
},
...es6,
{
files: ['**/*.js'],
rules: {
'n/prefer-global/buffer': 'off',
'prefer-named-capture-group': 'off',
},
},
{
files: ['test/*.js'],
plugins: {
mocha,
},
languageOptions: {
globals: globals.mocha,
},
rules: {
...mocha.configs.recommended.rules,
'mocha/no-mocha-arrows': 'off',
},
},
];
25 changes: 17 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"types": "types/index.d.ts",
"scripts": {
"test": "c8 mocha",
"lint": "eslint . --ext js",
"lint": "eslint .",
"types": "tsc",
"examples": "cd examples && node genLineBreak.js",
"build": "npm run examples && npm run lint && npm run types && npm run test"
Expand All @@ -31,14 +31,23 @@
"fflate": "^0.8.2"
},
"devDependencies": {
"@cto.af/eslint-config": "3.1.0",
"@types/node": "20.11.25",
"c8": "9.1.0",
"eslint": "8.57.0",
"mocha": "10.3.0",
"typescript": "5.4.2"
"@cto.af/eslint-config": "4.0.2",
"@types/node": "20.14.8",
"c8": "10.1.2",
"eslint": "9.5.0",
"eslint-plugin-mocha": "10.4.3",
"mocha": "10.5.0",
"typescript": "5.5.2"
},
"packageManager": "pnpm@8.15.4",
"overrides": {
"@typescript-eslint/utils": "8.0.0-alpha.30"
},
"pnpm": {
"overrides": {
"@typescript-eslint/utils": "8.0.0-alpha.30"
}
},
"packageManager": "pnpm@9.4.0",
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit eeee5f7

Please sign in to comment.