Skip to content

Commit a352fff

Browse files
committed
Fix linter resolutions
Restore the use of TypeScript project references to the TypeScript ESLint plugin. Move the optimal-select module declaration to the root of the dom package, where TypeScript will automatically find it. Disable the import/no-unresolved rule for TypeScript files because TypeScript itself will check that modules resolve.
1 parent 392794f commit a352fff

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ module.exports = {
108108
ecmaVersion: 2020,
109109
project: ['./tsconfig.test.json', './packages/*/tsconfig.json'],
110110
tsconfigRootDir: __dirname,
111+
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
111112
},
112113
plugins: ['@typescript-eslint'],
113114
rules: {
115+
'import/no-unresolved': 'off',
114116
'@typescript-eslint/consistent-type-imports': 'error',
115117
'@typescript-eslint/no-duplicate-imports': 'error',
116118
'@typescript-eslint/no-explicit-any': 'off',

packages/dom/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"include": ["src", "./@types"],
3+
"include": ["src"],
44
"compilerOptions": {
55
"outDir": "lib",
66
"rootDir": "src"

0 commit comments

Comments
 (0)