Skip to content

Commit 832cbd6

Browse files
V2dhaljharb
authored andcommitted
[meta] add export default instead of module.exports
add `export default` instead of `module.exports` to avoid `Cannot use import declarations in modules that export using CommonJS` errors
1 parent 8c1df4d commit 832cbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/boilerplate/rule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const errorMessage = '';
1515
1616
const schema = generateObjSchema();
1717
18-
module.exports = {
18+
export default {
1919
meta: {
2020
docs: {},
2121
schema: [schema],

0 commit comments

Comments
 (0)