From e0dfd8c9fd14cb6b644d0f426e891fa6603916ab Mon Sep 17 00:00:00 2001 From: Son Date: Sun, 28 Apr 2024 19:11:38 -0400 Subject: Fix ERR_MODULE_NOT_FOUND for constants file (#1023) Co-authored-by: Max Isom --- package.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7111b80..c987cd2 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "eslint": "^7.32.0", "eslint-config-xo": "^0.39.0", "eslint-config-xo-typescript": "^0.44.0", + "eslint-plugin-import": "2.29.1", "husky": "^4.3.8", "prisma": "4.16.0", "release-it": "^14.11.8", @@ -63,12 +64,17 @@ "parserOptions": { "project": "./tsconfig.json" }, + "plugins": ["import"], "rules": { "new-cap": "off", "@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars-experimental": "error", "@typescript-eslint/prefer-readonly-parameter-types": "off", - "@typescript-eslint/no-implicit-any-catch": "off" + "@typescript-eslint/no-implicit-any-catch": "off", + "import/extensions": [ + "error", + "ignorePackages" + ] } }, "husky": { -- cgit v1.2.3