Skip to content

Commit 79c2c41

Browse files
committed
chore!: Updated dependencies
- Prisma 6
1 parent 774917b commit 79c2c41

File tree

6 files changed

+5687
-6030
lines changed

6 files changed

+5687
-6030
lines changed

.eslintrc.cjs

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

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# max-parallel: 1
1212
matrix:
1313
node:
14-
- 18
14+
- 22
1515
os:
1616
- ubuntu-latest
1717
# - windows-latest
@@ -49,7 +49,7 @@ jobs:
4949
- name: 'Setup Node'
5050
uses: actions/setup-node@v3
5151
with:
52-
node-version: 18
52+
node-version: 22
5353

5454
- name: 'Install Depependencies'
5555
run: |

eslint.config.mjs

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
import 'eslint-plugin-only-warn';
2+
3+
import globals from 'globals';
4+
import pluginJs from '@eslint/js';
5+
import tseslint from 'typescript-eslint';
6+
import prettier from 'eslint-plugin-prettier/recommended';
7+
import unicorn from 'eslint-plugin-unicorn';
8+
import perfectionist from 'eslint-plugin-perfectionist';
9+
import simpleImportSort from 'eslint-plugin-simple-import-sort';
10+
import wixEditor from 'eslint-plugin-wix-editor';
11+
import { fixupPluginRules } from '@eslint/compat';
12+
13+
/** @type {import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile} */
14+
export default [
15+
pluginJs.configs.recommended,
16+
...tseslint.configs.recommended,
17+
...tseslint.configs.recommendedTypeChecked,
18+
prettier,
19+
{
20+
ignores: [
21+
'dist/',
22+
'coverage/',
23+
'@generated/**',
24+
'*.config.[cm]js',
25+
'.*rc.js',
26+
],
27+
languageOptions: {
28+
globals: globals.node,
29+
parserOptions: {
30+
project: ['./tsconfig.json'],
31+
warnOnUnsupportedTypeScriptVersion: false,
32+
tsconfigRootDir: import.meta.dirname,
33+
},
34+
},
35+
rules: {
36+
'max-lines': [1, { max: 300 }],
37+
'max-params': [1, { max: 5 }],
38+
'no-unneeded-ternary': [1],
39+
},
40+
},
41+
{
42+
plugins: {
43+
'wix-editor': fixupPluginRules(wixEditor),
44+
},
45+
rules: {
46+
'wix-editor/no-instanceof-array': 1,
47+
'wix-editor/no-not-not': 1,
48+
'wix-editor/no-unneeded-match': 1,
49+
'wix-editor/prefer-filter': 1,
50+
'wix-editor/prefer-ternary': 1,
51+
'wix-editor/return-boolean': 1,
52+
'wix-editor/simplify-boolean-expression': 1,
53+
},
54+
},
55+
{
56+
...unicorn.configs.recommended,
57+
rules: {
58+
'unicorn/prevent-abbreviations': [
59+
'warn',
60+
{
61+
replacements: {
62+
args: false,
63+
},
64+
},
65+
],
66+
},
67+
},
68+
{
69+
plugins: {
70+
perfectionist,
71+
},
72+
rules: {
73+
'perfectionist/sort-objects': [
74+
'warn',
75+
{
76+
type: 'natural',
77+
order: 'asc',
78+
},
79+
],
80+
},
81+
},
82+
{
83+
plugins: {
84+
'simple-import-sort': simpleImportSort,
85+
},
86+
rules: {
87+
'simple-import-sort/imports': 'warn',
88+
'simple-import-sort/exports': 'warn',
89+
},
90+
},
91+
{
92+
files: ['**/*.spec.ts', '**/*.e2e-spec.ts'],
93+
rules: {
94+
'consistent-return': 0,
95+
'max-lines': 0,
96+
'@typescript-eslint/no-explicit-any': 0,
97+
'@typescript-eslint/no-floating-promises': 0,
98+
'@typescript-eslint/no-non-null-assertion': 0,
99+
'@typescript-eslint/camelcase': 0,
100+
'import/max-dependencies': 0,
101+
},
102+
},
103+
];

