Skip to content

Commit

Permalink
Revert "Add restrictedImport rules."
Browse files Browse the repository at this point in the history
This reverts commit 7a43523.
  • Loading branch information
DaniGuardiola committed Jul 30, 2024
1 parent 7a43523 commit 412f612
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,26 +459,13 @@ module.exports = {
// the `@wordpress/components` package, hence why importing those
// dependencies should be allowed in the components package.
{
paths: [
...restrictedImports.filter(
( { name } ) =>
! [
'@ariakit/react',
'framer-motion',
].includes( name )
),
{
name: '@testing-library/user-event',
message:
'Please use event triggers (`click`, `press`, etc) from `@ariakit/test` instead.',
},
{
name: '@testing-library/react',
importNames: [ 'render' ],
message:
'Please use `render` from `@ariakit/test` instead.',
},
],
paths: restrictedImports.filter(
( { name } ) =>
! [
'@ariakit/react',
'framer-motion',
].includes( name )
),
},
],
},
Expand Down

0 comments on commit 412f612

Please sign in to comment.