Skip to content

Commit

Permalink
feat(eslint): update eslint to 9.x and fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Oct 29, 2024
1 parent b0339a7 commit 59d8ea4
Show file tree
Hide file tree
Showing 11 changed files with 127 additions and 88 deletions.
5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// @ts-check

import baseConfig from "@mgcrea/eslint-config-node";

const config = [
...baseConfig,
{
rules: {
// "@typescript-eslint/no-unnecessary-type-parameters": "off",
},
},
{
files: ["**/*.{mock,spec,test}.{js,ts,tsx}", "**/__{mocks,tests}__/**/*.{js,ts,tsx}"],
rules: {
// "@typescript-eslint/no-unsafe-member-access": "off",
// "@typescript-eslint/no-unsafe-call": "off",
// "@typescript-eslint/no-unsafe-assignment": "off",
// "@typescript-eslint/no-unsafe-argument": "off",
// "@typescript-eslint/no-non-null-assertion": "off",
},
},
{
languageOptions: {
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
];

export default config;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@
"typescript": "^5.6.3",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.4"
}
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
2 changes: 1 addition & 1 deletion src/PrismaJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class PrismaJob<T, U> {
this.#model = model;
this.#client = client;
this.#record = record;
this.id = record["id"];
this.id = record.id;
}

/**
Expand Down
Loading

0 comments on commit 59d8ea4

Please sign in to comment.