Skip to content

Commit b0ab2d5

Browse files
committed
refactor: migrate eslint-import-resolver-oxc to eslint-import-resolver-typescript
1 parent 1bd9fc1 commit b0ab2d5

File tree

7 files changed

+277
-170
lines changed

7 files changed

+277
-170
lines changed

openbas-front/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint import/no-extraneous-dependencies: 0 */
22

33
// imports to not let tools report them as unused
4-
import 'eslint-import-resolver-oxc';
4+
import 'eslint-import-resolver-typescript';
55

66
import js from '@eslint/js';
77
import stylistic from '@stylistic/eslint-plugin';
@@ -33,7 +33,7 @@ export default [
3333
importPlugin.flatConfigs.typescript,
3434
{
3535
settings: {
36-
'import/resolver': 'oxc',
36+
'import/resolver': 'typescript',
3737
'import/ignore': [
3838
'react-apexcharts', // ignore react-apexcharts as the default export is broken
3939
],

openbas-front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"cross-env": "7.0.3",
9595
"esbuild": "0.25.1",
9696
"eslint": "9.23.0",
97-
"eslint-import-resolver-oxc": "0.13.1",
97+
"eslint-import-resolver-typescript": "4.3.4",
9898
"eslint-plugin-custom-rules": "link:packages/eslint-plugin-custom-rules",
9999
"eslint-plugin-i18next": "6.1.1",
100100
"eslint-plugin-import": "2.31.0",

openbas-front/src/reducers/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line import/no-named-as-default -- named `Immutable` is a `type`
12
import Immutable from 'seamless-immutable';
23

34
import * as Constants from '../constants/ActionTypes';

openbas-front/src/reducers/Referential.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as R from 'ramda';
2+
// eslint-disable-next-line import/no-named-as-default -- named `Immutable` is a `type`
23
import Immutable from 'seamless-immutable';
34

45
import * as Constants from '../constants/ActionTypes';

openbas-front/src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as R from 'ramda';
33
import { useSelector } from 'react-redux';
44
import { applyMiddleware, createStore } from 'redux';
55
import { thunk } from 'redux-thunk';
6+
// eslint-disable-next-line import/no-named-as-default -- named `Immutable` is a `type`
67
import Immutable from 'seamless-immutable';
78

89
import { storeHelper } from './actions/Schema';

openbas-front/src/utils/Action.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { type Schema } from 'normalizr';
44
import * as R from 'ramda';
55
import { createIntl, createIntlCache } from 'react-intl';
66
import { type Dispatch } from 'redux';
7+
// eslint-disable-next-line import/no-named-as-default -- named `Immutable` is a `type`
78
import Immutable from 'seamless-immutable';
89

910
import { LANG } from '../components/AppIntlProvider';

0 commit comments

Comments
 (0)