{"_id":"@dongcx0319/eslint-plugin-testid","_rev":"1-f45593e63207228b639bbaa6fb0c176b","name":"@dongcx0319/eslint-plugin-testid","dist-tags":{"latest":"2.2.0"},"versions":{"2.1.0":{"name":"@dongcx0319/eslint-plugin-testid","version":"2.1.0","description":"This checks is data-test-id prop is present, on some tags which are useful for e2e testing","keywords":["eslint","eslintplugin","eslint-plugin","vuejs","vue"],"author":{"name":"Prashant Swami"},"main":"lib/index.js","repository":{"url":"git+https://github.com/prashantswami/eslint-plugin-test-id.git"},"scripts":{"test":"mocha tests --recursive"},"peerDependencies":{"vue-eslint-parser":"^8.0.0","eslint":"^8.1.0"},"dependencies":{"eslint-utils":"^3.0.0","vue-eslint-parser":"^8.0.0"},"devDependencies":{"eslint":"^8.1.0","mocha":"^10.0.0"},"engines":{"node":">=0.10.0"},"license":"ISC","bugs":{"url":"https://github.com/prashantswami/eslint-plugin-test-id/issues"},"homepage":"https://github.com/prashantswami/eslint-plugin-test-id#readme","directories":{"doc":"docs","lib":"lib","test":"tests"},"gitHead":"1e5d10210b4c2166eaa5e94e7990382324af4ca1","_id":"@dongcx0319/eslint-plugin-testid@2.1.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-uxO7xPpwO1+2UWDRDul1EslbYdij2LPJB9D3i8nQ/CDX2p/aYNDWPZP46HDsRR1IGLm6hr3dnc9l5rTcxxi++A==","shasum":"ce22f9238b4db26ebf135889845c923d0922b980","tarball":"https://registry.npmjs.org/@dongcx0319/eslint-plugin-testid/-/eslint-plugin-testid-2.1.0.tgz","fileCount":16,"unpackedSize":23884,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsOwE4zAbGKa0iFW22Xnw9Lr9zfxOU/g6FZg0NkmTMhAiA6KDFqOaHXruA2K2XVR6G8xjyeQJuLfeA3JlEU/hqvCA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvlRwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre7hAAiSn4X+2XG1YZ54lmtg9y44AidgjqOmuwtxnqyKosP39lsoQQ\r\njiaBz2T131kEUogIP1/SX/ZJDoabh2eBv+P2AWolkfkIEgzvHhOEUibcvzj0\r\na82LLy+wq90k3ZHQ3HIm23gBroJlJuTgITTFzF1N6KcNLW4EnQ04o967xVux\r\ntugjkVxCxiGwKLTDvJtM48zUJNP9wBr04VElAJ/AasJy+mHBSaVATeOqsdwz\r\nrZuYSvJ56i02c+idOwOyLsVyGMglOULd3u1DjDQMPzf7OtNlha+ftLRRaplu\r\nm+UrZrSbGqbVKWU64Z+6nIVTuzQ362rbpjnD6pbVyVl33cfh9w10ou3tOn3J\r\njY2Uu8m0xDJSrEYLA/3kXO6xzW+ObDSqlAem6RAMPyEqaNBmUMp/zPGuNpqn\r\ntlzbRg2uNGZ7NuShNsLHQjofKygAEXU50jZFApWslZnRPy5CXlwC4ruABq/U\r\n+yj3m0uZ7s+lNlRG6FcIAq/eypvjYD1ptrQgV4tECXI+o48IwrOieAuhc2DP\r\n8RmNR3Oo6XMKVZEh36KhETKbNwFBVnH3pebYCC+jHBDP+h0Wn0Y4UwZZBWzN\r\nPWYT31z4cOPbHNMnsCW7BH7cBJEP4Oh+vgoEyzHgB7yOHcjZJCGDC0WmVjh9\r\nS6SSDzAR6twL/nAstMT4ElDDe0uNMsY3QO8=\r\n=IyMG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dongcx0319","email":"hai.siong.e.lang@gmail.com"},"maintainers":[{"name":"dongcx0319","email":"hai.siong.e.lang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-testid_2.1.0_1673417840212_0.21389055130500756"},"_hasShrinkwrap":false},"2.2.0":{"name":"@dongcx0319/eslint-plugin-testid","version":"2.2.0","description":"This checks is data-test-id prop is present, on some tags which are useful for e2e testing","keywords":["eslint","eslintplugin","eslint-plugin","vuejs","vue"],"author":{"name":"Prashant Swami"},"main":"lib/index.js","repository":{"url":"git+https://github.com/prashantswami/eslint-plugin-test-id.git"},"scripts":{"test":"mocha tests --recursive"},"peerDependencies":{"vue-eslint-parser":"^8.0.0","eslint":"^8.1.0"},"dependencies":{"eslint-utils":"^3.0.0","vue-eslint-parser":"^8.0.0"},"devDependencies":{"eslint":"^8.1.0","mocha":"^10.0.0"},"engines":{"node":">=0.10.0"},"license":"ISC","bugs":{"url":"https://github.com/prashantswami/eslint-plugin-test-id/issues"},"homepage":"https://github.com/prashantswami/eslint-plugin-test-id#readme","directories":{"doc":"docs","lib":"lib","test":"tests"},"gitHead":"9a44a70893e8f508cd6a28b4c9246c79365de965","_id":"@dongcx0319/eslint-plugin-testid@2.2.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-j+w7xvB2Kn4sI+0J+7QcorhRuoc2pQShLKAl58IMXF/Fk0M9X2+KdXuqoKCKD4abdyH8DRjtBCeEcXUxYBEVYw==","shasum":"f41910b9558afc157f7fed91e21ee8239d29730a","tarball":"https://registry.npmjs.org/@dongcx0319/eslint-plugin-testid/-/eslint-plugin-testid-2.2.0.tgz","fileCount":19,"unpackedSize":27351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXdEUaiJBwoU1rPE+zdi+kfFuBtRycHFUhKTg9RfG+GAIgTPBLWnFo7hN7x5vVnn4gxi9yfVE/OX8qS0f6KGpGJBY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyizACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCnA//dktLBuMaBYsVSuqx/IAHJcGPgctWjzBnfHZcRwMO8fe6+yq+\r\niNMapGO1zk8lmXX54GudW2EN6xOtH7YuacNI+OKbLPkOV0gbv3cUyzYkklGv\r\nMLRhhoe/lY/a4HqmW8yBUPd42vmHN7Y6o/OF/fL8lDVc6yw70E6DdHnTIYad\r\nlZzcr5IvrD7jsaqdyfZcFDwUHsI0NZUmQQTfgQnsPDvPvNxUYqkSZ7DuptM1\r\n2/C4PjanoXimltEeE1t2inRBwE9teBpYWr019eMW5B+eKucYZsQG8Gwgi+Mn\r\nJGuNzLweZ07+Sd7EmI9Ebej6aglPB1nVzLCW62umcqgECv0sWrxs9W2SVvOZ\r\n2lmhVosCsi2ZHA/5iUpy7+8hIX1vJpC0L1J9qmfJr39CZ4bUkYV3X/A0d4FV\r\nXdI5R7qMHY/SqiEO7LBoBycaKHcrykLRbsGnKVN0k1AfdgYiNT7N+1RLVssL\r\njXrRQokFqjCuSAn2H5scHobq5BLxryB1JWnMal2CqvPlcyix5uHRIUj+StBA\r\nmo8ZIR/ONChLasyRHVPlA5ht2MsDe0k+xQgWF2hN8u6RC++krzn/dK08FLPG\r\nzfaS4mc6HleF9BmQLpVwz60NIx2l9ZmQq212OBRgXv+f0VWmc/IE4Dh3S7bl\r\nmS/IuY/qeUnypzX+qN9lnUQj5o35UYOwo9g=\r\n=EJIq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dongcx0319","email":"hai.siong.e.lang@gmail.com"},"maintainers":[{"name":"dongcx0319","email":"hai.siong.e.lang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-testid_2.2.0_1673472179374_0.5563951132569405"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-11T06:17:20.149Z","2.1.0":"2023-01-11T06:17:20.427Z","modified":"2023-01-11T21:22:59.667Z","2.2.0":"2023-01-11T21:22:59.574Z"},"maintainers":[{"name":"dongcx0319","email":"hai.siong.e.lang@gmail.com"}],"description":"This checks is data-test-id prop is present, on some tags which are useful for e2e testing","homepage":"https://github.com/prashantswami/eslint-plugin-test-id#readme","keywords":["eslint","eslintplugin","eslint-plugin","vuejs","vue"],"repository":{"url":"git+https://github.com/prashantswami/eslint-plugin-test-id.git"},"author":{"name":"Prashant Swami"},"bugs":{"url":"https://github.com/prashantswami/eslint-plugin-test-id/issues"},"license":"ISC","readme":"![status](https://github.com/prashantswami/eslint-plugin-test-id/actions/workflows/pull-requests.yml/badge.svg?branch=main)\n# eslint-plugin-test-id\n## Fork from [prashantswami/eslint-plugin-test-id](https://github.com/prashantswami/eslint-plugin-test-id)\n\nThis checks is data-test-id prop is present, on some tags which are useful for e2e testing\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```\n$ npm i eslint --save-dev\n```\n\nNext, install `@dongcx0319/eslint-plugin-testid`:\n\n```\n$ npm install @dongcx0319/eslint-plugin-testid --save-dev\n```\n\n\n## Usage\n\nAdd `test-id` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n    \"plugins\": [\n        \"test-id\"\n    ]\n}\n```\n\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n    \"rules\": {\n        \"test-id/data-test-id\": 'error'\n    }\n}\n```\n\nYou can also enable all the recommended rules at once:\n\n```json\n{\n  \"extends\": [\n    \"plugin:test-id/recommended\"\n  ]\n}\n```\n\n## Rule Details\n\nThis rule aims to...\n\nExamples of **incorrect** code for this rule:\n\n```vue\n\n<input v-model=\"someModel\">\n\n```\n\nExamples of **correct** code for this rule:\n\n```vue\n\n<input data-test-id=\"someUniqueString\" v-model=\"someModel\">\n\n```\n\n## How Fix will work\n\n### Scenario 1\n```vue\n<template><custom v-model=\"test\" /></template>\n```\nwill fix to\n```vue\n<template><input data-test-id=\"test\" v-model=\"test\"></template>\n```\n\n### Scenario 2\n```vue\n<template><input v-model=\"test.again.src\"></template>\n```\nwill fix to\n```vue\n<template><custom data-test-id=\"test.again.src\" v-model=\"test.again.src\" /></template>\n```\n\n### Scenario 3\n```vue\n<template><custom v-model=\"test.again\" /></template>\n```\nwill fix to\n```vue\n<template><custom data-test-id=\"test.again\" v-model=\"test.again\" /></template>\n```\n\n### Scenario 4\n```vue\n<template><custom v-model=\"test['again']\" /></template>\n```\nwill fix to\n```vue\n<template><custom data-test-id=\"test.again\" v-model=\"test['again']\" /></template>\n```\n\n### Scenario 5\n```vue\n<template><custom v-model=\"test[5]\" /></template>\n```\nwill fix to\n```vue\n<template><custom data-test-id=\"test.5\" v-model=\"test[5]\" /></template>\n```\n\n### Scenario 5\n```vue\n<template><custom v-model=\"test[5]['val']\" /></template>\n```\nwill fix to\n```vue\n<template><custom data-test-id=\"test.5.val\" v-model=\"test[5]['val']\" /></template>\n```\n","readmeFilename":"README.md"}