Fix eslint import plugin resolution in vscode (#34651)

This commit is contained in:
Renaud Chaput 2025-05-12 09:12:56 +02:00 committed by GitHub
parent 82688387a8
commit 9244ffc425
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

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'),
},
},
},

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'),
},
},
},