Skip to content

Commit

Permalink
Revert "Prevent the "import/no-duplicates" warning for the externaliz…
Browse files Browse the repository at this point in the history
…ation process"

This reverts commit 2d0e0d6.
  • Loading branch information
eason9487 committed Aug 15, 2023
1 parent 02e403d commit 6ea0786
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ module.exports = {
additionalHooks: 'useSelect',
},
],
// When a file imports from both `@wordpress/components` and `extracted/@wordpress/components`
// at the same time, it would get the "no-duplicates" warning. It should be considered a
// false positive when working on the externalization process. So here we temporarily change
// to use "no-duplicate-imports" instead.
//
// TODO: After the externalizations of `@wordpress/*` and `@woocommerce/*` are complete,
// remove the following two lines of rule settings.
'import/no-duplicates': 'off',
'no-duplicate-imports': 'warn',
},
overrides: [
{
Expand Down

0 comments on commit 6ea0786

Please sign in to comment.