Skip to content

Commit c7ab930

Browse files
committed
chore: update dependencies
1 parent 83f9ed6 commit c7ab930

File tree

10 files changed

+88
-108
lines changed

10 files changed

+88
-108
lines changed

.eslintignore

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

.eslintrc.cjs

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

.github/workflows/release-please.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020
- name: Clone
2121
if: steps.release.outputs.release_created
2222
uses: actions/checkout@v5
23-
- name: Use Node.js 18.x
23+
- name: Use Node.js 22.x
2424
if: steps.release.outputs.release_created
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: 18.x
27+
node-version: 22.x
2828
registry-url: 'https://registry.npmjs.org/'
2929
scope: '@scribelabsai'
3030
- name: Install deps

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- name: Clone
1515
uses: actions/checkout@v5
16-
- name: Use Node.js 18.x
16+
- name: Use Node.js 22.x
1717
uses: actions/setup-node@v6
1818
with:
19-
node-version: 18.x
19+
node-version: 22.x
2020
registry-url: 'https://registry.npmjs.org/'
2121
scope: '@scribelabsai'
2222
- name: Install deps
@@ -34,4 +34,3 @@ jobs:
3434
PASSWORD: ${{ secrets.PASSWORD }}
3535
OTPCODE: ${{ secrets.OTPCODE }}
3636
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
37-
FEDERATED_POOL_ID: ${{ secrets.FEDERATED_POOL_ID }}

bin/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
/* Basic Options */
66
"incremental": true /* Enable incremental compilation */,
7-
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
7+
"target": "ES2024" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
88
"module": "NodeNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
99
"declaration": true /* Generates corresponding '.d.ts' file. */,
1010
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
1111
"sourceMap": true /* Generates corresponding '.map' file. */,
1212
"outDir": "./dist" /* Redirect output structure to the directory. */,
13-
"rootDir": "." /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
13+
"rootDir": "../" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
1414
"removeComments": false,
1515

1616
/* Strict Type-Checking Options */

eslint.config.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import eslint from '@eslint/js';
2+
import eslintConfigPrettier from 'eslint-config-prettier';
3+
import eslintPluginSonarjs from 'eslint-plugin-sonarjs';
4+
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
5+
import vitest from 'eslint-plugin-vitest';
6+
import tseslint from 'typescript-eslint';
7+
8+
export default tseslint.config(
9+
{
10+
// config with just ignores is the replacement for `.eslintignore`
11+
ignores: ['**/build/**', '**/dist/**', 'coverage', 'vitest.config.ts', 'eslint.config.js'],
12+
},
13+
eslint.configs.recommended,
14+
tseslint.configs.strictTypeChecked,
15+
eslintPluginUnicorn.configs.all,
16+
{
17+
files: ['tests/**'], // or any other pattern
18+
plugins: {
19+
vitest,
20+
},
21+
rules: {
22+
...vitest.configs.recommended.rules,
23+
},
24+
languageOptions: {
25+
globals: {
26+
...vitest.environments.env.globals,
27+
},
28+
},
29+
},
30+
eslintPluginSonarjs.configs.recommended,
31+
eslintConfigPrettier,
32+
{
33+
languageOptions: {
34+
parserOptions: {
35+
project: ['./tsconfig.json', './bin/tsconfig.json', './tests/tsconfig.json'],
36+
tsconfigRootDir: import.meta.dirname,
37+
},
38+
},
39+
rules: {
40+
'@typescript-eslint/no-unused-vars': [
41+
'error',
42+
{ ignoreRestSiblings: true, argsIgnorePattern: '^_' },
43+
],
44+
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
45+
'@typescript-eslint/restrict-template-expressions': [
46+
'error',
47+
{ allowNumber: true, allowBoolean: true, allowNullish: true },
48+
],
49+
'sonarjs/cognitive-complexity': ['error', 30],
50+
'sonarjs/todo-tag': 'warn',
51+
'sonarjs/fixme-tag': 'warn',
52+
'unicorn/prevent-abbreviations': 'off',
53+
'unicorn/no-keyword-prefix': 'off',
54+
'unicorn/catch-error-name': ['error', { name: 'err' }],
55+
'unicorn/prefer-ternary': ['error', 'only-single-line'],
56+
'unicorn/no-new-array': 'off',
57+
'unicorn/no-array-callback-reference': 'off',
58+
'unicorn/filename-case': 'off',
59+
'unicorn/switch-case-braces': ['error', 'avoid'],
60+
'unicorn/import-style': 'off',
61+
},
62+
}
63+
);

package.json

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,27 @@
2929
"registry": "https://registry.npmjs.org/"
3030
},
3131
"devDependencies": {
32-
"@types/node": "^20.1.0",
33-
"@typescript-eslint/eslint-plugin": "^6.0.0",
34-
"@typescript-eslint/parser": "^6.1.0",
35-
"@vitest/coverage-v8": "^1.0.4",
36-
"dotenv": "^16.0.3",
37-
"eslint": "^8.7.0",
38-
"eslint-config-prettier": "^9.0.0",
39-
"eslint-plugin-promise": "^6.0.0",
40-
"eslint-plugin-sonarjs": "^0.23.0",
41-
"eslint-plugin-unicorn": "^50.0.1",
42-
"eslint-plugin-vitest": "^0.3.9",
32+
"@inquirer/prompts": "^7.9.0",
33+
"@smithy/protocol-http": "^5.0.1",
34+
"@types/jsonwebtoken": "^9.0.9",
35+
"@types/node": "^24.9.1",
36+
"@typescript-eslint/eslint-plugin": "^8.0.0",
37+
"@typescript-eslint/parser": "^8.0.0",
38+
"@vitest/coverage-v8": "^3.0.0",
39+
"commander": "^14.0.1",
40+
"dotenv": "^17.2.3",
41+
"eslint": "^9.22.0",
42+
"eslint-config-prettier": "^10.0.0",
43+
"eslint-plugin-promise": "^7.0.0",
44+
"eslint-plugin-sonarjs": "^3.0.0",
45+
"eslint-plugin-unicorn": "^61.0.2",
46+
"eslint-plugin-vitest": "^0.5.0",
4347
"otplib": "^12.0.1",
4448
"prettier": "^3.0.0",
45-
"prettier-plugin-organize-imports": "^3.0.0",
49+
"prettier-plugin-organize-imports": "^4.0.0",
50+
"tsx": "^4.20.6",
4651
"typescript": "^5.0.2",
47-
"vitest": "^1.0.4"
52+
"vitest": "^3.0.0"
4853
},
4954
"dependencies": {
5055
"@aws-sdk/client-cognito-identity": "^3.348.0",

tests/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/tsconfig.json

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

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* Basic Options */
66
"incremental": true /* Enable incremental compilation */,
7-
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
7+
"target": "ES2024" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
88
"module": "NodeNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
99
"declaration": true /* Generates corresponding '.d.ts' file. */,
1010
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,

0 commit comments

Comments
 (0)