diff --git a/configs/import.js b/configs/import.js index 6041644..329ffea 100644 --- a/configs/import.js +++ b/configs/import.js @@ -7,7 +7,22 @@ module.exports = { 'import/ignore': [ '\\.json$', 'node_modules' - ] + ], + + 'import/resolver': { + node: { + extensions: [ + // default + react + '.js', + '.json', + '.jsx', + '.mjs', + // typescript + react + '.ts', + '.tsx' + ] + } + } }, rules: { diff --git a/configs/typescript.js b/configs/typescript.js index 975c363..42514a8 100644 --- a/configs/typescript.js +++ b/configs/typescript.js @@ -21,23 +21,6 @@ module.exports = { project: './tsconfig.json' }, - settings: { - 'import/resolver': { - node: { - extensions: [ - // default + react - '.js', - '.json', - '.jsx', - '.mjs', - // typescript + react - '.ts', - '.tsx' - ] - } - } - }, - rules: { // 'no-var' is broken atm for typescript, but it will be fixed in a the next version // see https://github.com/eslint/eslint/pull/11443 @@ -51,7 +34,7 @@ module.exports = { '@typescript-eslint/ban-types': 'off', '@typescript-eslint/no-type-alias': 'off', // tslint:interface-over-type-literal - '@typescript-eslint/prefer-interface': 'error', // tslint:interface-over-type-literal + '@typescript-eslint/prefer-interface': 'off', // tslint:interface-over-type-literal '@typescript-eslint/explicit-member-accessibility': 'off', // tslint:member-access '@typescript-eslint/generic-type-naming': 'error', diff --git a/package.json b/package.json index aeab0f2..12ae343 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "eslint-config-firecloud", "description": "The ESLint config used within Tobii Cloud Services.", - "version": "0.9.1", + "version": "0.9.2", "license": "Unlicense", "files": [ "/*.js",