From 89996505150247ec083093e6555ccf262867d819 Mon Sep 17 00:00:00 2001 From: Toshihisa Tomatsu Date: Fri, 20 Dec 2019 01:41:16 +0900 Subject: [PATCH] fix: import/extensions error for ts and tsx (#26) --- index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 60c0d2f..77ea06c 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,19 @@ module.exports = { "@typescript-eslint/explicit-function-return-type": "off", // React "react/jsx-filename-extension": ["error", { extensions: [".tsx"] }], - "react/prop-types": ["off", {}] + "react/prop-types": ["off", {}], + // import + "import/extensions": [ + "error", + "ignorePackages", + { + js: "never", + mjs: "never", + jsx: "never", + ts: "never", + tsx: "never" + } + ] }, settings: { "import/resolver": {