package.json

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -39,57 +39,54 @@
3939
"test:d": "ndb -r ts-node/register/transpile-only node_modules/mocha/bin/mocha --no-timeouts --watch-files src/**/*.ts --watch src/**/*.spec.ts"
4040
},
4141
"peerDependencies": {
42-
"@prisma/client": ">=4.12 <=5",
42+
"@prisma/client": "4.12 - 6",
4343
"graphql": "16"
4444
},
4545
"devDependencies": {
46-
"@commitlint/cli": "^17.6.7",
47-
"@commitlint/config-conventional": "^17.6.7",
46+
"@commitlint/cli": "^19.8.0",
47+
"@commitlint/config-conventional": "^19.8.0",
48+
"@eslint/compat": "^1.2.8",
49+
"@eslint/js": "^9.24.0",
4850
"@prisma/client": "^5.0.0",
4951
"@semantic-release/changelog": "^6.0.3",
5052
"@semantic-release/git": "^10.0.1",
51-
"@stryker-mutator/api": "^7.1.1",
52-
"@stryker-mutator/core": "^7.1.1",
53-
"@stryker-mutator/mocha-runner": "^7.1.1",
54-
"@swc/core": "^1.3.72",
55-
"@swc/helpers": "^0.5.1",
56-
"@types/mocha": "^10.0.1",
57-
"@types/node": "^20.4.5",
58-
"@typescript-eslint/eslint-plugin": "^6.2.0",
59-
"@typescript-eslint/parser": "^6.2.0",
60-
"c8": "^8.0.1",
53+
"@stryker-mutator/api": "^8.7.1",
54+
"@stryker-mutator/core": "^8.7.1",
55+
"@stryker-mutator/mocha-runner": "^8.7.1",
56+
"@swc/core": "^1.11.16",
57+
"@swc/helpers": "^0.5.15",
58+
"@types/mocha": "^10.0.10",
59+
"@types/node": "^22.14.0",
60+
"@typescript-eslint/eslint-plugin": "^8.29.0",
61+
"@typescript-eslint/parser": "^8.29.0",
62+
"c8": "^10.1.3",
6163
"class-transformer": "^0.5.1",
62-
"commitizen": "^4.3.0",
64+
"commitizen": "^4.3.1",
6365
"cz-conventional-changelog": "^3.3.0",
64-
"cz-customizable": "^7.0.0",
65-
"eslint": "^8.46.0",
66-
"eslint-config-prettier": "^8.9.0",
67-
"eslint-import-resolver-node": "^0.3.7",
66+
"cz-customizable": "^7.4.0",
67+
"eslint": "^9.24.0",
68+
"eslint-config-prettier": "^10.1.1",
6869
"eslint-plugin-etc": "^2.0.3",
69-
"eslint-plugin-import": "^2.28.0",
7070
"eslint-plugin-only-warn": "^1.1.0",
71-
"eslint-plugin-prettier": "^5.0.0",
72-
"eslint-plugin-promise": "^6.1.1",
73-
"eslint-plugin-regexp": "^1.15.0",
74-
"eslint-plugin-sonarjs": "^0.19.0",
75-
"eslint-plugin-total-functions": "^7.0.7",
76-
"eslint-plugin-unicorn": "^48.0.1",
71+
"eslint-plugin-perfectionist": "^4.11.0",
72+
"eslint-plugin-prettier": "^5.2.6",
73+
"eslint-plugin-simple-import-sort": "^12.1.1",
74+
"eslint-plugin-unicorn": "^58.0.0",
7775
"eslint-plugin-wix-editor": "^3.3.0",
78-
"expect": "^29.6.2",
79-
"git-branch-is": "^4.0.0",
76+
"expect": "^29.7.0",
77+
"globals": "^16.0.0",
8078
"graphql": "^16.6.0",
81-
"mocha": "^10.2.0",
79+
"mocha": "^11.1.0",
8280
"precise-commits": "^1.0.2",
83-
"prettier": "^3.0.0",
84-
"prisma": "^5.0.0",
85-
"reflect-metadata": "^0.1.13",
86-
"request": "^2.88.2",
87-
"semantic-release": "^21.0.7",
81+
"prettier": "^3.5.3",
82+
"prisma": "^6.5.0",
83+
"reflect-metadata": "^0.2.2",
84+
"semantic-release": "^24.2.3",
8885
"simplytyped": "^3.3.0",
8986
"stryker-cli": "^1.0.2",
90-
"ts-node": "^10.9.1",
91-
"tslib": "^2.6.1",
92-
"typescript": "^5.1.6",
93-
"watchexec-bin": "^1.0.0"
87+
"ts-node": "^10.9.2",
88+
"tslib": "^2.8.1",
89+
"typescript": "^5.8.3",
90+
"typescript-eslint": "^8.29.0"
9491
}
9592
}

0 commit comments

Comments
 (0)