Skip to content

Commit fbc4b0f

Browse files
committed
fix(packages): use commmon js exports
1 parent a178a9d commit fbc4b0f

File tree

4 files changed

+5
-5
lines changed
  • packages
    • textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana/src
    • textlint-rule-ja-no-space-around-parentheses/src
    • textlint-rule-ja-space-after-exclamation/src
    • textlint-rule-ja-space-after-question/src

4 files changed

+5
-5
lines changed

packages/textlint-rule-ja-nakaguro-or-halfwidth-space-between-katakana/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import {RuleHelper} from "textlint-rule-helper";
88
import {matchCaptureGroupAll} from "match-index";
9-
export default function (context) {
9+
module.exports = function(context) {
1010
const {Syntax, RuleError, report, getSource} = context;
1111
const helper = new RuleHelper();
1212
return {
@@ -28,4 +28,4 @@ export default function (context) {
2828

2929
}
3030
};
31-
}
31+
};

packages/textlint-rule-ja-no-space-around-parentheses/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function reporter(context) {
4949
}
5050
};
5151
}
52-
export default {
52+
module.exports = {
5353
linter: reporter,
5454
fixer: reporter
5555
};

packages/textlint-rule-ja-space-after-exclamation/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function reporter(context) {
2929
}
3030
};
3131
}
32-
export default {
32+
module.exports = {
3333
linter: reporter,
3434
fixer: reporter
3535
};

packages/textlint-rule-ja-space-after-question/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function reporter(context) {
2929
}
3030
};
3131
}
32-
export default {
32+
module.exports = {
3333
linter: reporter,
3434
fixer: reporter
3535
};

0 commit comments

Comments
 (0)