summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <mquandalle@wekan.io>2016-07-21 12:52:32 +0200
committerMaxime Quandalle <mquandalle@wekan.io>2016-07-21 12:52:32 +0200
commit301210c87bd50c8491844182e515c0ffd97c18f6 (patch)
treeba575f36847ebafc6967e6c9343f506b52e6a21c
parentdd95f0b00256289d53d413ba9030631a8c14d836 (diff)
downloadwekan-301210c87bd50c8491844182e515c0ffd97c18f6.tar.gz
wekan-301210c87bd50c8491844182e515c0ffd97c18f6.tar.bz2
wekan-301210c87bd50c8491844182e515c0ffd97c18f6.zip
Fix eslint testing
Partially reverting c8705a0
-rwxr-xr-xclient/components/main/editor.js4
-rw-r--r--package.json4
2 files changed, 4 insertions, 4 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js
index 7cc11c09..da15407a 100755
--- a/client/components/main/editor.js
+++ b/client/components/main/editor.js
@@ -10,7 +10,7 @@ Template.editor.onRendered(() => {
search(term, callback) {
callback(Emoji.values.map((emoji) => {
return emoji.includes(term) ? emoji : null;
- }).filter(emoji => !!emoji));
+ }).filter(Boolean));
},
template(value) {
const imgSrc = Emoji.baseImagePath + value;
@@ -31,7 +31,7 @@ Template.editor.onRendered(() => {
callback(currentBoard.activeMembers().map((member) => {
const username = Users.findOne(member.userId).username;
return username.includes(term) ? username : null;
- }).filter(username => !!username));
+ }).filter(Boolean));
},
template(value) {
return value;
diff --git a/package.json b/package.json
index 3cfc7c60..0a69681f 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"description": "The open-source Trello-like kanban",
"private": true,
"scripts": {
- "lint": "eslint .; exit 0",
- "test": "npm run --silent lint; exit 0"
+ "lint": "eslint .",
+ "test": "npm run --silent lint"
},
"repository": {
"type": "git",