Skip to content

Commit

Permalink
Export ESM format and type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Aug 30, 2024
1 parent da0089b commit 709645b
Show file tree
Hide file tree
Showing 8 changed files with 768 additions and 187 deletions.
6 changes: 6 additions & 0 deletions .changeset/angry-actors-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'eslint-plugin-import-sorting': patch
---

Export ESM and types
Plugin is exported as ESM and CJS, and includes type declarations as well.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ const config = {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['**/*.config.{js,cjs,mjs,ts}'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
},
},
],
}

Expand Down
Loading

0 comments on commit 709645b

Please sign in to comment.