{
	"$schema": "./node_modules/oxlint/configuration_schema.json",
	"rules": {
		"no-restricted-imports": [
			"error",
			{
				"paths": [
					{
						"name": "pg",
						"importNames": ["Pool", "Client"],
						"allowTypeImports": true,
						"message": "Build the pool with createPool() from @ingram-tech/nk-db, not `new Pool`/`new Client`. (`import type { Pool }` is fine.)"
					}
				]
			}
		]
	},
	"overrides": [
		{
			"files": [
				"**/scripts/**",
				"**/*.test.ts",
				"**/*.test.tsx",
				"**/__tests__/**",
				"**/test/**",
				"**/tests/**"
			],
			"rules": { "no-restricted-imports": "off" }
		}
	]
}
