File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 24
24
"eslint" : " eslint src/**/*.js" ,
25
25
"eslint:md" : " eslint -c .md.eslintrc --ext .md ja/**/*.md" ,
26
26
"textlint" : " summary-to-path | xargs textlint --rule spellcheck-tech-word" ,
27
- "test" : " mocha --recursive && npm run textlint && npm run eslint:md && npm run eslint && npm run build"
27
+ "test:example" : " find ./src -name '*-example.js' | xargs babel-node" ,
28
+ "test" : " mocha --recursive && npm run test:example && npm run textlint && npm run eslint:md && npm run eslint && npm run build"
28
29
},
29
30
"keywords" : [
30
31
" plugin" ,
Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
import assert from "assert" ;
3
3
import MyLinter from "./MyLinter" ;
4
- import noConsole from "./noConsole" ;
4
+ import noConsole from "./no-console" ;
5
+
5
6
let linter = new MyLinter ( ) ;
6
7
linter . loadPlugin ( noConsole ) ;
7
8
var results = linter . lint ( `console.log("test")` ) ;
You can’t perform that action at this time.
0 commit comments