Skip to content

Commit 97859a1

Browse files
committed
fix(node): fix to export
1 parent 1be8efd commit 97859a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/max-ten.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function addPositions(base, relative) {
3737
* @param {RuleContext} context
3838
* @param {object} [options]
3939
*/
40-
export default function (context, options = {}) {
40+
module.exports = function(context, options = {}) {
4141
const maxLen = options.max || defaultOptions.max;
4242
const isStrict = options.strict || defaultOptions.strict;
4343
let helper = new RuleHelper(context);

test/max-ten-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import rule from "../src/max-ten"
1+
const rule = require("../src/max-ten");
22
function textIncludeTen(count) {
33
return (new Array(count + 1)).join("テスト文章において、") + "です";
44
}

0 commit comments

Comments
 (0)