-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce eslint and tried to find out your style
- Loading branch information
Showing
5 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"no-console": 0, | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* global describe, it */ | ||
const FILE = 'FILE' | ||
const EMAIL = '[email protected]' | ||
const EMAIL2 = '[email protected]' | ||
|
@@ -101,8 +102,10 @@ describe('Basic Usage', function () { | |
|
||
describe('post', function () { | ||
var sender = client.post('sender') | ||
// eslint-disable-next-line no-unused-vars | ||
var deletedErrorMessage = 'There is an already existing deleted sender with the same email. ' + | ||
'You can use "validate" action in order to activate it.' | ||
// eslint-disable-next-line no-unused-vars | ||
var inactiveErrorMessage = 'There is an already existing inactive sender with the same email. ' + | ||
'You can use "validate" action in order to activate it.' | ||
|
||
|