mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Upgrade ESLint to v3 (#8299)
* upgraded habitrpg-eslint-config to v2 and eslint to v3 * adapt to eslint3 rules * update shrinkwrap * update shrinkwrap again
This commit is contained in:
@@ -86,7 +86,7 @@ export function generateTodo (user) {
|
||||
completed: false,
|
||||
};
|
||||
|
||||
let task = new Tasks.todo(Tasks.Task.sanitize(todo)); // eslint-disable-line babel/new-cap
|
||||
let task = new Tasks.todo(Tasks.Task.sanitize(todo)); // eslint-disable-line new-cap
|
||||
task.userId = user._id;
|
||||
task.save();
|
||||
|
||||
@@ -101,7 +101,7 @@ export function generateDaily (user) {
|
||||
completed: false,
|
||||
};
|
||||
|
||||
let task = new Tasks.daily(Tasks.Task.sanitize(daily)); // eslint-disable-line babel/new-cap
|
||||
let task = new Tasks.daily(Tasks.Task.sanitize(daily)); // eslint-disable-line new-cap
|
||||
task.userId = user._id;
|
||||
task.save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user