diff --git a/.stylelintrc.json b/.stylelintrc.json index 449f45bd..3282735b 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,7 +1,7 @@ { "extends": "stylelint-config-wikimedia", "rules": { - "selector-no-id": null, + "selector-max-id": null, "no-descending-specificity": null } } diff --git a/modules/ext.categoryTree.js b/modules/ext.categoryTree.js index 9e487115..d4053c30 100644 --- a/modules/ext.categoryTree.js +++ b/modules/ext.categoryTree.js @@ -23,8 +23,8 @@ .attr( 'title', function () { return mw.msg( $( this ).data( 'ct-state' ) === 'collapsed' ? - 'categorytree-expand' : - 'categorytree-collapse' + 'categorytree-expand' : + 'categorytree-collapse' ); } ) .addClass( 'CategoryTreeToggleHandlerAttached' ); @@ -52,7 +52,7 @@ function expandNode( $link ) { // Show the children node var $children = $link.parents( '.CategoryTreeItem' ) - .siblings( '.CategoryTreeChildren' ); + .siblings( '.CategoryTreeChildren' ); $children.show(); $link @@ -170,7 +170,7 @@ attachHandler( $children ); } ) - .fail( error ); + .fail( error ); } // Register click events diff --git a/package.json b/package.json index abc88b8e..b6e70d32 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "test": "grunt test" }, "devDependencies": { - "eslint-config-wikimedia": "0.4.0", - "grunt": "1.0.1", - "grunt-banana-checker": "0.5.0", - "grunt-eslint": "19.0.0", - "grunt-jsonlint": "1.0.8", - "grunt-stylelint": "0.6.0", - "stylelint": "7.8.0", - "stylelint-config-wikimedia": "0.4.1" + "eslint-config-wikimedia": "0.5.0", + "grunt": "1.0.2", + "grunt-banana-checker": "0.6.0", + "grunt-eslint": "20.1.0", + "grunt-jsonlint": "1.1.0", + "grunt-stylelint": "0.9.0", + "stylelint": "8.2.0", + "stylelint-config-wikimedia": "0.4.2" } }