Skip to content

Commit d95a798

Browse files
committed
Fix linting errors and add @module jsdoc directives
1 parent b016aa0 commit d95a798

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+138
-90
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@
244244
"error",
245245
"always"
246246
],
247+
"require-atomic-updates": "off",
247248
"require-await": "error",
248249
"require-jsdoc": "off",
249250
"rest-spread-spacing": "error",

src/converse-autocomplete.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
// Copyright (c) 2013-2019, the Converse.js developers
55
// Licensed under the Mozilla Public License (MPLv2)
66

7-
// This plugin started as a fork of Lea Verou's Awesomplete
8-
// https://leaverou.github.io/awesomplete/
9-
10-
7+
/**
8+
* @module converse-autocomplete
9+
* @description
10+
* Converse.js plugin which started as a fork of Lea Verou's Awesomplete
11+
* https://leaverou.github.io/awesomplete/
12+
*/
1113
import converse from "@converse/headless/converse-core";
1214

1315
const { _, Backbone } = converse.env,

src/converse-bookmark-views.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
// Copyright (c) 2019, Jan-Carel Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
66
//
7-
/*global define */
8-
9-
/* This is a Converse.js plugin which add support for bookmarks specified
10-
* in XEP-0048.
7+
/**
8+
* @module converse-bookmark-views
9+
* @description
10+
* Converse.js plugin which adds views for XEP-0048 bookmarks
1111
*/
12-
1312
import "backbone.nativeview";
1413
import BrowserStorage from "backbone.browserStorage";
1514
import { OrderedListView } from "backbone.overview";

src/converse-chatboxviews.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// Copyright (c) 2012-2019, the Converse.js developers
55
// Licensed under the Mozilla Public License (MPLv2)
66

7+
/**
8+
* @module converse-chatboxviews
9+
*/
710
import "@converse/headless/converse-chatboxes";
811
import "backbone.nativeview";
912
import { Overview } from "backbone.overview";

src/converse-chatview.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// Copyright (c) 2013-2019, the Converse.js developers
55
// Licensed under the Mozilla Public License (MPLv2)
66

7+
/**
8+
* @module converse-chatview
9+
*/
710
import "backbone.nativeview";
811
import "converse-chatboxviews";
912
import "converse-message-view";

src/converse-controlbox.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
// Copyright (c) 2012-2017, Jan-Carel Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
66
//
7-
/*global define */
8-
7+
/**
8+
* @module converse-controlbox
9+
*/
910
import "converse-chatview";
1011
import "converse-profile";
1112
import "converse-rosterview";

src/converse-dragresize.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
// Copyright (c) 2012-2017, Jan-Carel Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
66
//
7-
/*global define, window, document */
8-
7+
/**
8+
* @module converse-dragresize
9+
*/
910
import "converse-chatview";
1011
import "converse-controlbox";
1112
import converse from "@converse/headless/converse-core";

src/converse-fullscreen.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// Copyright (c) JC Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
66
//
7-
7+
/**
8+
* @module converse-fullscreen
9+
*/
810
import "@converse/headless/converse-muc";
911
import "converse-chatview";
1012
import "converse-controlbox";

src/converse-headline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
//
44
// Copyright (c) 2019, Jan-Carel Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
6-
6+
/**
7+
* @module converse-headline
8+
*/
79
import "converse-chatview";
810
import converse from "@converse/headless/converse-core";
911
import tpl_chatbox from "templates/chatbox.html";

src/converse-mam-views.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
// Copyright (c) 2012-2019, Jan-Carel Brand <[email protected]>
55
// Licensed under the Mozilla Public License (MPLv2)
66
//
7-
// Views for XEP-0313 Message Archive Management
8-
7+
/**
8+
* @module converse-mam-views
9+
* @description
10+
* Views for XEP-0313 Message Archive Management
11+
*/
912
import converse from "@converse/headless/converse-core";
1013
import { debounce } from 'lodash'
1114

0 commit comments

Comments
 (0)