Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicolas Frandeboeuf
kresus
Commits
5b053984
Commit
5b053984
authored
Jun 01, 2017
by
ZeHiro
Browse files
Fix deprecated lint rule following eslint upgrade + fix lint
parent
49ceac60
Changes
13
Hide whitespace changes
Inline
Side-by-side
client/.eslintrc.yml
View file @
5b053984
...
...
@@ -134,12 +134,9 @@
-
2
react/jsx-sort-props
:
-
0
# lolno
react/jsx-spac
e-before-clos
ing
:
react/jsx-
tag-
spacing
:
-
2
-
"
always"
#react/jsx-tag-spacing:
# - 2
# - { closingSlash: "never", beforeSelfClosing: "always", afterOpening: "never" }
-
{
closingSlash
:
"
never"
,
beforeSelfClosing
:
"
always"
,
afterOpening
:
"
never"
}
react/jsx-uses-react
:
-
2
react/jsx-uses-vars
:
...
...
client/components/categories/index.js
View file @
5b053984
...
...
@@ -37,14 +37,15 @@ class CategoryList extends React.Component {
}
render
()
{
let
items
=
this
.
props
.
categories
.
map
(
cat
=>
let
items
=
this
.
props
.
categories
.
map
(
cat
=>
(
<
CategoryListItem
cat
=
{
cat
}
categories
=
{
this
.
props
.
categories
}
updateCategory
=
{
this
.
props
.
updateCategory
}
deleteCategory
=
{
this
.
props
.
deleteCategory
}
key
=
{
cat
.
id
}
/>
)
;
/
>
));
let
maybeForm
=
(
this
.
state
.
showForm
?
...
...
client/components/categories/item.js
View file @
5b053984
...
...
@@ -114,12 +114,13 @@ class CategoryListItem extends React.Component {
let
replacementOptions
=
this
.
props
.
categories
.
filter
(
cat
=>
cat
.
id
!==
c
.
id
)
.
map
(
cat
=>
.
map
(
cat
=>
(
<
option
key
=
{
cat
.
id
}
value
=
{
cat
.
id
}
>
{
cat
.
title
}
<
/option>
)
;
<
/option
>
));
replacementOptions
=
[
<
option
...
...
client/components/operations/search.js
View file @
5b053984
...
...
@@ -67,13 +67,13 @@ class SearchComponent extends React.Component {
{
$t
(
'
client.search.any_type
'
)
}
<
/option
>
].
concat
(
this
.
props
.
operationTypes
.
map
(
type
=>
this
.
props
.
operationTypes
.
map
(
type
=>
(
<
option
key
=
{
type
.
name
}
value
=
{
type
.
name
}
>
{
$t
(
`client.
${
type
.
name
}
`
)
}
<
/option
>
)
)
)
);
let
handleKeyword
=
event
=>
{
...
...
client/components/settings/bank-accesses/custom-bank-field.js
View file @
5b053984
...
...
@@ -45,13 +45,13 @@ class CustomBankField extends React.Component {
switch
(
this
.
props
.
params
.
type
)
{
case
'
select
'
:
customFieldOptions
=
this
.
props
.
params
.
values
.
map
(
opt
=>
customFieldOptions
=
this
.
props
.
params
.
values
.
map
(
opt
=>
(
<
option
key
=
{
opt
.
value
}
value
=
{
opt
.
value
}
>
{
opt
.
label
}
<
/option
>
);
)
);
defaultValue
=
this
.
props
.
params
.
currentValue
||
this
.
props
.
params
.
default
;
customFieldFormInput
=
(
<
select
...
...
client/components/settings/bank-accesses/form.js
View file @
5b053984
...
...
@@ -114,13 +114,13 @@ class NewBankForm extends React.Component {
return
this
.
renderHeader
(
<
div
className
=
"
transition-expand
"
/>
);
}
let
options
=
this
.
props
.
banks
.
map
(
bank
=>
let
options
=
this
.
props
.
banks
.
map
(
bank
=>
(
<
option
key
=
{
bank
.
id
}
value
=
{
bank
.
uuid
}
>
{
bank
.
name
}
<
/option
>
);
)
);
let
selectedBank
=
this
.
selectedBank
();
...
...
client/components/settings/bank-accesses/index.js
View file @
5b053984
...
...
@@ -11,12 +11,12 @@ export default connect(state => {
accesses
:
get
.
accesses
(
state
)
};
})(
props
=>
{
let
accesses
=
props
.
accesses
.
map
(
access
=>
let
accesses
=
props
.
accesses
.
map
(
access
=>
(
<
BankAccessItem
key
=
{
access
.
id
}
access
=
{
access
}
/
>
);
)
);
return
(
<
div
key
=
"
bank-accesses-section
"
>
<
NewBankForm
expanded
=
{
false
}
/
>
...
...
client/components/settings/bank-accesses/item.js
View file @
5b053984
...
...
@@ -24,11 +24,12 @@ export default connect((state, props) => {
};
})(
props
=>
{
let
access
=
props
.
access
;
let
accounts
=
props
.
accounts
.
map
(
acc
=>
let
accounts
=
props
.
accounts
.
map
(
acc
=>
(
<
AccountItem
key
=
{
acc
.
id
}
account
=
{
acc
}
/>
)
;
/>
)
);
return
(
<
div
...
...
client/components/settings/emails/account-select.js
View file @
5b053984
...
...
@@ -16,13 +16,13 @@ class AccountSelector extends React.Component {
}
render
()
{
let
options
=
this
.
props
.
pairs
.
map
(
pair
=>
let
options
=
this
.
props
.
pairs
.
map
(
pair
=>
(
<
option
key
=
{
pair
.
key
}
value
=
{
pair
.
key
}
>
{
pair
.
val
}
<
/option
>
);
)
);
let
refSelector
=
selector
=>
{
this
.
selector
=
selector
;
...
...
client/components/settings/emails/alert-list.js
View file @
5b053984
...
...
@@ -10,14 +10,14 @@ import AlertItem from './alert-item';
const
Alerts
=
props
=>
{
let
items
=
props
.
alerts
.
map
(
pair
=>
let
items
=
props
.
alerts
.
map
(
pair
=>
(
<
AlertItem
key
=
{
pair
.
alert
.
id
}
alert
=
{
pair
.
alert
}
account
=
{
pair
.
account
}
sendIfText
=
{
props
.
sendIfText
}
/
>
);
)
);
return
(
<
div
className
=
"
top-panel panel panel-default
"
>
...
...
client/components/settings/emails/report-list.js
View file @
5b053984
...
...
@@ -8,13 +8,13 @@ import ReportCreationModal from './report-form-modal';
import
ReportItem
from
'
./report-item
'
;
let
Reports
=
props
=>
{
let
items
=
props
.
reports
.
map
(
pair
=>
let
items
=
props
.
reports
.
map
(
pair
=>
(
<
ReportItem
key
=
{
pair
.
alert
.
id
}
alert
=
{
pair
.
alert
}
account
=
{
pair
.
account
}
/
>
);
)
);
return
(
<
div
className
=
"
top-panel panel panel-default
"
>
...
...
client/components/ui/bool-setting.js
View file @
5b053984
import
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
const
BoolSetting
=
props
=>
const
BoolSetting
=
props
=>
(
<
div
className
=
"
form-group clearfix
"
>
<
label
className
=
"
col-xs-4 control-label
"
>
{
props
.
label
}
...
...
@@ -13,7 +13,8 @@ const BoolSetting = props =>
onChange
=
{
props
.
onChange
}
/
>
<
/div
>
<
/div>
;
<
/div
>
);
BoolSetting
.
propTypes
=
{
// Label describing what the setting is all about.
...
...
client/components/ui/button-select.js
View file @
5b053984
...
...
@@ -31,13 +31,13 @@ class SelectableButtonComponent extends React.Component {
let
options
=
[];
if
(
this
.
state
.
editMode
)
{
options
=
this
.
props
.
optionsArray
.
map
(
o
=>
options
=
this
.
props
.
optionsArray
.
map
(
o
=>
(
<
option
key
=
{
o
.
id
}
value
=
{
o
.
id
}
>
{
this
.
props
.
idToDescriptor
(
o
.
id
)[
0
]
}
<
/option
>
);
)
);
}
else
{
options
=
[
<
option
...
...
Write
Preview
Supports
Markdown
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