We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d971989 commit 83b07cdCopy full SHA for 83b07cd
packages/db/eslint.config.js
@@ -3,6 +3,19 @@ import baseConfig from '@acme/eslint-config/base'
3
/** @type {import('typescript-eslint').Config} */
4
export default [
5
{
6
+ // NOTE: we should ban accesses on the `transaction` property for kysely
7
+ // because this doesn't work well with the plugin
8
+ rules: {
9
+ 'no-restricted-syntax': [
10
+ 'error',
11
+ {
12
+ selector:
13
+ "MemberExpression[property.name='transaction'][object.property.name='$kysely']",
14
+ message:
15
+ 'Use prisma.$transaction() instead of db.$kysely.transaction()',
16
+ },
17
+ ],
18
19
ignores: ['dist/**', 'src/generated/**'],
20
},
21
...baseConfig,
0 commit comments