Skip to content

Commit

Permalink
feature(eslint) add
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Nov 16, 2016
1 parent 3f0868e commit 8fe9f09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"indent": ["error", 4]
},
"extends": ["eslint:recommended"]
}
1 change: 1 addition & 0 deletions test/zames.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ test('zames: arguments: no', (t) => {
});

test('zames: arguments: fn: count', (t) => {
/*eslint no-unused-vars: 0 */
const fn = () => zames((a, b, c, d, e) =>{});

t.throws(fn, /fn takes to much arguments, up to 4 supported/, 'should throw when to much arguments');
Expand Down

0 comments on commit 8fe9f09

Please sign in to comment.