Skip to content

Commit

Permalink
fix: eslint import/no-unresolved error (#1791)
Browse files Browse the repository at this point in the history
* fix: eslint import/no-unresolved error

* fix: remove unused eslint ignore directive
  • Loading branch information
ripecosta committed Aug 14, 2024
1 parent e068e5e commit f1fb5df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"browser": true,
"node": true
},
"reportUnusedDisableDirectives": true,
"rules": {
"no-debugger": 0,
"no-alert": 0,
Expand Down
2 changes: 1 addition & 1 deletion src/TransWithoutContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export function Trans({
)
return;

// eslint-disable-next-line react/no-unstable-nested-components, no-inner-declarations
// eslint-disable-next-line react/no-unstable-nested-components
function Componentized() {
// <>{comp}</>
return createElement(Fragment, null, comp);
Expand Down
4 changes: 3 additions & 1 deletion test/icu.macro.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { describe, it, expect } from 'vitest';
import pluginTester from 'babel-plugin-tester';
// Unsure why ESLint can't resolve it but tests run correctly
// eslint-disable-next-line import/no-unresolved
import { pluginTester } from 'babel-plugin-tester';
import plugin from 'babel-plugin-macros';

/**
Expand Down

0 comments on commit f1fb5df

Please sign in to comment.