Skip to content

Commit 0557c3c

Browse files
author
dalyd
committed
Merge branch 'develop'
2 parents 3d8cf5d + edc96ac commit 0557c3c

16 files changed

+1399
-38
lines changed

.eslintrc.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
env:
2+
es6: false
3+
mongo: true
4+
5+
parserOptions:
6+
ecmaVersion: 3
7+
8+
rules:
9+
# Rules are documented at http://eslint.org/docs/rules/
10+
no-cond-assign: 2
11+
no-console: 2
12+
no-control-regex: 2
13+
no-debugger: 2
14+
no-div-regex: 2
15+
no-dupe-args: 2
16+
no-dupe-keys: 2
17+
no-duplicate-case: 2
18+
no-empty-character-class: 2
19+
no-empty-pattern: 2
20+
no-ex-assign: 2
21+
no-extra-boolean-cast: 2
22+
no-extra-semi: 2
23+
no-fallthrough: 2
24+
no-func-assign: 2
25+
no-invalid-regexp: 2
26+
no-labels: 2
27+
no-negated-in-lhs: 2
28+
no-obj-calls: 2
29+
no-octal-escape: 2
30+
no-octal: 2
31+
no-regex-spaces: 2
32+
no-return-assign: 2
33+
no-script-url: 2
34+
no-self-compare: 2
35+
no-sequences: 2
36+
no-sparse-arrays: 2
37+
no-unexpected-multiline: 2
38+
no-unreachable: 2
39+
no-unused-expressions: 2
40+
no-useless-call: 2
41+
no-with: 2
42+
semi: 2
43+
use-isnan: 2
44+
valid-typeof: 2

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ tags
44
*.pyc
55
*.swp
66
benchrun_daemon.conf
7+
8+
node_modules

bin/lint

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -eou pipefail
3+
4+
root="$(dirname "$0")/.."
5+
pushd "$root" >/dev/null
6+
root="$(pwd -P)"
7+
popd >/dev/null
8+
9+
pushd "$root" >/dev/null
10+
npm install
11+
./node_modules/.bin/eslint \
12+
--config "$root/.eslintrc.yml" \
13+
--fix \
14+
./testcases
15+
eslint_out="$?"
16+
popd >/dev/null
17+
18+
exit "$eslint_out"

0 commit comments

Comments
 (0)