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 5a3589b commit 6dcc9daCopy full SHA for 6dcc9da
packages/db/eslint.config.js
@@ -3,6 +3,18 @@ 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: 'Use db.$transaction() instead of db.$kysely.transaction()',
15
+ },
16
+ ],
17
18
ignores: ['dist/**', 'src/generated/**'],
19
},
20
...baseConfig,
0 commit comments