Skip to content

Commit

Permalink
Add xo (#492)
Browse files Browse the repository at this point in the history
* 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 774c26e
Show file tree
Hide file tree
Showing 13 changed files with 1,801 additions and 417 deletions.
15 changes: 1 addition & 14 deletions .editorconfig
Expand Up @@ -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

40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion index.js
@@ -1 +1,3 @@
var agenda = module.exports = require('./lib/agenda.js');
const Agenda = require('./lib/agenda.js');

module.exports = Agenda;

0 comments on commit 774c26e

Please sign in to comment.