|
| 1 | +{ |
| 2 | + "plugins": ["import"], |
| 3 | + "jsPlugins": [ |
| 4 | + "./eslint/eslint-plugin-drizzle-internal/index.js" |
| 5 | + ], |
| 6 | + "rules": { |
| 7 | + "typescript/consistent-type-imports": [ |
| 8 | + "error", |
| 9 | + { |
| 10 | + "disallowTypeAnnotations": true, |
| 11 | + "fixStyle": "separate-type-imports" |
| 12 | + } |
| 13 | + ], |
| 14 | + "typescript/no-import-type-side-effects": "error", |
| 15 | + "import/no-cycle": "error", |
| 16 | + "import/no-self-import": "error", |
| 17 | + "import/no-empty-named-blocks": "error", |
| 18 | + "import/no-duplicates": "error", |
| 19 | + "import/extensions": [ |
| 20 | + "error", |
| 21 | + "always", |
| 22 | + { |
| 23 | + "ignorePackages": true |
| 24 | + } |
| 25 | + ], |
| 26 | + "typescript/no-explicit-any": "off", |
| 27 | + "typescript/no-non-null-assertion": "off", |
| 28 | + "typescript/no-namespace": "off", |
| 29 | + "no-unused-vars": [ |
| 30 | + "error", |
| 31 | + { |
| 32 | + "argsIgnorePattern": "^_", |
| 33 | + "varsIgnorePattern": "^_" |
| 34 | + } |
| 35 | + ], |
| 36 | + "ban-types": [ |
| 37 | + "error", |
| 38 | + { |
| 39 | + "extendDefaults": true, |
| 40 | + "types": { |
| 41 | + "{}": false |
| 42 | + } |
| 43 | + } |
| 44 | + ], |
| 45 | + "typescript/no-this-alias": "off", |
| 46 | + "typescript/no-var-requires": "off", |
| 47 | + "unicorn/prefer-node-protocol": "off", |
| 48 | + "unicorn/prefer-top-level-await": "off", |
| 49 | + "unicorn/catch-error-name": "off", |
| 50 | + "unicorn/no-null": "off", |
| 51 | + "unicorn/numeric-separators-style": "off", |
| 52 | + "unicorn/explicit-length-check": "off", |
| 53 | + "unicorn/filename-case": "off", |
| 54 | + "unicorn/no-array-reduce": "off", |
| 55 | + "unicorn/no-nested-ternary": "off", |
| 56 | + "unicorn/no-useless-undefined": [ |
| 57 | + "error", |
| 58 | + { |
| 59 | + "checkArguments": false |
| 60 | + } |
| 61 | + ], |
| 62 | + "unicorn/no-this-assignment": "off", |
| 63 | + "unicorn/empty-brace-spaces": "off", |
| 64 | + "unicorn/no-thenable": "off", |
| 65 | + "unicorn/consistent-function-scoping": "off", |
| 66 | + "unicorn/prefer-type-error": "off", |
| 67 | + "eqeqeq": "error", |
| 68 | + "unicorn/no-instanceof-builtins": "error", |
| 69 | + "unicorn/prefer-string-replace-all": "off", |
| 70 | + "unicorn/no-process-exit": "off", |
| 71 | + "typescript/ban-ts-comment": "off", |
| 72 | + "typescript/no-empty-interface": "off", |
| 73 | + "typescript/no-unsafe-declaration-merging": "off", |
| 74 | + "no-inner-declarations": "off", |
| 75 | + "drizzle-internal/no-instanceof": "error", |
| 76 | + "drizzle-internal/require-entity-kind": "error" |
| 77 | + }, |
| 78 | + "overrides": [ |
| 79 | + { |
| 80 | + "files": ["**/tests/**/*.ts", "**/type-tests/**/*.ts", "**/typeperf-test/**/*.ts"], |
| 81 | + "rules": { |
| 82 | + "import/extensions": "off", |
| 83 | + "drizzle-internal/no-instanceof": "off" |
| 84 | + } |
| 85 | + }, |
| 86 | + { |
| 87 | + "files": ["**/type-tests/**/*.ts", "**/integration-tests/tests/**/*.ts"], |
| 88 | + "rules": { |
| 89 | + "no-unused-expressions": "off" |
| 90 | + } |
| 91 | + }, |
| 92 | + { |
| 93 | + "files": ["eslint-plugin-drizzle/**/*"], |
| 94 | + "rules": { |
| 95 | + "import/extensions": "off" |
| 96 | + } |
| 97 | + } |
| 98 | + ], |
| 99 | + "ignorePatterns": [ |
| 100 | + "node_modules", |
| 101 | + "dist", |
| 102 | + "dist-dts", |
| 103 | + "examples", |
| 104 | + "**/*.js", |
| 105 | + "**/*.mjs", |
| 106 | + "**/*.cjs", |
| 107 | + "**/playground", |
| 108 | + "integration-tests/tests/prisma/*/client", |
| 109 | + "integration-tests/tests/prisma/*/drizzle", |
| 110 | + "drizzle-kit/*" |
| 111 | + ] |
| 112 | +} |
0 commit comments