Skip to content

Commit 1f0bef0

Browse files
committed
Switches to eslint oxc resolver for better perf
1 parent 2b7e01b commit 1f0bef0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+275
-159
lines changed

eslint.config.mjs

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import globals from 'globals';
33
import js from '@eslint/js';
44
import ts from 'typescript-eslint';
55
import antiTrojanSource from 'eslint-plugin-anti-trojan-source';
6+
import { createOxcImportResolver } from 'eslint-import-resolver-oxc';
67
import importX from 'eslint-plugin-import-x';
78
import { configs as litConfigs } from 'eslint-plugin-lit';
89
import { configs as wcConfigs } from 'eslint-plugin-wc';
@@ -310,11 +311,7 @@ export default ts.config(
310311
'import-x/parsers': {
311312
'@typescript-eslint/parser': ['.ts', '.tsx'],
312313
},
313-
'import-x/resolver': {
314-
typescript: {
315-
alwaysTryTypes: true,
316-
},
317-
},
314+
'import-x/resolver-next': [createOxcImportResolver()],
318315
},
319316
},
320317
{

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20070,7 +20070,7 @@
2007020070
"esbuild-node-externals": "1.16.0",
2007120071
"esbuild-sass-plugin": "3.3.1",
2007220072
"eslint": "9.17.0",
20073-
"eslint-import-resolver-typescript": "3.7.0",
20073+
"eslint-import-resolver-oxc": "0.8.0",
2007420074
"eslint-plugin-anti-trojan-source": "1.1.1",
2007520075
"eslint-plugin-import-x": "4.6.1",
2007620076
"eslint-plugin-lit": "1.15.0",
@@ -20096,7 +20096,7 @@
2009620096
"svgo": "3.3.2",
2009720097
"terser-webpack-plugin": "5.3.11",
2009820098
"ts-loader": "9.5.1",
20099-
"typescript": "5.7.2",
20099+
"typescript": "5.7.3",
2010020100
"typescript-eslint": "8.19.1",
2010120101
"webpack": "5.97.1",
2010220102
"webpack-bundle-analyzer": "4.10.2",

0 commit comments

Comments
 (0)