From e8263270569521b77d490d4e540873b5b267fed4 Mon Sep 17 00:00:00 2001 From: Gabriel Taveira Date: Fri, 12 May 2023 10:10:38 -0300 Subject: [PATCH] lint: fix estlint --- .eslintrc | 19 ++++++++++++++++++- package.json | 6 ++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 9828433..19a93fb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,10 +4,27 @@ "ignorePatterns": ["lib/", "reports/"], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint", "prettier"], + "settings": { + "import/resolver": { + "node": { + "extensions": [".js", ".jsx", ".ts", ".tsx"] + } + } + }, "rules": { "max-len": "off", "no-template-curly-in-string": "off", - "global-require": "off" + "global-require": "off", + "import/extensions": [ + "error", + "ignorePackages", + { + "js": "never", + "jsx": "never", + "ts": "never", + "tsx": "never" + } + ] }, "overrides": [ { diff --git a/package.json b/package.json index b58a7b7..bf058c0 100644 --- a/package.json +++ b/package.json @@ -32,12 +32,12 @@ "license": "MIT", "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.59.5", - "@typescript-eslint/experimental-utils": "^5.59.5", "@typescript-eslint/parser": "^5.59.5", "aud": "^2.0.2", "auto-changelog": "^2.4.0", "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8", "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-prettier": "^8.8.0", "eslint-doc-generator": "^1.4.1", "eslint-plugin-eslint-plugin": "^4.3.0", "eslint-plugin-import": "^2.26.0", @@ -89,5 +89,7 @@ "CONTRIBUTING.md" ] }, - "dependencies": {} + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.59.5" + } }