Skip to content

Commit 754fa75

Browse files
committed
update deps
Signed-off-by: Kirill Mokevnin <[email protected]>
1 parent 365acb1 commit 754fa75

File tree

10 files changed

+3679
-8298
lines changed

10 files changed

+3679
-8298
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ run:
55
bin/nodejs-package.js 10
66

77
deps-install:
8-
npm ci --legacy-peer-deps
8+
npm ci
99

1010
deps-update:
1111
npx ncu -u

__tests__/half.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// @ts-check
22

3-
import half from '../index.js';
3+
import { expect, test } from 'vitest'
4+
import half from '../index.js'
45

56
test('half', () => {
6-
expect(half(6)).toBe(3);
7-
});
7+
expect(half(6)).toBe(3)
8+
})

bin/nodejs-package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
22

3-
import half from '../index.js';
3+
import half from '../index.js'
44

5-
console.log(half(Number(process.argv[process.argv.length - 1])));
5+
console.log(half(Number(process.argv[process.argv.length - 1])))

eslint.config.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

eslint.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import globals from 'globals'
2+
import pluginJs from '@eslint/js'
3+
import tseslint from 'typescript-eslint'
4+
import stylistic from '@stylistic/eslint-plugin'
5+
import { Linter } from 'eslint'
6+
7+
export default [
8+
stylistic.configs.recommended,
9+
pluginJs.configs.recommended,
10+
...tseslint.configs.recommendedTypeChecked,
11+
...tseslint.configs.stylisticTypeChecked,
12+
{
13+
files: [
14+
'**/*.{js,ts,tsx}',
15+
],
16+
},
17+
{
18+
languageOptions: {
19+
globals: globals.node,
20+
parserOptions: {
21+
projectService: true,
22+
tsconfigRootDir: import.meta.dirname,
23+
},
24+
},
25+
rules: {
26+
'@typescript-eslint/no-unused-vars': 'off',
27+
},
28+
},
29+
] // satisfies Linter.Config[]

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
22

3-
import half from './src/half.js';
3+
import half from './src/half.js'
44

5-
export default half;
5+
export default half

0 commit comments

Comments
 (0)