diff --git a/modules/.eslintrc.json b/modules/.eslintrc.json index be0bd11515..c5256085d3 100644 --- a/modules/.eslintrc.json +++ b/modules/.eslintrc.json @@ -5,5 +5,8 @@ "wikimedia/jquery", "wikimedia/mediawiki", "./eslint-shared.json" - ] + ], + "rules": { + "no-jquery/no-append-html": "warn" + } } diff --git a/modules/ve-mw/dm/.eslintrc.json b/modules/ve-mw/dm/.eslintrc.json index 06e6e75763..e115b9fda6 100644 --- a/modules/ve-mw/dm/.eslintrc.json +++ b/modules/ve-mw/dm/.eslintrc.json @@ -8,5 +8,8 @@ "Node": "readonly", "document": "readonly", "$": "off" + }, + "rules": { + "no-jquery/no-append-html": "warn" } } diff --git a/package-lock.json b/package-lock.json index ab32868da1..a8f5146bc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,14 +14,14 @@ "@wdio/mocha-framework": "7.16.13", "@wdio/spec-reporter": "7.16.13", "api-testing": "1.6.0", - "eslint-config-wikimedia": "0.28.0", + "eslint-config-wikimedia": "0.28.2", "grunt": "1.6.1", "grunt-banana-checker": "0.13.0", "grunt-contrib-watch": "1.1.0", "grunt-eslint": "24.3.0", "grunt-image": "5.0.1", "grunt-mocha-test": "0.13.3", - "grunt-stylelint": "0.20.0", + "grunt-stylelint": "0.20.1", "grunt-tyops": "0.1.1", "jimp": "0.13.0", "jsdoc": "4.0.2", @@ -30,7 +30,7 @@ "mocha": "5.2.0", "selenium-webdriver": "3.6.0", "stringify-object": "3.2.2", - "stylelint-config-wikimedia": "0.17.1", + "stylelint-config-wikimedia": "0.17.2", "wdio-mediawiki": "2.5.0" } }, @@ -2751,12 +2751,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -4778,9 +4778,9 @@ } }, "node_modules/eslint-config-wikimedia": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.28.0.tgz", - "integrity": "sha512-qDkELhXoDvQP+kYYo5MilhvqJ4Agk78Pzu95K1l1h68xPEWagD4k/dvrgmVyKjcp5KyAnZr++7qChLiFhDdBDA==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.28.2.tgz", + "integrity": "sha512-5+rdnT7wH1gpKAO6tHYThg78eMhZMruJzvqku3Y5iaEY/A7kSKLFpA/vOj/snys9fKjDHC9BXmArQh+agkOoJQ==", "dev": true, "dependencies": { "browserslist-config-wikimedia": "^0.7.0", @@ -4793,7 +4793,7 @@ "eslint-plugin-mediawiki": "^0.7.0", "eslint-plugin-mocha": "^10.4.3", "eslint-plugin-n": "^17.7.0", - "eslint-plugin-no-jquery": "^2.7.0", + "eslint-plugin-no-jquery": "^3.0.1", "eslint-plugin-qunit": "^8.1.1", "eslint-plugin-security": "^1.7.1", "eslint-plugin-unicorn": "^53.0.0", @@ -5006,12 +5006,12 @@ } }, "node_modules/eslint-plugin-no-jquery": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-2.7.0.tgz", - "integrity": "sha512-Aeg7dA6GTH1AcWLlBtWNzOU9efK5KpNi7b0EhBO0o0M+awyzguUUo8gF6hXGjQ9n5h8/uRtYv9zOqQkeC5CG0w==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-3.0.1.tgz", + "integrity": "sha512-GrzdjIxox/3x8hpSwpxiMuEQFipiJHTGiVsp0T1TI6GH+KVSbXa4z/56xTV1WiIe66u3iRgvCIipu9CRthecpQ==", "dev": true, "peerDependencies": { - "eslint": ">=2.3.0" + "eslint": ">=8.0.0" } }, "node_modules/eslint-plugin-qunit": { @@ -5811,9 +5811,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -6861,9 +6861,9 @@ } }, "node_modules/grunt-stylelint": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/grunt-stylelint/-/grunt-stylelint-0.20.0.tgz", - "integrity": "sha512-TG17gIrP2//lNq5G0YOXFC55WjXOI5Ybib3XVlatEuZcATlo/FO7cfVMgAAxbO2k6f45LP/naS/3iJTod0dVjg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/grunt-stylelint/-/grunt-stylelint-0.20.1.tgz", + "integrity": "sha512-tDep9ceEerB+fK6CkzPBXu5qPM7RuwCRgfrtwugEyYYnxINreMZktqQU5eoTW+MhhFj81uWQQnxf+c4geyAmQg==", "dev": true, "dependencies": { "chalk": "^4.1.2" @@ -12184,9 +12184,9 @@ } }, "node_modules/stylelint-config-wikimedia": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/stylelint-config-wikimedia/-/stylelint-config-wikimedia-0.17.1.tgz", - "integrity": "sha512-wLgadkHgAkz9jLLOVjBETSU+P3fzHB+rbx4ajct6+w/sqtKd2N9DM77ufJXZXA+Ai0HHanU9ltAy9XzFEFkT2Q==", + "version": "0.17.2", + "resolved": "https://registry.npmjs.org/stylelint-config-wikimedia/-/stylelint-config-wikimedia-0.17.2.tgz", + "integrity": "sha512-cc3PYhe1O/GTgsMOp+Ri3ru579YBbZ3Me0oU7xNb06n4iwyXYPz8qO5G4iQ13UH19UW2NIS8Tk0goPRrJ1RAfw==", "dev": true, "dependencies": { "@stylistic/stylelint-config": "1.0.1", @@ -16214,12 +16214,12 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, "browser-stdout": { @@ -17780,9 +17780,9 @@ } }, "eslint-config-wikimedia": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.28.0.tgz", - "integrity": "sha512-qDkELhXoDvQP+kYYo5MilhvqJ4Agk78Pzu95K1l1h68xPEWagD4k/dvrgmVyKjcp5KyAnZr++7qChLiFhDdBDA==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/eslint-config-wikimedia/-/eslint-config-wikimedia-0.28.2.tgz", + "integrity": "sha512-5+rdnT7wH1gpKAO6tHYThg78eMhZMruJzvqku3Y5iaEY/A7kSKLFpA/vOj/snys9fKjDHC9BXmArQh+agkOoJQ==", "dev": true, "requires": { "browserslist-config-wikimedia": "^0.7.0", @@ -17795,7 +17795,7 @@ "eslint-plugin-mediawiki": "^0.7.0", "eslint-plugin-mocha": "^10.4.3", "eslint-plugin-n": "^17.7.0", - "eslint-plugin-no-jquery": "^2.7.0", + "eslint-plugin-no-jquery": "^3.0.1", "eslint-plugin-qunit": "^8.1.1", "eslint-plugin-security": "^1.7.1", "eslint-plugin-unicorn": "^53.0.0", @@ -17942,9 +17942,9 @@ } }, "eslint-plugin-no-jquery": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-2.7.0.tgz", - "integrity": "sha512-Aeg7dA6GTH1AcWLlBtWNzOU9efK5KpNi7b0EhBO0o0M+awyzguUUo8gF6hXGjQ9n5h8/uRtYv9zOqQkeC5CG0w==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-jquery/-/eslint-plugin-no-jquery-3.0.1.tgz", + "integrity": "sha512-GrzdjIxox/3x8hpSwpxiMuEQFipiJHTGiVsp0T1TI6GH+KVSbXa4z/56xTV1WiIe66u3iRgvCIipu9CRthecpQ==", "dev": true, "requires": {} }, @@ -18536,9 +18536,9 @@ "dev": true }, "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "requires": { "to-regex-range": "^5.0.1" @@ -19406,9 +19406,9 @@ } }, "grunt-stylelint": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/grunt-stylelint/-/grunt-stylelint-0.20.0.tgz", - "integrity": "sha512-TG17gIrP2//lNq5G0YOXFC55WjXOI5Ybib3XVlatEuZcATlo/FO7cfVMgAAxbO2k6f45LP/naS/3iJTod0dVjg==", + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/grunt-stylelint/-/grunt-stylelint-0.20.1.tgz", + "integrity": "sha512-tDep9ceEerB+fK6CkzPBXu5qPM7RuwCRgfrtwugEyYYnxINreMZktqQU5eoTW+MhhFj81uWQQnxf+c4geyAmQg==", "dev": true, "requires": { "chalk": "^4.1.2" @@ -23507,9 +23507,9 @@ "requires": {} }, "stylelint-config-wikimedia": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/stylelint-config-wikimedia/-/stylelint-config-wikimedia-0.17.1.tgz", - "integrity": "sha512-wLgadkHgAkz9jLLOVjBETSU+P3fzHB+rbx4ajct6+w/sqtKd2N9DM77ufJXZXA+Ai0HHanU9ltAy9XzFEFkT2Q==", + "version": "0.17.2", + "resolved": "https://registry.npmjs.org/stylelint-config-wikimedia/-/stylelint-config-wikimedia-0.17.2.tgz", + "integrity": "sha512-cc3PYhe1O/GTgsMOp+Ri3ru579YBbZ3Me0oU7xNb06n4iwyXYPz8qO5G4iQ13UH19UW2NIS8Tk0goPRrJ1RAfw==", "dev": true, "requires": { "@stylistic/stylelint-config": "1.0.1", diff --git a/package.json b/package.json index 1185248701..ef75a41cbe 100644 --- a/package.json +++ b/package.json @@ -20,14 +20,14 @@ "@wdio/mocha-framework": "7.16.13", "@wdio/spec-reporter": "7.16.13", "api-testing": "1.6.0", - "eslint-config-wikimedia": "0.28.0", + "eslint-config-wikimedia": "0.28.2", "grunt": "1.6.1", "grunt-banana-checker": "0.13.0", "grunt-contrib-watch": "1.1.0", "grunt-eslint": "24.3.0", "grunt-image": "5.0.1", "grunt-mocha-test": "0.13.3", - "grunt-stylelint": "0.20.0", + "grunt-stylelint": "0.20.1", "grunt-tyops": "0.1.1", "jimp": "0.13.0", "jsdoc": "4.0.2", @@ -36,7 +36,7 @@ "mocha": "5.2.0", "selenium-webdriver": "3.6.0", "stringify-object": "3.2.2", - "stylelint-config-wikimedia": "0.17.1", + "stylelint-config-wikimedia": "0.17.2", "wdio-mediawiki": "2.5.0" } }