{"_id":"@doochik/eslint-plugin-location","_rev":"5-2ec40e795805a5ded3ad7855594bd542","name":"@doochik/eslint-plugin-location","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@doochik/eslint-plugin-location","version":"1.0.0","keywords":["eslint","eslintplugin","eslint-plugin","location","url"],"author":{"name":"Aleksei Androsov","email":"doochik@ya.ru"},"license":"MIT","_id":"@doochik/eslint-plugin-location@1.0.0","maintainers":[{"name":"doochik","email":"doochik@ya.ru"}],"homepage":"https://github.com/doochik/eslint-plugin-location#readme","bugs":{"url":"https://github.com/doochik/eslint-plugin-location/issues"},"dist":{"shasum":"209d9850e2352f244fac1982ae5312d4c6d8cdb4","tarball":"https://registry.npmjs.org/@doochik/eslint-plugin-location/-/eslint-plugin-location-1.0.0.tgz","fileCount":6,"integrity":"sha512-mdyVVxtwAU8xcnzv4QhryVDhhRIwDwP8hEUaBps0NTAiJ9iByNPlzkWI8B7kmDoi/rn1U0QwgbwqeZAoNON9FQ==","signatures":[{"sig":"MEUCIFgJSqyoMony5lXWhVGZkef9xK7/7rHz06Lu+yTr0xrLAiEAsD11gorRQVYjDakNEoQEu/utiAa/g/8DsbNOMz0BpyQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5859,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgDxNYCRA9TVsSAnZWagAA8vIP/0ITQK5DSgnYCOyYVM/u\ns5VTR2kkWOpM7kDVAqGDT/j/qqohAzv6E0rbIJ6k1tBLdEQvZoQOVpnSvC1/\nBdTvaY9+YEdR8EwtDLx1zCIktXMdAoex4u/GJGez5b1eclxrGgUPJbkbfhxD\nz6flK7cLttY+DAgBKlWS8/QwzC1HUE9FtYLTBgeWZgvDVRln0YP0X8Kkb+QY\n2yIYDgjalxMpOOqgXbGIaXDVpD9lBRHUtRnL4gp674ukCc0dgKF4ItlPLJDN\niVRJ1Ubbj/PCnQ8iiV9iyjZudC3s/o1GeeHuJSW2hdinIRGWyojpwiWkVGKi\nMY3xT+DWVkaky0PW8c1yKJDm90oj2I+WHlAwRaWa9kVyv/3KXsoENcnhIeiq\nNjZD1n70oZr/4L3uqlrUskU8ZtRHvrOEkWA61NiQQFTvUd9YT5NEFJXIpgRo\nG9oRT6I6epNuxyIR8ZhEB4Z0nEz9gyuiT4cTBoYFAqwKQH3mwvLmz9NvoH0r\nyhY2N05xPIUY5mKtcHgnBcJQ2bztmT1dGgDf98nbzJ0NUexOY1krFtwFhWV0\nmW8Sz3nAAQXFQU0aMgSMi1mvXzqZfnFnPs1+FBEIu28tXBX/nN2BUZNvcqjo\nOmMnmDGST0OQwrY+EQaNXhCv6obKQd6DmrvTgP+ektdQxr1/T73RGGjb6rFC\nhdmR\r\n=EcaT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"engines":{"node":">=8.0.0"},"gitHead":"636a57f8aef41184bf139fa55952378ba6b39769","scripts":{"lint":"eslint .","test":"npm run lint && npm run unit","unit":"mocha tests --recursive"},"_npmUser":{"name":"doochik","email":"doochik@ya.ru"},"repository":{"url":"git+https://github.com/doochik/eslint-plugin-location.git","type":"git"},"_npmVersion":"6.14.10","description":"ESLint plugin for Location","directories":{"lib":"lib","test":"tests"},"lint-staged":{"*.js":["eslint --fix","npm run unit"]},"_nodeVersion":"12.20.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.8","mocha":"^7.1.2","eslint":"^7.1.0","lint-staged":"^10.5.3","eslint-plugin-node":"^9.0.0","eslint-plugin-jsdoc":"^15.9.5","eslint-config-eslint":"^6.0.0"},"peerDependencies":{"eslint":"^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-location_1.0.0_1611600727787_0.44090147891385945","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@doochik/eslint-plugin-location","version":"1.0.1","keywords":["eslint","eslintplugin","eslint-plugin","location","url"],"author":{"name":"Aleksei Androsov","email":"doochik@ya.ru"},"license":"MIT","_id":"@doochik/eslint-plugin-location@1.0.1","maintainers":[{"name":"doochik","email":"doochik@ya.ru"}],"homepage":"https://github.com/doochik/eslint-plugin-location#readme","bugs":{"url":"https://github.com/doochik/eslint-plugin-location/issues"},"dist":{"shasum":"41c8bd2758f7bd97a68940348df2690225a877eb","tarball":"https://registry.npmjs.org/@doochik/eslint-plugin-location/-/eslint-plugin-location-1.0.1.tgz","fileCount":6,"integrity":"sha512-H98W2cxB8MPp+JZiYyp4jnQjNkJVV09RTk9jrOp2EFhe4WiDsbSzVR8W7cvvEsqJ6llXFJ2K7mn8ubSJgNaFmg==","signatures":[{"sig":"MEYCIQDq68R5GkIJLbQ5uD/ZNwq3VvFA5idgNyLXKbpQN06QYwIhAN3oo+Fo5SwRfC1S/2B9x/oKNis68vVRpJXIx17UGTte","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgD+MmCRA9TVsSAnZWagAA1wIP/RSYMEoSSL3XE1Ju59ok\nby0IXQbZTcMFRCE9fPB7N1MlP3FhLICouNuBNHNTz8eNGzoj6bX+VoQc5XSm\n+z6jgpaLXv7F46HkK6vkIupNlBOF6dxSwhVE3AGwALuakQKj3MuAKVpxGb17\nD0cuR9x68sV1O/kodRKUDfG0sfcK9fr0eCk3pLRRDL1xUynSZCISm8e7IFso\nktuf23PaiD7zN9P8Keht86Hmxu5AKsFu7+N8PZhvaRI9acCI9lu5POJcil6E\n3CAGMHJH2Jo0yu1R8YLlrU/RoTD/grRqP3qYf/jOfmvo6bh8AdA8le+V8OyY\nprIlKM4s/u85rz5FYAC4i/LxAJev5L7NXx4JQB/a4zC4wwpkY4wo+p71V3vF\nkkpMAm4Bq9nvac3aIqLeJmZY0IctgX09CLuWcyfkumPddT0pENGd+7ZA+3IH\nvaU7ml7iEdw8cd/r2qAHJ1QcDMxNFfyj8flPOtbU+iCyeNutm23USk4LX5X/\nFaQYb0J30uEaRvwSnBB48npDB1blBVkGvXEAiaekD6Hy2+Ysebmm3fVwNNFr\nfl3kMPRtU2YcxxXb0FANKuir4nKzVhCvJCT8TCarE2iMJvuBRncSRkBTFTET\nFfkNq0cZ1PjTd/FKyZmg7yKndo+P4bFBOGTjTfybqtJy34Z3oiswY1B/J/o/\nYyIf\r\n=sFsr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","husky":{"hooks":{"pre-commit":"lint-staged"}},"engines":{"node":">=8.0.0"},"gitHead":"a6910f6f4df1a3f2798676dd90bdb0cfe1e76e5f","scripts":{"lint":"eslint .","test":"npm run lint && npm run unit","unit":"mocha tests --recursive"},"_npmUser":{"name":"doochik","email":"doochik@ya.ru"},"repository":{"url":"git+https://github.com/doochik/eslint-plugin-location.git","type":"git"},"_npmVersion":"6.14.10","description":"ESLint plugin for Location","directories":{"lib":"lib","test":"tests"},"lint-staged":{"*.js":["eslint --fix","npm run unit"]},"_nodeVersion":"12.20.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"husky":"^4.3.8","mocha":"^7.1.2","eslint":"^7.1.0","lint-staged":"^10.5.3","eslint-plugin-node":"^9.0.0","eslint-plugin-jsdoc":"^15.9.5","eslint-config-eslint":"^6.0.0"},"peerDependencies":{"eslint":"^6.0.0 || ^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-location_1.0.1_1611653925539_0.014665570434927444","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@doochik/eslint-plugin-location","version":"1.1.0","keywords":["eslint","eslintplugin","eslint-plugin","location","url"],"author":{"name":"Aleksei Androsov","email":"doochik@ya.ru"},"license":"MIT","_id":"@doochik/eslint-plugin-location@1.1.0","maintainers":[{"name":"doochik","email":"doochik@ya.ru"}],"homepage":"https://github.com/doochik/eslint-plugin-location#readme","bugs":{"url":"https://github.com/doochik/eslint-plugin-location/issues"},"dist":{"shasum":"926e69d6654d35ec4ad96de97d4b2dd90e178404","tarball":"https://registry.npmjs.org/@doochik/eslint-plugin-location/-/eslint-plugin-location-1.1.0.tgz","fileCount":5,"integrity":"sha512-v47PVTWoeVE/QwUN1H1t1ba0wHORySzIZbDwgRyiQ9Yy1Xy+OvXNWI3c3IkQfhXxKhbkGPM9QHejpCnKCskuxA==","signatures":[{"sig":"MEUCIQClqKl9gPL+s6RzfyhW8HbfMn4rXq/1bJXlGJnGLllR6AIgThWCF1t0HEWax1A8hyhOmiv9AbIS6af07y47wpTNY/c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2EOGCRA9TVsSAnZWagAAx8IP/j8BCFp37ulayhHwJSB9\nhNRn4N5GC5NvIlNra9wLbCjLl+67YrWQ/95FQp9c5pQf5IeXcI3H5+Y33klM\nl/bKfSbLLbkGKk2+zWxyE+pAkVNh2gE2eTUxurEykbZcH8HzwH2aznvMcNxC\n23tllXqvBD0pXFQBN66Pk5aNh+7y+I+tELXAbHJNI9FDwD+ZUvngjRMrD0qA\nHdChZRUAPK21UPc+5Ic6pTG1Grjh5Zu+cOYmtJDTK3zTYMXweIqoxvOjv8fD\n3Yu0nve40yfqBUzfUsclwzxPFJenAst19/9ncEZP9wEfF4GYCQoJRMaL990J\nZa3Olt55raxDaGkxtQmzic6vZkFt+APPbsc74/Qtcf7smGMFSHyJFf6wNzZa\nJ2Y6PBl6fyQHvYk7BWvmP30e3j1r2+Zc4GpOo4nVBNi3Omevxa/4j3E+OFPu\nF6TgJGVoynBXBFbaZ+fkEAfrVOtpIF8yk/MYyij27e5A8CG26WgIYFM7FgJ+\nAENu/25yECswO1rZTaVXAdHp5OuWqXr53B9VkUqdouRMuqCHUBbNck06FDb3\nTHw9MnjkYCJTxXiqjbSHWQ1SYqkoxbJ4HqLDxxfRklK1i4tktsnTKpo5sM1m\nQGkBhZEhFA++xeP3L7Ivp3dlOuMypdxiMh+H5qlfQ3u/8jUlcQPVcXOMAmPt\n6bJo\r\n=jzhh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","engines":{"node":">=12.0.0"},"gitHead":"a7c22d14f8ec58075f70149fcdac34b382a9017f","scripts":{"lint":"eslint .","test":"npm run lint && npm run unit","unit":"mocha tests --recursive","prepare":"husky install"},"_npmUser":{"name":"doochik","email":"doochik@ya.ru"},"repository":{"url":"git+https://github.com/doochik/eslint-plugin-location.git","type":"git"},"_npmVersion":"6.14.15","description":"ESLint plugin for Location","directories":{"lib":"lib","test":"tests"},"lint-staged":{"*.js":["eslint --fix","npm run unit"]},"_nodeVersion":"14.18.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","mocha":"^9.1.2","eslint":"^8.0.0","ansi-regex":"^5.0.1","lint-staged":"^11.2.2","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^36.1.1","eslint-config-eslint":"^7.0.0","eslint-plugin-eslint-comments":"^3.2.0"},"peerDependencies":{"eslint":"^6.0.0 || ^7.0.0 || ^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-location_1.1.0_1633875350500_0.9660369752004989","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@doochik/eslint-plugin-location","version":"1.2.0","description":"ESLint plugin for Location","keywords":["eslint","eslintplugin","eslint-plugin","location","url"],"author":{"name":"Aleksei Androsov","email":"doochik@ya.ru"},"main":"lib/index.js","scripts":{"prepare":"husky","lint":"eslint .","unit":"mocha tests --recursive","test":"npm run lint && npm run unit"},"devDependencies":{"@eslint/eslintrc":"^3.1.0","@eslint/js":"^9.10.0","eslint":"^9.10.0","eslint-config-eslint":"^11.0.0","globals":"^15.9.0","husky":"^9.1.6","lint-staged":"^15.2.10","mocha":"^10.7.3"},"license":"MIT","directories":{"lib":"lib","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/doochik/eslint-plugin-location.git"},"bugs":{"url":"https://github.com/doochik/eslint-plugin-location/issues"},"homepage":"https://github.com/doochik/eslint-plugin-location#readme","engines":{"node":">=18.0.0"},"lint-staged":{"*.js":["eslint --fix","npm run unit"]},"_id":"@doochik/eslint-plugin-location@1.2.0","gitHead":"b5adfcd18dda027eb99a674c051833032845b6d9","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-+hWfWGSuSfB5nJfCt/Ed6F1puqDxwUuD6G2KzC4f/+aHwHvC9/fVFuBoKSdSeJastNG2G2lCwrNInYpU8K1PMw==","shasum":"a13e0c650372ac9b1f24627863ace46ff588066e","tarball":"https://registry.npmjs.org/@doochik/eslint-plugin-location/-/eslint-plugin-location-1.2.0.tgz","fileCount":5,"unpackedSize":5163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvzNCzblxNTuQ0zCuDq6i5qYoHVXveV8UHg4tIxyJq7AiEA+HG+P4BtILNyMa7HGuqtz2uuwXjAIFXbXVYH6KDX8HA="}]},"_npmUser":{"name":"doochik","email":"doochik@ya.ru"},"maintainers":[{"name":"doochik","email":"doochik@ya.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-location_1.2.0_1726667508676_0.638576552258155"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-25T18:52:07.755Z","modified":"2024-09-18T13:51:48.948Z","1.0.0":"2021-01-25T18:52:07.906Z","1.0.1":"2021-01-26T09:38:45.906Z","1.1.0":"2021-10-10T14:15:50.619Z","1.2.0":"2024-09-18T13:51:48.807Z"},"bugs":{"url":"https://github.com/doochik/eslint-plugin-location/issues"},"author":{"name":"Aleksei Androsov","email":"doochik@ya.ru"},"license":"MIT","homepage":"https://github.com/doochik/eslint-plugin-location#readme","keywords":["eslint","eslintplugin","eslint-plugin","location","url"],"repository":{"type":"git","url":"git+https://github.com/doochik/eslint-plugin-location.git"},"description":"ESLint plugin for Location","maintainers":[{"name":"doochik","email":"doochik@ya.ru"}],"readme":"# @doochik/eslint-plugin-location\n\nESLint plugin for [Location](https://developer.mozilla.org/en-US/docs/Web/API/Location).\n\n## Installation\n\n```\n$ npm install --save-dev @doochik/eslint-plugin-location\n```\n\n## Usage\n\nAdd `@doochik/eslint-plugin-location` to the plugins section of your `.eslintrc` configuration file:\n\n```json\n{\n    \"plugins\": [\n        \"@doochik/eslint-plugin-location\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"@doochik/location/prefer-new-url\": \"error\"\n    }\n}\n```\n\n### Rule \"location/prefer-new-url\"\n\n`location/prefer-new-url` Forbid `location.href.replace()` in favor `new URL()`.\n\nBad examples:\n```javascript\nlocation.replace.href.replace('foo', 'bar')\n```\n\nGood examples:\n```javascript\nlocation.replace('https://example.com')\nlocation.href = new URL('https://example.com');\nlocation = new URL('https://example.com');\n```\n","readmeFilename":"README.md"}