You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the codebase is big, the idea is to add eslint warning rules for imports and as soon as the developer touches a file, it will --fix its content based on the following rules:
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000 Binaries: Node: 18.17.1 npm: 9.6.7 Yarn: 3.2.3 pnpm: N/A Relevant packages: next: 13.3.0 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
ESLint (eslint-config-next)
Link to the code that reproduces this issue or a replay of the bug
x
To Reproduce
Try using
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
with the latesteslint-config-next
Describe the Bug
Related ticket: import-js/eslint-plugin-import#2863
Trying to add support for typescript's new flag verbatimModuleSyntax.
Since the codebase is big, the idea is to add eslint warning rules for imports and as soon as the developer touches a file, it will --fix its content based on the following rules:
But since the
eslint-plugin-import@2.26.0
is not latest, i get:By declaring the
import
plugin inside my eslint configuration, I get the:Error: Plugin "import" was conflicted between ...
Would it be possible to update the package to LTS?
Expected Behavior
Using
'import/no-duplicates': ['warn', { 'prefer-inline': true }],
yields no errorsWhich browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: