Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit 7c13e0e

Browse files
committed
Lint with eslint, fix linting errors
There were a lot.
1 parent 15950b1 commit 7c13e0e

31 files changed

+161
-179
lines changed

.eslintrc.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 5,
4+
"sourceType": "module"
5+
},
6+
"env": {
7+
"browser": true,
8+
"commonjs": true
9+
},
10+
11+
"extends": "eslint:recommended",
12+
13+
"rules": {
14+
"no-console": 0,
15+
16+
"semi": ["error", "always"],
17+
18+
"array-callback-return": 2,
19+
"curly": ["error", "all"],
20+
"eqeqeq": ["error", "allow-null"],
21+
"dot-notation": 2
22+
}
23+
}

README.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,26 @@ If you wish, you can also run it headlessly on top of phantomjs and node:
1414
###Building###
1515

1616
```sh
17-
#one must first get the repo
17+
# one must first get the repo
1818
$ git clone https://github.com/Zirak/SO-ChatBot.git
1919
$ cd SO-ChatBot
20-
```
2120

22-
The provided `publi.sh` automagically does building, adds all changed items to commit and publishes for you:
21+
# linting
22+
npm run lint
2323

24-
```sh
25-
$ ./publi.sh commit-message
24+
# building
25+
$ node build.js
26+
# or
27+
$ npm run build
2628
```
2729

28-
To build manually:
30+
The result will be in `master.js` and `master.min.js`
31+
32+
The provided `publi.sh` automagically does building, adds all changed items to commit and publishes for you:
2933

3034
```sh
31-
$ node build.js
32-
#to skip minification
33-
$ node build.js no-min
35+
$ ./publi.sh commit-message
3436
```
35-
The result will be in `master.js` and `master.min.js`
36-
37-
Minifying will run [closure-compiler.jar](https://developers.google.com/closure/compiler/docs/gettingstarted_app) if java is installed, and then try to run [uglify-js2](https://github.com/mishoo/UglifyJS2).
3837

3938
###The Bot API###
4039
(, a very short explanation of a limited subset of)

0 commit comments

Comments
 (0)