Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhiokim/cibot-jslint
jslint module for cibot project
https://github.com/rhiokim/cibot-jslint
Last synced: about 2 months ago
JSON representation
jslint module for cibot project
- Host: GitHub
- URL: https://github.com/rhiokim/cibot-jslint
- Owner: rhiokim
- Created: 2012-01-13T01:50:22.000Z (almost 13 years ago)
- Default Branch: devel
- Last Pushed: 2012-01-13T02:57:38.000Z (almost 13 years ago)
- Last Synced: 2024-04-14T07:51:15.189Z (9 months ago)
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
#intro
cibot-jslint 는 node.js 기반으로 동작하는 [jslint][1]로 cibot 프로젝트의 일부 모듈로 사용되기 위에 작성되었습니다.#module
https://github.com/douglascrockford/JSLint#install
```
--$ npm install cibot-jslint--or
$ git clone [email protected]:rhiokim/cibot-jslint.git
$ git submodule update --init
```#usage
*app.js*
```js
var linter = require('cibot-jslint');var res = linter.verify('var foo = 1');
console.log(res);/* result
{ functions: [],
errors:
[ { id: '(error)',
raw: 'Expected \'{a}\' and instead saw \'{b}\'.',
evidence: 'var foo = 1',
line: 1,
character: 12,
a: ';',
b: '(end)',
c: undefined,
d: undefined,
reason: 'Expected \';\' and instead saw \'(end)\'.' } ],
globals: [ 'foo' ],
ok: [Circular],
options: { node: true, es5: true } }
*/
```[1]:http://www.jslint.com/