8000 Merge pull request #2114 from immutable-js/typescript-eslint-fix · immutable-js/immutable-js@4a18d93 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a18d93

Browse files
authored
Merge pull request #2114 from immutable-js/typescript-eslint-fix
2 parents c10c868 + 62eaf15 commit 4a18d93

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

eslint.config.mjs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ import globals from 'globals';
33
import pluginJest from 'eslint-plugin-jest';
44
import importPlugin from 'eslint-plugin-import';
55
import pluginReact from 'eslint-plugin-react';
6-
import tseslint from 'typescript-eslint';
6+
import {
7+
config as tseslintConfig,
8+
configs as tseslintConfigs,
9+
} from 'typescript-eslint';
710

811
/** @type {import('eslint').Linter.Config[]} */
9-
export default tseslint.config(
12+
export default tseslintConfig(
1013
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
1114
{
1215
ignores: [
@@ -30,8 +33,15 @@ export default tseslint.config(
3033
pluginJs.configs.recommended,
3134
importPlugin.flatConfigs.recommended,
3235
importPlugin.flatConfigs.typescript,
33-
...tseslint.configs.recommended,
36+
...tseslintConfigs.recommended,
3437

38+
{
39+
settings: {
40+
'import/resolver': {
41+
typescript: {},
42+
},
43+
},
44+
},
3545
{
3646
rules: {
3747
eqeqeq: 'error',
@@ -155,12 +165,5 @@ export default tseslint.config(
155165
'prefer-arrow-callback': 'off',
156166
'@typescript-eslint/no-require-imports': 'off',
157167
},
158-
},
159-
{
160-
settings: {
161-
'import/resolver': {
162-
typescript: {},
163-
},
164-
},
165168
}
166169
);

0 commit comments

Comments
 (0)
0