Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyd committed Mar 16, 2018
2 parents 3d8cf5d + edc96ac commit 0557c3c
Show file tree
Hide file tree
Showing 16 changed files with 1,399 additions and 38 deletions.
44 changes: 44 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
env:
es6: false
mongo: true

parserOptions:
ecmaVersion: 3

rules:
# Rules are documented at http://eslint.org/docs/rules/
no-cond-assign: 2
no-console: 2
no-control-regex: 2
no-debugger: 2
no-div-regex: 2
no-dupe-args: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-empty-character-class: 2
no-empty-pattern: 2
no-ex-assign: 2
no-extra-boolean-cast: 2
no-extra-semi: 2
no-fallthrough: 2
no-func-assign: 2
no-invalid-regexp: 2
no-labels: 2
no-negated-in-lhs: 2
no-obj-calls: 2
no-octal-escape: 2
no-octal: 2
no-regex-spaces: 2
no-return-assign: 2
no-script-url: 2
no-self-compare: 2
no-sequences: 2
no-sparse-arrays: 2
no-unexpected-multiline: 2
no-unreachable: 2
no-unused-expressions: 2
no-useless-call: 2
no-with: 2
semi: 2
use-isnan: 2
valid-typeof: 2
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ tags
*.pyc
*.swp
benchrun_daemon.conf

node_modules
18 changes: 18 additions & 0 deletions bin/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -eou pipefail

root="$(dirname "$0")/.."
pushd "$root" >/dev/null
root="$(pwd -P)"
popd >/dev/null

pushd "$root" >/dev/null
npm install
./node_modules/.bin/eslint \
--config "$root/.eslintrc.yml" \
--fix \
./testcases
eslint_out="$?"
popd >/dev/null

exit "$eslint_out"
Loading

0 comments on commit 0557c3c

Please sign in to comment.