Skip to content

Commit

Permalink
Remove JShint references
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Feb 28, 2018
1 parent 7aa75cb commit 721d23c
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 99 deletions.
94 changes: 0 additions & 94 deletions .jshintrc

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Optional for development a pre-commit hook can be used, which runs JSHint.

# Running static analysis


ESLint is used for JavaScript linting.

```
make lint
```
Expand Down
1 change: 0 additions & 1 deletion client/zarafa/Zarafa.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,6 @@ Ext.apply(Zarafa, {

// Process data that was passed as URL data
Zarafa.core.URLActionMgr.execute(urlActionData);
/*jshint -W051 */
delete urlActionData;

// Start the keepalive to make sure we stay logged into the zarafa-server,
Expand Down
1 change: 0 additions & 1 deletion client/zarafa/core/ui/ContextContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ Zarafa.core.ui.ContextContainer = Ext.extend(Zarafa.core.ui.SwitchViewContentCon
// views often.
if (this.autoClean === true && oldItem && oldItem != newItem) {
this.remove(oldItem);
/*jshint -W051 */
delete oldItem;
}
var model = newContext.getModel();
Expand Down
1 change: 0 additions & 1 deletion client/zarafa/core/ui/SwitchViewContentContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ Zarafa.core.ui.SwitchViewContentContainer = Ext.extend(Ext.Container, {
// views often.
if (this.autoClean === true && oldView && oldView != this.getActiveItem()) {
this.remove(oldView);
/*jshint -W051 */
delete oldView;
}
},
Expand Down
1 change: 0 additions & 1 deletion client/zarafa/hierarchy/data/HierarchyTreeLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ Zarafa.hierarchy.data.HierarchyTreeLoader = Ext.extend(Ext.tree.TreeLoader, {
// for 1 ms. This helps with large hierarchies where the JS would normally
// try to load the entire tree in a single thread which might take so long
// that the browser will kill it.
/*jshint unused:false*/
/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "defer" }]*/
var defer = function(node, fn) {
data = this.getFilteredChildNodes(treeNode.getFolder(), 'folder');
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"phplint": "phpmd server text .phpmd.xml || true",
"phplintci": "phpmd server xml .phpmd.xml --reportfile phpmd.xml || true",
"lint": "eslint client/zarafa",
"jsunit": "karma start test/js/unittest.conf.js"
},
"pre-commit": {
Expand Down
1 change: 0 additions & 1 deletion test/js/unittest/RecipientStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ describe("RecipientStore", function() {
var recipientStore;

beforeEach(function() {
/*jshint -W020 */
container = new Zarafa.core.Container();
ipmStore = new Zarafa.core.data.ListModuleStore();
ipmRecord = ipmStore.reader.readRecords(data).records[0];
Expand Down

0 comments on commit 721d23c

Please sign in to comment.