{"_id":"@asbjorn/eslint-plugin-groq","_rev":"5-a433336812f3e24795fa418fce8e4d43","name":"@asbjorn/eslint-plugin-groq","dist-tags":{"latest":"2.0.0"},"versions":{"0.1.0":{"name":"@asbjorn/eslint-plugin-groq","version":"0.1.0","description":"Eslint plugin for GROQ queries","author":{"name":"Asbjørn Hegdahl"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/asbjornh/eslint-plugin-groq.git"},"main":"index.js","scripts":{"debug":"eslint debug/index.js","lint":"eslint rules utils","test":"ava --verbose"},"dependencies":{"eslint-ast-utils":"^1.1.0","groq-js":"^0.1.4"},"peerDependencies":{"groq":"^0.142.0"},"devDependencies":{"ava":"^2.4.0","babel-eslint":"^10.0.3","eslint":"^6.5.1","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-local":"^1.0.0","groq":"^0.142.0"},"gitHead":"84d4cc883f8cb47f7adb9dba155993ae9f8e9da4","bugs":{"url":"https://github.com/asbjornh/eslint-plugin-groq/issues"},"homepage":"https://github.com/asbjornh/eslint-plugin-groq#readme","_id":"@asbjorn/eslint-plugin-groq@0.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-6JvBYd5mgHQePKPFB+WGtuE85FOFByUSmAEQn+ksk/sbNl1TkciVYzHKbU8RBeVDcpUgMizD85aaPJppl0xiQQ==","shasum":"f066ce83269bac1a6760b94a1f0b1ac8c23b4ed5","tarball":"https://registry.npmjs.org/@asbjorn/eslint-plugin-groq/-/eslint-plugin-groq-0.1.0.tgz","fileCount":10,"unpackedSize":11844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtxJyCRA9TVsSAnZWagAAdGoP+gP8NBp0T50jmLtbY3P8\nA4D4DGvrRE75X+CqiqX4QABcGL9Atd/UfSIB7us6N4ORhx4BgkA9klSl39oE\nGE61WEgv3cPJAfcbu+Ky5U9rvGawZ6gEAr4BOT/++7IafN4WaAztMpdnxeiG\nxw3yhCTNXN/Tw2X/Ck2mHIz365h+oBS2OyjdJMdSYdnbsc4owCgBhLE4Nba2\n0ibNV2+UcyBk/KNO4kzAtkmTv2OiXIxGXyD3x/kWzh3FsRXf77nr54Zt/wu6\nfN7FW23WcINUJimxrbwTN8fNz0hazNjpS0oHH3pX059YdA8xszTadvzxHZgM\nUAXZs9mklmJcFZGes31/Nn/KH03aGX79TJQJgOuEszNTEkg/DlVnevol0Njq\ntDiLLrM0lNvZRHhQ/PrQVInPWhl0eZY7Q+TpiCHlD3XAby0I3rvb3xVp1lH9\nN52+0DbvBQ/DgLSTPJiwrSJRK5V+4QsV/i9lq9XuBFVk7Piqdvs6IKPSICs2\ngrUon1oeL9MPvrwIMjZQvX9OAdiMgy9SiUc4xdjWCn0Dg4YdIc7FWMNgq5lX\nBMT7bc5mxkgVorUauDdzDqoTNb2IvAaEoQPzFrEtdJ2wD3U5VkV6OmoCUgXx\njcnqo/WX1ePSJ91QhA7/siNnJHeB5Np7B/r7ZL2mER3eV43bzyhfdtT1s6dA\n18SC\r\n=ihY7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBKrYcf5ZynyeuSsQQcAkQCyy0gx4Dkn8xAYKazjOsmMAiBSBaOfOQ7/Dsm1rmKlNIdeTvubNB2G2o4qL/1edub+jw=="}]},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"_npmUser":{"name":"asbjornh","email":"asbjornh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-groq_0.1.0_1572278897763_0.09957605058373709"},"_hasShrinkwrap":false},"0.1.1":{"name":"@asbjorn/eslint-plugin-groq","version":"0.1.1","description":"Eslint plugin for GROQ queries","author":{"name":"Asbjørn Hegdahl"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/asbjornh/eslint-plugin-groq.git"},"main":"index.js","scripts":{"debug":"eslint debug/index.js","lint":"eslint rules utils","test":"ava --verbose"},"dependencies":{"eslint-ast-utils":"^1.1.0","groq-js":"^0.1.4"},"peerDependencies":{"groq":"^0.142.0"},"devDependencies":{"ava":"^2.4.0","babel-eslint":"^10.0.3","eslint":"^6.5.1","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-local":"^1.0.0","groq":"^0.142.0"},"gitHead":"a8a83f1a79f59b9d22b85e6b8561618bf377e440","bugs":{"url":"https://github.com/asbjornh/eslint-plugin-groq/issues"},"homepage":"https://github.com/asbjornh/eslint-plugin-groq#readme","_id":"@asbjorn/eslint-plugin-groq@0.1.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-qgbpsrriEmr2BgagXdmD5d6iHeKwzB1og2tkWke6hvKewthp04Bq84BTj2OC46tNYUGmT0/Q0CcEhKSQ0yLt5A==","shasum":"953e8ec8498bc7d405ba4bb2300b38b32649e4c2","tarball":"https://registry.npmjs.org/@asbjorn/eslint-plugin-groq/-/eslint-plugin-groq-0.1.1.tgz","fileCount":11,"unpackedSize":12110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtxe/CRA9TVsSAnZWagAAbY8QAIg0UUVKtf8f0GBlRbGm\ntscWV59rm7L+ktarXSDlrzskTZSJfF8DHmu2eAkHH+qw8ZMtOFrSAFRy7V4D\nIDoln5YWHNrsSTEHSLpXquuQGER3iY4eENnx+34LYTg9rYUZ28DYmb5auvHK\nR7i7lSsrov8R33W/N6KbErLbLgsho9lSc1PbtkxmYKvr+YPt8/sIsCQFSnxR\nmlfBPQrJFNEOqYwguNNaVgTiuS6UyZzH4PIZTKfMvGXXvaytfunEU0nEsYuE\nA2g8/aM4dwQA98aSwsJgRmEI3Rgmu+FOfDKIR58YwY0LoGGrKWqTHcDsDq0f\nCRf1mWb8CpbNP6l+XTHHkg7+yqVmDaHXr2uM7hN7i/VmDiZnB0DmpBHnTeJC\n7E48Enssrxm7vE37ib+lvhqcSbyVW4ZDdZn59DzDXMq+9paMOcTRTw0e8cRO\n6Fn5MNZ87XDaxNKlAVjhD7AJn3Qm2+rbXp8kVA1O92KOy1pHir3pJkifsldm\nahWfIDdkKOxTkTuC8J9lJl/L0SRbsepvjHHLtKbGjlNwvjBzL3dYFyo0ebhn\n4xzmBZN1TSzkGChtEpkOR56l9JEPTkVNAcWmwRY/T7vUV4SrWmOi9fCXgu0R\n17rM04PoYUIf5PfmiatV0GLCPTAzEaE4YtzTHkadyqTqrmnZEM3ux9NsW2m8\nP/rA\r\n=+hgG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaZP3EhYVA4OumXEg3ya2j0OQfh7D34cLS2f2KyZxdmQIgL+DCavDp1v+7Emyuu+UQm+np+WOVrfM17Bg8gbISDoc="}]},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"_npmUser":{"name":"asbjornh","email":"asbjornh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-groq_0.1.1_1572280254505_0.014844118693988273"},"_hasShrinkwrap":false},"0.1.2":{"name":"@asbjorn/eslint-plugin-groq","version":"0.1.2","description":"Eslint plugin for GROQ queries","author":{"name":"Asbjørn Hegdahl"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/asbjornh/eslint-plugin-groq.git"},"main":"index.js","scripts":{"debug":"eslint debug/index.js","lint":"eslint rules utils","test":"ava --verbose"},"dependencies":{"eslint-ast-utils":"^1.1.0","groq-js":"^0.1.4"},"peerDependencies":{"groq":"^0.142.0"},"devDependencies":{"ava":"^2.4.0","babel-eslint":"^10.0.3","eslint":"^6.5.1","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-local":"^1.0.0","groq":"^0.142.0"},"gitHead":"4639590c1890c237a17663bd843d7331849b6780","bugs":{"url":"https://github.com/asbjornh/eslint-plugin-groq/issues"},"homepage":"https://github.com/asbjornh/eslint-plugin-groq#readme","_id":"@asbjorn/eslint-plugin-groq@0.1.2","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-BEnesIx+/nM6bQma4UXzWQZsV4xn77+JSFW1dPay9R7vg4B88FY0gZoMfMVzn6PbhfeUgYo5PZjvXTh4sETeQw==","shasum":"f7d1ece46c8df774061cf6103c6d92f89786d6e3","tarball":"https://registry.npmjs.org/@asbjorn/eslint-plugin-groq/-/eslint-plugin-groq-0.1.2.tgz","fileCount":11,"unpackedSize":12177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdtxoICRA9TVsSAnZWagAAMDwP/jf6BZaIVlMxo4xxGsdS\nn9CEYeLt/ZKnqmUVJLwaihH8vl0o20XNeMjmA6ryeNkdH70du5ckya9tWuq/\nFLj3Hoq0PtXL1I5YJqQCFmFZDXasMQxK8LFvydo8/OLHwwxjs3UiHQVYS9aM\nDYi6NVRQLQcrElxpKfFrJkzem7YJH9F0Pa6zgtw8lt2Kb2ltelIswg4eGZ81\nAsLUoDHbXtbOi1O9bMNMLyB+DJ3LglhA45lu8LZKsax/ov+9pKnlIiwtRx00\n+id7S5+hHu20V5RTNOxszHr2sxYBDRl/r/9EySTgpW8+syl/U4VZ4C6y/8fu\nBV/4+iA4D7LiBXoPm8YIMCOdIKjUMYI6/HFPYg/v45da3ymu7vL77CAjXXhg\nPgDr1zRcAtX4d67SH46BJCJnG8Sik1q7U1l+NWuaY6AbOT/BJn1nRCNV0lfW\n84IV+5wHeehyWfRa9rVZgSmcVlBDnWul1X5t+O6Hi3V1c7WrzAi0cvCXAxR8\n+f9o3nXZOAktGkD5qnFM7z7Amr/0dEV6WVFJo4cMKo3BQyzRzki7gpmgktoq\n8wG3l5RTxl7xv6OWsOWWVnbMb6I28opKmhk72m3/4I+qB6ZtlSeaflvB/rRt\nBFBwuoh8ltsK0MWs6LmWrQIrGY/wT+KhvVARsvv2crqo32wxKZv0GO3mmq/m\n+e7R\r\n=b1F8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCJ4mfGDk2hbuNJbf2Xz3TiBIDJ6v+Uk7RRNACidZdqAIhAPBWPM13zTGMLSTuDNznegTkEBWPcBR2ba8IrFvfpuMG"}]},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"_npmUser":{"name":"asbjornh","email":"asbjornh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-groq_0.1.2_1572280839996_0.7325045180629941"},"_hasShrinkwrap":false},"1.0.0":{"name":"@asbjorn/eslint-plugin-groq","version":"1.0.0","description":"Eslint plugin for GROQ queries","author":{"name":"Asbjørn Hegdahl"},"license":"MIT","engines":{"node":">=10.0.0"},"repository":{"type":"git","url":"git+https://github.com/asbjornh/eslint-plugin-groq.git"},"main":"index.js","scripts":{"debug":"eslint debug/index.js","lint":"eslint rules utils","test":"ava --verbose"},"dependencies":{"eslint-ast-utils":"^1.1.0","groq-js":"^0.1.4"},"peerDependencies":{"groq":"^0.142.0"},"devDependencies":{"ava":"^2.4.0","babel-eslint":"^10.0.3","eslint":"^6.5.1","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-local":"^1.0.0","groq":"^0.142.0"},"gitHead":"c8509cb84ba774bda12757dbc674781451201433","bugs":{"url":"https://github.com/asbjornh/eslint-plugin-groq/issues"},"homepage":"https://github.com/asbjornh/eslint-plugin-groq#readme","_id":"@asbjorn/eslint-plugin-groq@1.0.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-pE55kaOLfiongtRbt0wkI49UXzBAEfZNpRytunxm1OHIeeElzP01JGcwdu/QsnxDNkaemaUCbYrgMDUU7riU0A==","shasum":"1fe79442859835da284554106d22e294369b13fc","tarball":"https://registry.npmjs.org/@asbjorn/eslint-plugin-groq/-/eslint-plugin-groq-1.0.0.tgz","fileCount":11,"unpackedSize":13547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhr+rCRA9TVsSAnZWagAA7u4P/1S8Jie/AXJTVg0M+VV/\nxnkBQa0JLMbZj+XylsLebz2ZzzYI6B8KOfBPBbWvBQ5IIhKszoth7m25awEN\nz2PFWgfeVdsw9mb/QtEuithd9jXOmoOtPmv0Co6V1XWmKIhfsqY6rBA2t++U\nx3GGpVGBHFRt2LgTSTxKWJ37qjVTtFamO7Vpq9xbC5wcXGxKc9RcJRn/Rk2f\nKGvAZrcjOBV0hhYA+zqKMCJIb41nlG/jvayswe4HhWlpMmcAhyVZMg7QtcsN\nItt0PvZ+Y7EYKZ/QqlS8FQk8y/BJ4Egq0zNNOq79rvBP5B82BVFSz5mV9gZU\nn8eO6IZn3IoMedvODsBazOEcRjDWjUasmniFoPhkSb+UuF9TLtl1dRWDwthH\nbLNaDgT8o8uHG6OUJz2LD3dtlS8YuYmv+9xEIbLYGYpelbt+lttbN46djK3y\nVZFykuV5FDuT/qx6Av9xTiLwGY4MniPhTfTQ+g4aZ9zxw3S7OALtz4kzNkos\n7FMMDS2pHmrIJv0SGjt3QHHIaThpa/cXcNKYxsBToln3qr5x/xt6PPlkNqos\njeCtalmCI9BT1my1ox4v8ctoaXYjOZ+8rflSPVBudWKMTry93wZ7bx9F4JLa\ngxdBlxujNPY+TeOkDPryeODAZcwiG37SBD9bRi+kEHBYZkpvm9E0tnqXhHvA\nTar5\r\n=ep0+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWsD+DgtHWqjWpQzJUiGGw1LZ9PMbfZq2NQunObeNa0AIgY7he3QZzu+IdFy5WvKBQlxagaDz/L6ri9dKQH1hQBbM="}]},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"_npmUser":{"name":"asbjornh","email":"asbjornh@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-groq_1.0.0_1602666410608_0.023515879392583372"},"_hasShrinkwrap":false},"2.0.0":{"name":"@asbjorn/eslint-plugin-groq","version":"2.0.0","description":"Eslint plugin for GROQ queries","author":{"name":"Asbjørn Hegdahl"},"license":"MIT","engines":{"node":">=10.0.0"},"repository":{"type":"git","url":"https://github.com/asbjornh/eslint-plugin-groq.git"},"main":"index.js","scripts":{"debug":"eslint debug/index.js","lint":"eslint rules utils","test":"ava --verbose"},"dependencies":{"eslint-ast-utils":"^1.1.0","groq-js":"^0.2.0"},"devDependencies":{"ava":"^2.4.0","babel-eslint":"^10.0.3","eslint":"^6.5.1","eslint-ava-rule-tester":"^3.0.0","eslint-plugin-local":"^1.0.0","groq":"^0.142.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Asbjørn Hegdahl\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@asbjorn/eslint-plugin-groq@2.0.0","dist":{"shasum":"4438cad37369f4b2859be36245872995f5df4ed4","integrity":"sha512-dIR4FB4yBoA/WZEsgagmcnwllRH+qkDS8/YxVgLlsoL+IZb6RXtBDThoGKZye/OryAlEGLQP6aaWHtlxAflgyA==","tarball":"https://registry.npmjs.org/@asbjorn/eslint-plugin-groq/-/eslint-plugin-groq-2.0.0.tgz","fileCount":14,"unpackedSize":15397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpn3fCRA9TVsSAnZWagAAI3UP/3paaQnOAIarjNvzWnUH\nBiZNXL2ZFOeBAmp4dibvo5STissjoCjWD4pj4tmTwY9VcocZtb1QBnmwnx/o\nBvDwFtiBXd5UQNGvl5XiKsmfuHlbRZ2TcEffbTo3AML/FSHP4ygXWr+wOUBC\nJ/shE2ffG5/3KyVg+H5UeYqNmezqXZlwIDiXJGpxWuxxn/9/7maVdvm6SBA8\nI6iDykxoUihY4qleJv9E504CPRe6jZ97nUjdHqG0XIQz/bUJiUNa/jMYPrRb\nk+UG8ZbgwqxaBHpatzx1vV9GvIQb+eNVNFVus1jYaQuYDKNW+TXH9V1KgcBY\nRQx9FVqG+uI5SiOKIgqB+PXxG7ndByVlPO3W13TnAPC1ZF7uF10ksU4SS737\nLYwIIwYG7UjuIE+4yk7EAnTRLG4IcGXyfqU48zpaorvQC3PgKiZzVpXnnlTm\n0Rvv6UGcRuTPaff5Lq0QFZpDYdXKYmR7InZ7Jivv7G70L21FmeJiHjodvg3I\nQn6F+fvi2bQ7UEdcttWrH6XgrUQewY0xOoQ/bdoLDDIjy35TstbohUtWK+R4\nNul4s4CeP4IhjToaT6sLBICWhKAqHLZyjwVKxjL5a58S2tvMc0xF4oR/Igaz\nH3U7cOTx3azpOIU+w+xWmnQQe+MIi+d8awq8AhnCCEiH12KM0NN0mopl4E16\nAH4t\r\n=xcI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZ99VcvNyni32OBamllcE3f5L8l8bz4kqSO3nDOql+2AiEAzqIv1FZfD9cgiDMd/AijGXtDXvxa1onWouLia0XYr+Y="}]},"_npmUser":{"name":"asbjornh","email":"asbjornh@gmail.com"},"directories":{},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-groq_2.0.0_1638301151790_0.5920817615987317"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-28T16:08:17.581Z","0.1.0":"2019-10-28T16:08:17.906Z","modified":"2022-04-04T15:42:55.119Z","0.1.1":"2019-10-28T16:30:54.615Z","0.1.2":"2019-10-28T16:40:40.108Z","1.0.0":"2020-10-14T09:06:50.803Z","2.0.0":"2021-11-30T19:39:11.978Z"},"maintainers":[{"name":"asbjornh","email":"asbjornh@gmail.com"}],"description":"Eslint plugin for GROQ queries","repository":{"type":"git","url":"https://github.com/asbjornh/eslint-plugin-groq.git"},"author":{"name":"Asbjørn Hegdahl"},"license":"MIT","readme":"# @asbjorn/eslint-plugin-groq\n\nUnofficial `eslint` plugin for [GROQ](https://www.sanity.io/docs/groq) queries.\n\n```\nnpm install @asbjorn/eslint-plugin-groq\n```\n\n## Requirements\n\nThis plugin uses [`groq`](https://www.npmjs.com/package/groq) to identify GROQ tagged template literals, and by default will not report anything for queries that don't use this package.\n\nIf you use `groq` from a different library, such as `@nuxtjs/sanity` or `next-sanity`, see below for configuration.\n\n```js\n// Will not be linted:\nconst query = \"*[_type == 'movies'][0..10]\";\n\n// Will be linted:\nimport groq from \"groq\";\nconst query = groq`*[_type == 'movies'][0..10]`;\n\n// Will also be linted:\nimport anything from \"groq\";\nconst query = anything`*[_type == 'movies'][0..10]`;\n```\n\n## Configuration\n\n```json\n{\n  \"plugins\": [\"@asbjorn/groq\"],\n  \"rules\": {\n    \"@asbjorn/groq/no-syntax-errors\": \"error\",\n    \"@asbjorn/groq/no-template-expressions\": \"error\"\n  }\n}\n```\n\nOr:\n\n```json\n{\n  \"extends\": [\"plugin:@asbjorn/groq/recommended\"]\n}\n```\n\n### Using `groq` from other libraries\n\nBy default these eslint rules only check queries using the GROQ function exported from the `groq` npm package. If you use GROQ from a different library, such as `@nuxtjs/sanity` or `next-sanity`, you can pass an array of package names as config to the rules:\n\n```json\n{\n  \"plugins\": [\"@asbjorn/groq\"],\n  \"rules\": {\n    \"@asbjorn/groq/no-syntax-errors\": [\n      \"error\",\n      { \"groqs\": [\"@nuxtjs/sanity\"] }\n    ],\n    \"@asbjorn/groq/no-template-expressions\": [\n      \"error\",\n      { \"groqs\": [\"@nuxtjs/sanity\"] }\n    ]\n  }\n}\n```\n\n## Rules\n\n### no-syntax-errors\n\nReports any syntax errors in GROQ queries tagged with the function exported from `groq`. Note that template literals that contain expressions will not be linted because resolving the expressions is very hard to do reliably. If you want to be extra safe, use this rule in combination with the `no-template-expressions` rule.\n\n#### Failing cases\n\n```js\n// Syntax error in tagged query\nimport groq from \"groq\";\ngroq`*[_type == { ]`;\n\n// Syntax error (not imported as `groq`)\nimport hello from \"groq\";\nhello`*[_type == { ]`;\n```\n\n#### Passing cases\n\n```js\n// Non-tagged query with syntax error\n`*[_type == {]`;\n\n// Valid, tagged query\nimport groq from \"groq\";\ngroq`*[_type == 'movie']`;\n\n// Query with syntax error tagged with `groq` not imported from `\"groq\"`\nimport groq from \"somewhere\";\ngroq`*[_type == {]`;\n\n// Query with syntax error and template expression\nimport groq from \"groq\";\ngroq`*[_${expression} == {]`;\n```\n\n### no-template-expressions\n\nReports any expressions in GROQ queries tagged with the function exported from `groq`. This rule exists because the `no-syntax-errors` rule bails on any query that contains expressions (see the description for that rule).\n\n#### Failing cases\n\n```js\n// Template expression\nimport groq from \"groq\";\ngroq`*[_type == ${type}]`;\n\n// Template expression (not imported as 'groq')\nimport hello from \"groq\";\nhello`*[_type == ${type}]`;\n```\n\n#### Passing cases\n\n```js\n// Tagged query without expressions\nimport groq from \"groq\";\ngroq`*[_type == 'movie']`;\n\n// Non-tagged query with expression\n`*[_type == ${type}]`;\n\n// Query with expression tagged with `groq` not imported from `\"groq\"`\nimport groq from \"somewhere\";\ngroq`*[_type == ${type}]`;\n```\n","readmeFilename":"README.md"}