Skip to content

Commit

Permalink
Added eslint + refactor
Browse files Browse the repository at this point in the history
fix tests for "showKey" setting

update package version

Refactor + added bodyParser to routes

refactor builder creation

fix tests

removed "default" and pass it to require

create() now returns the router for better integration. Updated README.md

update README.md

update README.md

update README.md

added tests
  • Loading branch information
LOIX Sebastien authored and sebelga committed Apr 19, 2017
1 parent 31e51ae commit 3bae07b
Show file tree
Hide file tree
Showing 7 changed files with 1,296 additions and 1,134 deletions.
26 changes: 23 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
}
"sourceType": "script"
},
"root": true,
"env": {
"node": true
},
"extends": "airbnb-base",
"plugins": [
"mocha"
],
"rules": {
// enable additional rules
"indent": ["error", 4, {"SwitchCase": 1}],
"no-use-before-define": ["error", {"functions": false}],
"prefer-rest-params": "off",
"prefer-spread": "off",
"no-inner-declarations": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"max-len": ["error", 140],
"mocha/no-exclusive-tests": "error"
}
}
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}\\index.js"
},
{
"type": "node",
"request": "launch",
"name": "Run mocha",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"cwd": "${workspaceRoot}",
"args": ["-t", "10000", "--watch", "./test/**/*.*", "--recursive"],
"env": {
"NODE_ENV": "test"
}
}
]
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
Loading

0 comments on commit 3bae07b

Please sign in to comment.