Commit 4242122a authored by Mike Greiling's avatar Mike Greiling

Upgrade eslint to v5

We needed to disable a few eslint-config-airbnb-base rules in order
to keep the number of line changes under control.  These should be
re-enabled asap.
parent 3f51ec21
...@@ -56,6 +56,10 @@ rules: ...@@ -56,6 +56,10 @@ rules:
component: always component: always
svg: always svg: always
math: always math: always
camelcase:
- error
- properties: never
ignoreDestructuring: true
## Conflicting rules with prettier: ## Conflicting rules with prettier:
space-before-function-paren: off space-before-function-paren: off
curly: off curly: off
...@@ -63,7 +67,7 @@ rules: ...@@ -63,7 +67,7 @@ rules:
function-paren-newline: off function-paren-newline: off
object-curly-newline: off object-curly-newline: off
padded-blocks: off padded-blocks: off
# Disabled for now, to make the eslint 3 -> eslint 4 update smoother # Disabled for now, to make the eslint 3 -> eslint 5 update smoother
## Indent rule. We are using the old for now: https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite ## Indent rule. We are using the old for now: https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite
indent: off indent: off
indent-legacy: indent-legacy:
...@@ -78,3 +82,11 @@ rules: ...@@ -78,3 +82,11 @@ rules:
FunctionExpression: FunctionExpression:
parameters: 1 parameters: 1
body: 1 body: 1
# Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
operator-linebreak: off
implicit-arrow-linebreak: off
no-else-return:
- error
- allowElseIf: true
import/no-useless-path-segments: off
lines-between-class-members: off
...@@ -9,7 +9,7 @@ import '~/vue_shared/models/assignee'; ...@@ -9,7 +9,7 @@ import '~/vue_shared/models/assignee';
import FilteredSearchBoards from './filtered_search_boards'; import FilteredSearchBoards from './filtered_search_boards';
import eventHub from './eventhub'; import eventHub from './eventhub';
import sidebarEventHub from '~/sidebar/event_hub'; // eslint-disable-line import/first import sidebarEventHub from '~/sidebar/event_hub';
import './models/issue'; import './models/issue';
import './models/list'; import './models/list';
import './models/milestone'; import './models/milestone';
...@@ -24,7 +24,7 @@ import './components/board'; ...@@ -24,7 +24,7 @@ import './components/board';
import './components/board_sidebar'; import './components/board_sidebar';
import './components/new_list_dropdown'; import './components/new_list_dropdown';
import BoardAddIssuesModal from './components/modal/index.vue'; import BoardAddIssuesModal from './components/modal/index.vue';
import '~/vue_shared/vue_resource_interceptor'; // eslint-disable-line import/first import '~/vue_shared/vue_resource_interceptor';
export default () => { export default () => {
const $boardApp = document.getElementById('board-app'); const $boardApp = document.getElementById('board-app');
......
...@@ -115,8 +115,9 @@ export default class MergeRequestTabs { ...@@ -115,8 +115,9 @@ export default class MergeRequestTabs {
this.mergeRequestTabs && this.mergeRequestTabs &&
this.mergeRequestTabs.querySelector(`a[data-action='${action}']`) && this.mergeRequestTabs.querySelector(`a[data-action='${action}']`) &&
this.mergeRequestTabs.querySelector(`a[data-action='${action}']`).click this.mergeRequestTabs.querySelector(`a[data-action='${action}']`).click
) ) {
this.mergeRequestTabs.querySelector(`a[data-action='${action}']`).click(); this.mergeRequestTabs.querySelector(`a[data-action='${action}']`).click();
}
this.initAffix(); this.initAffix();
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment