|
41 | 41 | "noExplicitAny": "off" |
42 | 42 | } |
43 | 43 | } |
44 | | - } |
| 44 | + }, |
| 45 | + "overrides": [ |
| 46 | + { |
| 47 | + "includes": [ |
| 48 | + "rivetkit-typescript/packages/rivetkit/src/**/*", |
| 49 | + "!rivetkit-typescript/packages/rivetkit/src/test/**/*" |
| 50 | + ], |
| 51 | + "linter": { |
| 52 | + "rules": { |
| 53 | + "style": { |
| 54 | + "noRestrictedImports": { |
| 55 | + "level": "error", |
| 56 | + "options": { |
| 57 | + "paths": { |
| 58 | + "node:crypto": "Use '@/utils/node' getNodeCrypto() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 59 | + "node:fs": "Use '@/utils/node' getNodeFsSync() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 60 | + "node:fs/promises": "Use '@/utils/node' getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 61 | + "node:path": "Use '@/utils/node' getNodePath() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 62 | + "node:os": "Use '@/utils/node' getNodeOs() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 63 | + "node:child_process": "Use '@/utils/node' getNodeChildProcess() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 64 | + "node:stream": "Use '@/utils/node' getNodeStream() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 65 | + "node:net": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 66 | + "node:url": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 67 | + "crypto": "Use '@/utils/node' getNodeCrypto() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 68 | + "fs": "Use '@/utils/node' getNodeFsSync() or getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 69 | + "fs/promises": "Use '@/utils/node' getNodeFs() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 70 | + "path": "Use '@/utils/node' getNodePath() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 71 | + "os": "Use '@/utils/node' getNodeOs() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 72 | + "child_process": "Use '@/utils/node' getNodeChildProcess() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 73 | + "stream": "Use '@/utils/node' getNodeStream() instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 74 | + "net": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts", |
| 75 | + "url": "Use '@/utils/node' instead. Direct Node.js imports are only allowed in src/utils/node.ts" |
| 76 | + } |
| 77 | + } |
| 78 | + } |
| 79 | + } |
| 80 | + } |
| 81 | + } |
| 82 | + }, |
| 83 | + { |
| 84 | + "includes": [ |
| 85 | + "rivetkit-typescript/packages/rivetkit/src/utils/node.ts" |
| 86 | + ], |
| 87 | + "linter": { |
| 88 | + "rules": { |
| 89 | + "style": { |
| 90 | + "noRestrictedImports": "off" |
| 91 | + } |
| 92 | + } |
| 93 | + } |
| 94 | + } |
| 95 | + ] |
45 | 96 | } |
0 commit comments