Skip to content

Commit

Permalink
Fix TypeScript error for CommonJS importing (#6695)
Browse files Browse the repository at this point in the history
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
  • Loading branch information
baseballyama and ybiquitous committed Mar 6, 2023
1 parent 80d0941 commit a1a1a8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-dodos-juggle.md
@@ -0,0 +1,5 @@
---
"stylelint": patch
---

Fixed: TypeScript error for CommonJS importing
2 changes: 2 additions & 0 deletions lib/index.js
Expand Up @@ -33,3 +33,5 @@ const stylelint = Object.assign(postcssPlugin, {
});

module.exports = stylelint;
// @ts-ignore -- To adjust type for CommonJS, we export the default property.
module.exports.default = stylelint;

0 comments on commit a1a1a8a

Please sign in to comment.