File tree Expand file tree Collapse file tree 6 files changed +4295
-15
lines changed Expand file tree Collapse file tree 6 files changed +4295
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
"test" : " test"
23
23
},
24
24
"scripts" : {
25
- "build" : " NODE_ENV=production 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" ,
27
27
"prepublish" : " npm run --if-present build" ,
28
- "test" : " mocha "
28
+ "test" : " textlint-scripts test "
29
29
},
30
30
"keywords" : [
31
31
" rule" ,
32
32
" textlint" ,
33
33
" textlintrule"
34
34
],
35
35
"devDependencies" : {
36
- "babel-cli" : " ^6.1.18" ,
37
- "babel-plugin-add-module-exports" : " ^0.2.1" ,
38
- "babel-preset-es2015" : " ^6.1.18" ,
39
36
"espower-babel" : " ^4.0.0" ,
40
- "mocha" : " ^2.3.4" ,
41
37
"power-assert" : " ^1.1.0" ,
42
38
"textlint" : " ^6.0.3" ,
43
- "textlint-tester " : " ^1.2 .0"
39
+ "textlint-scripts " : " ^2.1 .0"
44
40
},
45
41
"dependencies" : {
46
42
"kuromojin" : " ^1.2.1" ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const defaultOptions = {
64
64
65
65
TODO: need abstraction
66
66
*/
67
- export default function ( context , options = { } ) {
67
+ module . exports = function ( context , options = { } ) {
68
68
const helper = new RuleHelper ( context ) ;
69
69
// 最低間隔値
70
70
const minInterval = options . min_interval || defaultOptions . min_interval ;
Original file line number Diff line number Diff line change 1
- --compilers js:espower-babel/guess
1
+ --require textlint-scripts/register
Original file line number Diff line number Diff line change 1
- import rule from "../src/no-doubled-joshi" ;
2
1
import TextLintTester from "textlint-tester" ;
2
+ const rule = require ( "../src/no-doubled-joshi" ) ;
3
3
const tester = new TextLintTester ( ) ;
4
4
/*
5
5
`**`のような装飾は取り除かれてから評価されているので、
You can’t perform that action at this time.
0 commit comments