Fix eslint import plugin resolution in vscode (#34651)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2025-05-12 07:12:56 +00:00
1 parent 82688387a8
commit 9244ffc425
2 files changed
+10 -2

No files matched your search

+5 -1
View File
@@ -1,5 +1,7 @@
// @ts-check
import path from 'node:path';
import js from '@eslint/js';
import { globalIgnores } from 'eslint/config';
import formatjs from 'eslint-plugin-formatjs';
@@ -204,7 +206,9 @@ export default tseslint.config([
'import/ignore': ['node_modules', '\\.(css|scss|json)$'],
'import/resolver': {
typescript: {},
typescript: {
project: path.resolve(import.meta.dirname, './tsconfig.json'),
},
},
},
+5 -1
View File
@@ -1,5 +1,7 @@
// @ts-check
import path from 'node:path';
import globals from 'globals';
import tseslint from 'typescript-eslint';
@@ -20,7 +22,9 @@ export default tseslint.config([
settings: {
'import/ignore': ['node_modules', '\\.(json)$'],
'import/resolver': {
typescript: {},
typescript: {
project: path.resolve(import.meta.dirname, './tsconfig.json'),
},
},
},