Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d55d4cdf
Commit
d55d4cdf
authored
Jan 12, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve all space-in-parens eslint violations
parent
83ecc02d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
app/assets/javascripts/blob/template_selector.js.es6
app/assets/javascripts/blob/template_selector.js.es6
+2
-2
app/assets/javascripts/boards/models/issue.js.es6
app/assets/javascripts/boards/models/issue.js.es6
+5
-5
app/assets/javascripts/boards/models/list.js.es6
app/assets/javascripts/boards/models/list.js.es6
+3
-3
app/assets/javascripts/boards/stores/boards_store.js.es6
app/assets/javascripts/boards/stores/boards_store.js.es6
+4
-4
No files found.
app/assets/javascripts/blob/template_selector.js.es6
View file @
d55d4cdf
/* eslint-disable comma-dangle, object-shorthand, func-names, space-before-function-paren, arrow-parens, no-unused-vars, class-methods-use-this, no-var, consistent-return, no-param-reassign,
space-in-parens,
max-len */
/* eslint-disable comma-dangle, object-shorthand, func-names, space-before-function-paren, arrow-parens, no-unused-vars, class-methods-use-this, no-var, consistent-return, no-param-reassign, max-len */
((global) => {
class TemplateSelector {
...
...
@@ -98,4 +98,4 @@
}
global.TemplateSelector = TemplateSelector;
})(window.gl || (
window.gl = {}));
})(window.gl || (window.gl = {}));
app/assets/javascripts/boards/models/issue.js.es6
View file @
d55d4cdf
/* eslint-disable no-unused-vars, space-before-function-paren, arrow-body-style,
space-in-parens,
arrow-parens, comma-dangle, max-len */
/* eslint-disable no-unused-vars, space-before-function-paren, arrow-body-style, arrow-parens, comma-dangle, max-len */
/* global Vue */
/* global ListLabel */
/* global ListMilestone */
...
...
@@ -37,12 +37,12 @@ class ListIssue {
}
findLabel (findLabel) {
return this.labels.filter(
label => label.title === findLabel.title
)[0];
return this.labels.filter(
label => label.title === findLabel.title
)[0];
}
removeLabel (removeLabel) {
if (removeLabel) {
this.labels = this.labels.filter(
label => removeLabel.title !== label.title
);
this.labels = this.labels.filter(
label => removeLabel.title !== label.title
);
}
}
...
...
@@ -51,7 +51,7 @@ class ListIssue {
}
getLists () {
return gl.issueBoards.BoardsStore.state.lists.filter(
list => list.findIssue(this.id)
);
return gl.issueBoards.BoardsStore.state.lists.filter(
list => list.findIssue(this.id)
);
}
update (url) {
...
...
@@ -60,7 +60,7 @@ class ListIssue {
milestone_id: this.milestone ? this.milestone.id : null,
due_date: this.dueDate,
assignee_id: this.assignee ? this.assignee.id : null,
label_ids: this.labels.map(
(label) => label.id
)
label_ids: this.labels.map(
(label) => label.id
)
}
};
...
...
app/assets/javascripts/boards/models/list.js.es6
View file @
d55d4cdf
/* eslint-disable space-before-function-paren, no-underscore-dangle, class-methods-use-this, consistent-return,
space-in-parens,
no-shadow, no-param-reassign, max-len, no-unused-vars */
/* eslint-disable space-before-function-paren, no-underscore-dangle, class-methods-use-this, consistent-return, no-shadow, no-param-reassign, max-len, no-unused-vars */
/* global ListIssue */
/* global ListLabel */
...
...
@@ -71,7 +71,7 @@ class List {
Object.keys(filters).forEach((key) => { data[key] = filters[key]; });
if (this.label) {
data.label_name = data.label_name.filter(
label => label !== this.label.title
);
data.label_name = data.label_name.filter(
label => label !== this.label.title
);
}
if (emptyIssues) {
...
...
@@ -132,7 +132,7 @@ class List {
}
findIssue (id) {
return this.issues.filter(
issue => issue.id === id
)[0];
return this.issues.filter(
issue => issue.id === id
)[0];
}
removeIssue (removeIssue) {
...
...
app/assets/javascripts/boards/stores/boards_store.js.es6
View file @
d55d4cdf
/* eslint-disable comma-dangle, space-before-function-paren, one-var,
space-in-parens,
no-shadow, dot-notation, max-len */
/* eslint-disable comma-dangle, space-before-function-paren, one-var, no-shadow, dot-notation, max-len */
/* global Cookies */
/* global List */
...
...
@@ -52,7 +52,7 @@
},
shouldAddBlankState () {
// Decide whether to add the blank state
return !(this.state.lists.filter(
list => list.type !== 'backlog' && list.type !== 'done'
)[0]);
return !(this.state.lists.filter(
list => list.type !== 'backlog' && list.type !== 'done'
)[0]);
},
addBlankState () {
if (!this.shouldAddBlankState() || this.welcomeIsHidden() || this.disabled) return;
...
...
@@ -82,7 +82,7 @@
if (!list) return;
this.state.lists = this.state.lists.filter(
list => list.id !== id
);
this.state.lists = this.state.lists.filter(
list => list.id !== id
);
},
moveList (listFrom, orderLists) {
orderLists.forEach((id, i) => {
...
...
@@ -95,7 +95,7 @@
moveIssueToList (listFrom, listTo, issue, newIndex) {
const issueTo = listTo.findIssue(issue.id);
const issueLists = issue.getLists();
const listLabels = issueLists.map(
listIssue => listIssue.label
);
const listLabels = issueLists.map(
listIssue => listIssue.label
);
// Add to new lists issues if it doesn't already exist
if (!issueTo) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment