diff --git a/lib/rules/no-unsafe-object-assign.js b/lib/rules/no-unsafe-object-assign.js index e35aaf2..078504e 100644 --- a/lib/rules/no-unsafe-object-assign.js +++ b/lib/rules/no-unsafe-object-assign.js @@ -10,7 +10,7 @@ module.exports = { }, messages: { avoidObjectAssign: 'Avoid unsafe usage of Object.assign', - mitigateObjectAssign: 'Use the spread operator instead, or use Object.assign with an object literal as the first argument (Object.assign({}, obj1, obj2))', + mitigateObjectAssign: 'Use Object.assign with an object literal as the first argument', customMessage: "{{customMessage}}", }, hasSuggestions: true, diff --git a/package-lock.json b/package-lock.json index 01ec8a2..5f7682f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,17 @@ { "name": "eslint-plugin-prototype-pollution", - "version": "0.0.0", + "version": "0.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "eslint-plugin-prototype-pollution", - "version": "0.0.0", - "license": "ISC", + "version": "0.1.2", + "license": "MIT", "dependencies": { "requireindex": "^1.2.0" }, "devDependencies": { - "@types/eslint": "^8.56.2", "eslint": "^8.56.0", "eslint-doc-generator": "^1.6.2", "eslint-plugin-eslint-plugin": "^5.2.1", @@ -356,22 +355,6 @@ "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, - "node_modules/@types/eslint": { - "version": "8.56.2", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.2.tgz", - "integrity": "sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==", - "dev": true, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", - "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", - "dev": true - }, "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", diff --git a/package.json b/package.json index 752f666..75dfcde 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,12 @@ { "name": "eslint-plugin-prototype-pollution", - "version": "0.1.2", + "version": "0.1.3", "description": "Detect the use of prototype pollution vulnerabilities", + "homepage": "https://github.com/bsShoham/eslint-plugin-prototype-pollution", + "repository": { + "type": "git", + "url": "git+https://github.com/bsShoham/eslint-plugin-prototype-pollution.git" + }, "keywords": [ "eslint", "eslintplugin", @@ -22,7 +27,6 @@ "requireindex": "^1.2.0" }, "devDependencies": { - "@types/eslint": "^8.56.2", "eslint": "^8.56.0", "eslint-doc-generator": "^1.6.2", "eslint-plugin-eslint-plugin": "^5.2.1", @@ -36,5 +40,5 @@ "peerDependencies": { "eslint": ">=7" }, - "license": "ISC" + "license": "MIT" }