Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
101
Issues
101
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gjs
Commits
b8e64a49
Commit
b8e64a49
authored
Jun 22, 2020
by
Evan Welsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dangling comma eslint rule.
- In ESLint v6, dangling commas on functions are now linted.
parent
dd1b7850
Pipeline
#190551
passed with stages
in 2 minutes and 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
.eslintrc.yml
.eslintrc.yml
+3
-1
examples/gtk-application.js
examples/gtk-application.js
+3
-3
installed-tests/js/testTweener.js
installed-tests/js/testTweener.js
+2
-2
No files found.
.eslintrc.yml
View file @
b8e64a49
...
...
@@ -24,7 +24,9 @@ rules:
# allow: [^vfunc_, ^on_, _instance_init]
comma-dangle
:
-
error
-
always-multiline
-
arrays
:
always-multiline
objects
:
always-multiline
functions
:
never
comma-spacing
:
-
error
-
before
:
false
...
...
examples/gtk-application.js
View file @
b8e64a49
...
...
@@ -20,7 +20,7 @@ var ExampleApplication = GObject.registerClass({
'
ExampleProperty
'
,
// nickname
'
An example read write property
'
,
// description
GObject
.
ParamFlags
.
READWRITE
,
// read/write/construct...
'
a default value
'
,
'
a default value
'
),
},
Signals
:
{
'
examplesig
'
:
{
param_types
:
[
GObject
.
TYPE_INT
]}},
...
...
@@ -83,7 +83,7 @@ var ExampleApplication = GObject.registerClass({
notif
.
set_title
(
'
Example Notification
'
);
notif
.
set_body
(
'
Example Body
'
);
notif
.
set_icon
(
new
Gio
.
ThemedIcon
({
name
:
'
dialog-information-symbolic
'
})
,
new
Gio
.
ThemedIcon
({
name
:
'
dialog-information-symbolic
'
})
);
// A default action for when the body of the notification is clicked
...
...
@@ -92,7 +92,7 @@ var ExampleApplication = GObject.registerClass({
// A button for the notification
notif
.
add_button
(
'
Button Text
'
,
"
app.exampleAction('exampleParameter')
"
,
"
app.exampleAction('exampleParameter')
"
);
// This won't actually be shown, since an application needs a .desktop
...
...
installed-tests/js/testTweener.js
View file @
b8e64a49
...
...
@@ -282,7 +282,7 @@ describe('Tweener', function () {
},
function
(
obj
,
val
)
{
obj
.
x
=
-
val
;
}
,
}
);
var
objectA
=
{
...
...
@@ -343,7 +343,7 @@ describe('Tweener', function () {
function
(
val
)
{
return
[{
name
:
'
x
'
,
value
:
val
},
{
name
:
'
y
'
,
value
:
-
val
}];
}
,
}
);
var
objectA
=
{
...
...
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