Permalink
Browse files

Add xo (#492)

* replace eslint with xo

* switch require to using const

* move exports to bottom of file

* fix whitespace and indentation

* var => const, let

* remove unneeded setImmediate

* remove redundant .editconfig values

* allow final newline to be inserted

* fix last xo errors

* fix last xo errors

* last few fixes & enable xo

* fix mocha strict mode

* fix typo and debug statement

* add index.js to xo

* lint test files

* bump test timeout to 8000ms

* fix test timeout with TRAVIS

* make mocha bail after first failure

* enable linting on all files

* remove unneeded err check

* remove duplicate var

* fix failing test

* fix last failing tests

* fix no-unused-vars linting issue
  • Loading branch information...
OmgImAlexis committed Aug 12, 2017
1 parent 1f3dc80 commit 774c26e35f5479adbff25d386936836c9598b909
Showing with 1,801 additions and 417 deletions.
  1. +1 −14 .editorconfig
  2. +0 −40 .eslintrc
  3. +1 −1 Makefile
  4. +3 −1 index.js
  5. +158 −134 lib/agenda.js
  6. +91 −82 lib/job.js
  7. +26 −2 package.json
  8. +130 −25 test/agenda.js
  9. +1 −1 test/fixtures/addTests.js
  10. +1 −1 test/fixtures/agenda-instance.js
  11. +135 −92 test/job.js
  12. +1 −1 test/retry.js
  13. +1,253 −23 yarn.lock
@@ -2,19 +2,6 @@
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=false
insert_final_newline=true
indent_style=space
indent_size=2
[{*.sht,*.html,*.shtm,*.shtml,*.htm}]
indent_style=space
indent_size=2
[{.eslintrc,.babelrc,.stylelintrc,jest.config,*.json,*.jsb3,*.jsb2,*.bowerrc}]
indent_style=space
indent_size=2
[{*.yml,*.yaml}]
indent_style=space
indent_size=2

This file was deleted.

Oops, something went wrong.
@@ -7,7 +7,7 @@ test-debug:
NODE_ENV=test $(MOCHA_PATH) -w --reporter spec debug
test-once:
NODE_ENV=test $(MOCHA_PATH) --reporter spec --timeout 8000
NODE_ENV=test $(MOCHA_PATH) --reporter spec --timeout 8000 -b
test-coverage:
NODE_ENV=test AGENDA_COVERAGE=1 $(MOCHA_PATH) test --require blanket --reporter html-cov > coverage.html
@@ -1 +1,3 @@
var agenda = module.exports = require('./lib/agenda.js');
const Agenda = require('./lib/agenda.js');
module.exports = Agenda;
Oops, something went wrong.

0 comments on commit 774c26e

Please sign in to comment.