Skip to content

Commit 33f7159

Browse files
authored
Merge pull request #2 from azu/migrate-textlint-scripts
refactor: use textlint-scripts
2 parents b7f48d2 + f805afc commit 33f7159

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

.babelrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,17 @@
2222
"test": "test"
2323
},
2424
"scripts": {
25-
"build": "babel src --out-dir lib --source-maps",
26-
"watch": "babel src --out-dir lib --watch --source-maps",
25+
"build": "textlint-scripts build",
26+
"watch": "textlint-scripts build --watch",
2727
"prepublish": "npm run --if-present build",
28-
"test": "mocha"
28+
"test": "textlint-scripts test"
2929
},
3030
"keywords": [
3131
"textlint",
3232
"alex"
3333
],
3434
"devDependencies": {
35-
"babel-cli": "^6.5.1",
36-
"babel-plugin-add-module-exports": "^0.2.1",
37-
"babel-preset-es2015": "^6.5.0",
38-
"babel-register": "^6.5.2",
39-
"mocha": "^2.4.5",
40-
"textlint-tester": "^2.0.0"
35+
"textlint-scripts": "^1.2.2"
4136
},
4237
"dependencies": {
4338
"alex": "^3.1.0",

src/textlint-rule-alex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import alex from "alex";
55
const defaultOptions = {
66
allow: []
77
};
8-
export default function textlintRuleAlex(context, options = {}) {
8+
module.exports = function textlintRuleAlex(context, options = {}) {
99
const {Syntax, RuleError, report, getSource} = context;
1010
const helper = new RuleHelper(context);
1111
const allowWords = options.allow || defaultOptions.allow;

0 commit comments

Comments
 (0)