Fix eslint import plugin resolution in vscode (#34651)
This commit is contained in:
parent
82688387a8
commit
9244ffc425
2 changed files with 10 additions and 2 deletions
|
@ -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'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -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'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue