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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
254cfcb7
Commit
254cfcb7
authored
Aug 27, 2018
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updapte eslintrc no-param-reassign with 'ignorePropertyModificationsFor'
parent
44d251ed
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
13 additions
and
15 deletions
+13
-15
.eslintrc.yml
.eslintrc.yml
+9
-0
app/assets/javascripts/diffs/store/mutations.js
app/assets/javascripts/diffs/store/mutations.js
+0
-1
app/assets/javascripts/fly_out_nav.js
app/assets/javascripts/fly_out_nav.js
+2
-2
app/assets/javascripts/ide/stores/modules/branches/mutations.js
...sets/javascripts/ide/stores/modules/branches/mutations.js
+0
-1
app/assets/javascripts/ide/stores/modules/file_templates/mutations.js
...avascripts/ide/stores/modules/file_templates/mutations.js
+0
-1
app/assets/javascripts/ide/stores/modules/merge_requests/mutations.js
...avascripts/ide/stores/modules/merge_requests/mutations.js
+0
-1
app/assets/javascripts/ide/stores/modules/pipelines/mutations.js
...ets/javascripts/ide/stores/modules/pipelines/mutations.js
+0
-1
app/assets/javascripts/ide/stores/mutations.js
app/assets/javascripts/ide/stores/mutations.js
+0
-1
app/assets/javascripts/ide/stores/mutations/file.js
app/assets/javascripts/ide/stores/mutations/file.js
+0
-1
app/assets/javascripts/jobs/store/mutations.js
app/assets/javascripts/jobs/store/mutations.js
+0
-2
app/assets/javascripts/pipelines/components/pipelines_table_row.vue
.../javascripts/pipelines/components/pipelines_table_row.vue
+0
-2
app/assets/javascripts/reports/store/mutations.js
app/assets/javascripts/reports/store/mutations.js
+0
-1
app/assets/javascripts/vue_shared/vue_resource_interceptor.js
...assets/javascripts/vue_shared/vue_resource_interceptor.js
+1
-1
spec/javascripts/helpers/vue_resource_helper.js
spec/javascripts/helpers/vue_resource_helper.js
+1
-0
No files found.
.eslintrc.yml
View file @
254cfcb7
...
...
@@ -33,6 +33,15 @@ rules:
-
error
-
max
:
1
promise/catch-or-return
:
error
no-param-reassign
:
-
error
-
props
:
true
ignorePropertyModificationsFor
:
-
"
acc"
# for reduce accumulators
-
"
accumulator"
# for reduce accumulators
-
"
el"
# for DOM elements
-
"
element"
# for DOM elements
-
"
state"
# for Vuex mutations
no-underscore-dangle
:
-
error
-
allow
:
...
...
app/assets/javascripts/diffs/store/mutations.js
View file @
254cfcb7
...
...
@@ -107,7 +107,6 @@ export default {
},
[
types
.
EXPAND_ALL_FILES
](
state
)
{
// eslint-disable-next-line no-param-reassign
state
.
diffFiles
=
state
.
diffFiles
.
map
(
file
=>
({
...
file
,
collapsed
:
false
,
...
...
app/assets/javascripts/fly_out_nav.js
View file @
254cfcb7
...
...
@@ -65,8 +65,8 @@ export const hideMenu = (el) => {
const
parentEl
=
el
.
parentNode
;
el
.
style
.
display
=
''
;
// eslint-disable-line no-param-reassign
el
.
style
.
transform
=
''
;
// eslint-disable-line no-param-reassign
el
.
style
.
display
=
''
;
el
.
style
.
transform
=
''
;
el
.
classList
.
remove
(
IS_ABOVE_CLASS
);
parentEl
.
classList
.
remove
(
IS_OVER_CLASS
);
parentEl
.
classList
.
remove
(
IS_SHOWING_FLY_OUT_CLASS
);
...
...
app/assets/javascripts/ide/stores/modules/branches/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
export
default
{
...
...
app/assets/javascripts/ide/stores/modules/file_templates/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
export
default
{
...
...
app/assets/javascripts/ide/stores/modules/merge_requests/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
export
default
{
...
...
app/assets/javascripts/ide/stores/modules/pipelines/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
import
{
normalizeJob
}
from
'
./utils
'
;
...
...
app/assets/javascripts/ide/stores/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
import
projectMutations
from
'
./mutations/project
'
;
import
mergeRequestMutation
from
'
./mutations/merge_request
'
;
...
...
app/assets/javascripts/ide/stores/mutations/file.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
../mutation_types
'
;
import
{
sortTree
}
from
'
../utils
'
;
import
{
diffModes
}
from
'
../../constants
'
;
...
...
app/assets/javascripts/jobs/store/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
export
default
{
...
...
app/assets/javascripts/pipelines/components/pipelines_table_row.vue
View file @
254cfcb7
...
...
@@ -132,10 +132,8 @@ export default {
if
(
this
.
pipeline
.
ref
)
{
return
Object
.
keys
(
this
.
pipeline
.
ref
).
reduce
((
accumulator
,
prop
)
=>
{
if
(
prop
===
'
path
'
)
{
// eslint-disable-next-line no-param-reassign
accumulator
.
ref_url
=
this
.
pipeline
.
ref
[
prop
];
}
else
{
// eslint-disable-next-line no-param-reassign
accumulator
[
prop
]
=
this
.
pipeline
.
ref
[
prop
];
}
return
accumulator
;
...
...
app/assets/javascripts/reports/store/mutations.js
View file @
254cfcb7
/* eslint-disable no-param-reassign */
import
*
as
types
from
'
./mutation_types
'
;
export
default
{
...
...
app/assets/javascripts/vue_shared/vue_resource_interceptor.js
View file @
254cfcb7
...
...
@@ -28,7 +28,7 @@ Vue.http.interceptors.push((request, next) => {
response
.
headers
.
forEach
((
value
,
key
)
=>
{
headers
[
key
]
=
value
;
});
// eslint-disable-next-line no-param-reassign
response
.
headers
=
headers
;
});
});
spec/javascripts/helpers/vue_resource_helper.js
View file @
254cfcb7
...
...
@@ -5,6 +5,7 @@ export const headersInterceptor = (request, next) => {
response
.
headers
.
forEach
((
value
,
key
)
=>
{
headers
[
key
]
=
value
;
});
// eslint-disable-next-line no-param-reassign
response
.
headers
=
headers
;
});
};
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