]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/new-cap.js
import 8.3.0 source
[pve-eslint.git] / eslint / lib / rules / new-cap.js
index 4249a542802de14dbc3f613ac328983542943687..9abf3379b8a7d9be465a42536ffbad04db265265 100644 (file)
@@ -33,7 +33,8 @@ const CAPS_ALLOWED = [
  * Ensure that if the key is provided, it must be an array.
  * @param {Object} obj Object to check with `key`.
  * @param {string} key Object key to check on `obj`.
- * @param {*} fallback If obj[key] is not present, this will be returned.
+ * @param {any} fallback If obj[key] is not present, this will be returned.
+ * @throws {TypeError} If key is not an own array type property of `obj`.
  * @returns {string[]} Returns obj[key] if it's an Array, otherwise `fallback`
  */
 function checkArray(obj, key, fallback) {
@@ -81,7 +82,6 @@ module.exports = {
 
         docs: {
             description: "require constructor names to begin with a capital letter",
-            category: "Stylistic Issues",
             recommended: false,
             url: "https://eslint.org/docs/rules/new-cap"
         },