UNPKG

227 BJavaScriptView Raw
1#!/bin/env node
2
3var repl = require('repl');
4var ctx = repl.start('>> ').context;
5
6// export stuff to use in the repl
7ctx.lint = require('./');
8var parser = ctx.lint.defaultLinter.parser;
9ctx.parse = parser.parse.bind(parser);