{"_id":"eslint-plugin-only-warn","_rev":"13-7778a1f57025c986a01eac368bc21aae","name":"eslint-plugin-only-warn","dist-tags":{"latest":"1.2.1"},"versions":{"0.0.1":{"name":"eslint-plugin-only-warn","version":"0.0.1","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@0.0.1","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"dist":{"shasum":"ed52c4e3d60ca41e738aac4d21e386c2877f5964","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-0.0.1.tgz","integrity":"sha512-OTpuLXUY5FLSp4/4NsS2P+YN50Ga1Gey3j3oPhlGMMktgxv2MVspkgNlSV7WBDeReozP3pajSyo+7t0hRdhpnQ==","signatures":[{"sig":"MEYCIQD1ORgu2vTBhit+PNI10MRme+g+IPGuU0tz2cfW0hzHuQIhAK4S5vkuS/wN0Z14YhnV0nkG85a4PxDUXDR5yBaj1ZED","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/only-warn.js","_from":".","_shasum":"ed52c4e3d60ca41e738aac4d21e386c2877f5964","engines":{"node":">=6"},"gitHead":"7eacc02c06639aefeeae55940f9d44a3c5bb6a19","scripts":{"test":"jest","test:watch":"jest --watch"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"_npmVersion":"4.6.1","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"7.10.0","dependencies":{},"devDependencies":{"jest":"^20.0.3","eslint":"^3.19.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn-0.0.1.tgz_1495553947078_0.25638723699375987","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"eslint-plugin-only-warn","version":"1.0.1","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@1.0.1","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"dist":{"shasum":"a01e615c36f30baf909ff56ab0605ffe4ea18a37","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.1.tgz","integrity":"sha512-ckQiP40oGxrWjxY+UN6qr1DSWgsJwibICzsjBSyv6EPujZ/lta9zDe67ja7a3Wq27LiZ7B1nuBOamuigTxrbtQ==","signatures":[{"sig":"MEYCIQDRI991dEooOEVKPAcMHV74rhGPJokOTqrgtxi730tQbAIhAOqp2Y93gfZ4rYCf8kc1lA8KXtY+wH3tJXgSoyKsj+59","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/only-warn.js","engines":{"node":">=6"},"gitHead":"7168c23b597d9f2b15c96e51857ebbf0ac27b129","scripts":{"test":"eslint src tests && jest","test:watch":"jest --watch"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"repository":{"url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git","type":"git"},"_npmVersion":"5.1.0","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"8.1.2","dependencies":{},"eslintConfig":{"env":{"jest":true},"extends":"vue"},"devDependencies":{"jest":"^20.0.3","eslint":"^4","eslint-config-vue":"^2.0.2","eslint-plugin-vue":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn-1.0.1.tgz_1499415650339_0.6838087351061404","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"eslint-plugin-only-warn","version":"1.0.2","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@1.0.2","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"dist":{"shasum":"22bf3ce9f0a8671eecf78757d6eff3fd518be0aa","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.2.tgz","fileCount":6,"integrity":"sha512-DCG8vuUynDnyfkm0POT50JoE9VJfbtKf+COHn3q79+ExW4dg9ZWM/hsMWX1mjZqxMjQledL/9TmGipon/vwWmw==","signatures":[{"sig":"MEQCIF2u+8J2hX2gM4Lavav/ZHdBdCDDtPdQfeS+aVxwtWW1AiA3V8bDgVyFqEXzPnwfZDcAgYHZFDhpUfQjJ2j0bfpkFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeA0gICRA9TVsSAnZWagAA2LcP/3PyE48wZflOwrYR26HR\nDsi60riSE5D4SHuuu3Un7El+D5FGTRVCLvTPLE1agPRimjDXvTpiWRvWtv+/\nEzMvittTkNicIzZz6LLrfJSiCrPeM51HDp80zyEnFyN72Xap+yqsMK2t5hjU\n9nHzlM5epz3+mtV4/TRJEo11Wmixv84gx3LitQF0BtHGX1RY6+4pjFeoS4dc\nEj4qNTF+qGRfuGWHZMQIQxgeUIy2JnYe3ufIBbs1HWZsUmVHbdBpRHxN1dHL\nN+S53AVi6IlZD9gMrTp4IiNXZnRiOhS+pzsTGmkWBIBNiadwp/QMiKs9JTQU\nFLMnEpH3Z1hHtplQT9c/n2lkQUwTcF/yskxayosRP1J45AnOtZy8E5Hjcytd\n/TpXTkdzHaOT/ENa2DXAErMhecjmdNbR30150wWgQLfYtDLhE01uJCgK4uKX\njaBNGYnRR98k8yXCwqtFZQ16s05/BZ46PDvOpiDZ/swH8Z5OwLk6GWNWDrmw\nNU1OaVPtYRI4vf7s9sHGfnreOyzwpx9LhOWQ652Dp3zHhKTBfH+Qz5DqEzY/\naeaI+PkTUeuN3L2VXSQAC1DIarrjHxZvdUywZSOfmho5XPJMeuxRVrZhTdK8\n5YLPRk98yUyfUEtr9fJvbHEpff6UBdbJFubO50laoFaNTfTrtQb8i4d+++NI\nO0am\r\n=47Rn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/only-warn.js","engines":{"node":">=6"},"gitHead":"14d6f3241ca24d0a3e3e53bed981612cc7ca89da","scripts":{"test":"eslint src tests && jest","test:watch":"jest --watch"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"prettier":{"semi":false,"singleQuote":true},"repository":{"url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git","type":"git"},"_npmVersion":"6.13.4","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"13.4.0","dependencies":{},"eslintConfig":{"env":{"jest":true},"rules":{"prettier/prettier":"error"},"extends":"plugin:vue/recommended","plugins":["prettier"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","eslint":"^6.8.0","prettier":"^1.19.1","eslint-plugin-vue":"^6.0.1","eslint-plugin-prettier":"^3.1.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn_1.0.2_1577273352073_0.44621569358124336","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"eslint-plugin-only-warn","version":"1.0.3","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@1.0.3","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"dist":{"shasum":"a75f3a9ded7f03e9808e75ec27f22b644084506e","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.3.tgz","fileCount":6,"integrity":"sha512-XQOX/TfLoLw6h8ky51d29uUjXRTQHqBGXPylDEmy5fe/w7LIOnp8MA24b1OSMEn9BQoKow1q3g1kLe5/9uBTvw==","signatures":[{"sig":"MEUCIGk2J37tv+0dt2oAAwW+pjW1SUr5sW1Fw3SvIbaemFkKAiEA8AQAJTCdNc6AyfTUwOIZrKGJwFxFjwCwRLipggApfNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/qJQCRA9TVsSAnZWagAAsBwP/RoTm3DBz9N1EdhdwpFY\n84uzSVQk+T1mTO5G+ZXqFK6SRklah+dtVC6Xm7Wirb1har/+Encr2RfQdroz\nMmOq/FzjVSE5cY+I+mXDugsxWYnJr/zZAqED3SgzBMZvF78eVoG5U+GZzwdg\n9OLxJ5JacNCQmJjv3f7JiKJ+spwrJjz2EVHMlaI/2U7Avk44tRP3zchv4ECi\nNxZNXSgRf2DZf9lp6Xl5yfzf4OkX6UOXvJP5Hl7zhNp65g1K1+u6kApuu8Ld\nWA7uN+ymKjkpiLpkPv+oE+sNuIM1raL7UMad3Uc1Vj9YXctUplR9R3MybKjv\nTe1cRhqtkijpV4zxzzYiwwdbDuAmyn+ZOCryDkdH0o/X2m01o/7IAp5hafMa\nWnkM/5jzKsGHd6GbaNUufHnFwn6JToNZTmVr8C8JrmLQwFJdyRM2Ffy5gLPp\nhGV7RO2eh0u7kBf3tDLX+G3UC64IYWj0m3yAoIY4X0B4emZcS9Bjs/Cj+NLF\n2V2L7x12zy/Xm0WYuZNQjraYdmwuER5o9d+Ws6cvIKlH6itGNz0ltf32soxD\nSyMWLguP5vsHuZ4rhaxBrctpenQtiKZxFW5puqLlRT1QVGgIo1tfnalLR/6X\nNbffr6+F3aTvrMnKZDklTeSbA6hknrAHmsrY9nCsgWCsCZATvpVI9ciqPjrR\no1zc\r\n=JdR8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/only-warn.js","engines":{"node":">=6"},"gitHead":"f1ff737ed24138288d6f74d55dd0a74717b11316","scripts":{"lint":"prettier --check --loglevel=warn src tests && eslint src tests","test":"npm run lint && jest","format":"prettier --write --loglevel=warn src tests && eslint --fix src tests","jest:watch":"jest --watch"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"prettier":{"semi":false,"singleQuote":true},"repository":{"url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git","type":"git"},"_npmVersion":"7.20.1","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"16.5.0","dependencies":{},"eslintConfig":{"env":{"es6":true,"jest":true,"node":true},"rules":{"prettier/prettier":"error"},"extends":"eslint:recommended","plugins":["prettier"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","eslint":"^7.31.0","prettier":"^2.3.2","eslint-plugin-prettier":"^3.1.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn_1.0.3_1627300432149_0.7871520425932952","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"eslint-plugin-only-warn","version":"1.1.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@1.1.0","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"dist":{"shasum":"c6ddc37ddc4e72c121f07be565fcb7b6671fe78a","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.1.0.tgz","fileCount":6,"integrity":"sha512-2tktqUAT+Q3hCAU0iSf4xAN1k9zOpjK5WO8104mB0rT/dGhOa09582HN5HlbxNbPRZ0THV7nLGvzugcNOSjzfA==","signatures":[{"sig":"MEUCIC121/N2qIVzNmQbb3GlJS9wwOjuP7xo5PweQv2rIfoyAiEA5tGaaLzZwoGxrSGon7T7tlj8zZ986t2rfXWrSYoWOAA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjix/fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcIg//crAJi8xISkCIj025A0cVn9bVSGCP4D8w7m1QNNv7hEcBOmv4\r\n/CMy4sRlgzRvqd2gs85sBlyI6s52C6cbY2PinmbJZGlmUYdQ2Z+7OCLbKocI\r\nKgAXg588KM3JwMH48jOWEfrcHXYR3lyWijjrvleChrLLTi0nUIqHMQ0XNKaM\r\ne5B5PiZi/NwibQHswVhHeyg21JMQDpOqACWNN7a2quRXhVEgzqNtCkXKxlZ6\r\nstlG7XuyZkWcLbz1elKCLqFHVi+1E4mMvLSfK9Lg8u4GmrWhw3Fk5udzsYCi\r\neHK2NuNfBat1M6bPT0Z2TT45VAqubYrmHTvDYgaW7CJpv4jRBNqo5mwSvx4c\r\n/Mt8Y/1ReKyiETg9jZOdZrQ1ldYWQ3qYccLIjIdVmNZ1Ec0J8NPXbv7lwCzI\r\nfpaParUsIsAu4Dylbj/oJCeEvhNnHjmAEvvVlzaJngYHtly3J0A8CUHkPvYG\r\nhEU6tdlSGYIKETYfmgfJxKSkXVcguhfn0m+UEOraDMtPHpw7Gw6aSziEGexp\r\nrp7PJaqd6W/qtJgA3Sr03AEkvVpnUqPKCzDIToFC4NjkUFl+Tl02f5EWuWJa\r\nWcArmzKuY/2TTeshTZKaEpWz3CEF2INALhVse0jbOTd5dle0HIUmxdUk0hcM\r\nBykYZ1FMQvo/IDspMWub+xl3Vlit2pCObV4=\r\n=g5QP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/only-warn.js","engines":{"node":">=6"},"gitHead":"f61ade5ce29bf3570a09fd848e2a878b1dae5b31","scripts":{"lint":"prettier --check --loglevel=warn src tests && eslint src tests","test":"npm run lint && jest","format":"prettier --write --loglevel=warn src tests && eslint --fix src tests","jest:watch":"jest --watch"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"prettier":{"semi":false,"singleQuote":true},"repository":{"url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git","type":"git"},"_npmVersion":"9.1.2","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"19.0.1","dependencies":{},"eslintConfig":{"env":{"es6":true,"jest":true,"node":true},"rules":{"prettier/prettier":"error"},"extends":"eslint:recommended","plugins":["prettier"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.0.6","eslint":"^7.31.0","prettier":"^2.3.2","eslint-plugin-prettier":"^3.1.2"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn_1.1.0_1670062047588_0.06064437660267208","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"eslint-plugin-only-warn","version":"1.2.0","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"license":"MIT","_id":"eslint-plugin-only-warn@1.2.0","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"dist":{"shasum":"f1b7df805d220169ae5857f7e169b95e84a44c3b","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.2.0.tgz","fileCount":8,"integrity":"sha512-pBxMNbkRf/sx8LK1YIc67Opgh1zmNXOUO+MHcevdnqCeNeTWrw7g0cxFO0yPrrzYGpvlriUjQ8yMPPtRF6TDUw==","signatures":[{"sig":"MEQCICpEGJGgTrXlVxHY9sQVN6Ud7OzoJBVgDZengSbJDMhdAiAAoMuQ5QID6EDzS0PA1aC8sZg7moopfqPDv60g1h2dzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6884},"main":"src/only-warn.js","type":"commonjs","types":"types/only-warn.d.ts","gitHead":"f97657e493558f0c54ed1f8c97d8ebc450b95a06","scripts":{"lint":"prettier --check . && eslint . && tsc","test":"vitest run","format":"eslint --fix . && prettier --write .","prepublish":"rm -rf types && tsc","test:watch":"vitest"},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"prettier":{},"repository":{"url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git","type":"git"},"_npmVersion":"11.9.0","description":"Downgrade errors to warnings","directories":{},"_nodeVersion":"25.6.1","_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.0.2","vitest":"^4.0.18","prettier":"^3.8.1","@eslint/js":"^10.0.1","typescript":"^5.9.3","@types/node":"^25.3.2","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-only-warn_1.2.0_1772277286910_0.5757816375831031","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"eslint-plugin-only-warn","version":"1.2.1","license":"MIT","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"homepage":"https://github.com/bfanger/eslint-plugin-only-warn","repository":{"type":"git","url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git"},"type":"commonjs","main":"src/only-warn.js","types":"types/only-warn.d.ts","prettier":{},"scripts":{"lint":"prettier --check . && eslint . && tsc","format":"eslint --fix . && prettier --write .","test":"vitest run","test:watch":"vitest","prepublish":"rm -rf types && tsc"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.3.2","eslint":"^10.0.2","eslint-config-prettier":"^10.1.8","prettier":"^3.8.1","typescript":"^5.9.3","vitest":"^4.0.18"},"gitHead":"f229d46bf70908ef6ed2c3f68632933abb701484","_id":"eslint-plugin-only-warn@1.2.1","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-j37hwfaQDEOfkZ1Dpvu/HnWLavlzQxQxfbrU/9Jb4R9qzrE1eTYuRJyrxq7LzLRI8miG5FOV6veoUVhx7AI84w==","shasum":"79f3bba0d037d5d897d7bf1d40f3fc93c94e0f87","tarball":"https://registry.npmjs.org/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.2.1.tgz","fileCount":6,"unpackedSize":5111,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCQ17+Mo7DYdwV5uPVd99kcQYPzM+lCbQVKa/m1urR0kQIhAOXdTdq59u9YPncQCT/Y6PW0DONDsTLbY78lh/Pmh1AZ"}]},"_npmUser":{"name":"bfanger","email":"bfanger@gmail.com"},"directories":{},"maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-only-warn_1.2.1_1772278610726_0.28275077592138076"},"_hasShrinkwrap":false}},"time":{"created":"2017-05-23T15:39:08.001Z","modified":"2026-02-28T11:36:51.002Z","0.0.1":"2017-05-23T15:39:08.001Z","1.0.0":"2017-07-07T08:16:44.324Z","1.0.1":"2017-07-07T08:20:51.246Z","1.0.2":"2019-12-25T11:29:12.194Z","1.0.3":"2021-07-26T11:53:52.297Z","1.1.0":"2022-12-03T10:07:27.773Z","1.2.0":"2026-02-28T11:14:47.071Z","1.2.1":"2026-02-28T11:36:50.876Z"},"bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"author":{"name":"Bob Fanger"},"license":"MIT","homepage":"https://github.com/bfanger/eslint-plugin-only-warn","keywords":["eslint","eslintplugin","eslint-plugin"],"repository":{"type":"git","url":"git+https://github.com/bfanger/eslint-plugin-only-warn.git"},"description":"Downgrade errors to warnings","maintainers":[{"name":"bfanger","email":"bfanger@gmail.com"}],"readme":"# eslint-plugin-only-warn\n\n![status](https://github.com/bfanger/eslint-plugin-only-warn/actions/workflows/lint-and-test.yml/badge.svg)\n\nDowngrade [ESLint](http://eslint.org) errors to warnings.\n\n## Installation\n\n```sh\nnpm install --save-dev eslint-plugin-only-warn\n```\n\n## Usage\n\nUsing [flat config files](https://eslint.org/docs/latest/use/configure/configuration-files):\n\n```js\n// eslint.config.js\nimport \"eslint-plugin-only-warn\";\n\nexport default [\n  ...\n```\n\nOr, when the package.json that doesn't have `\"type\": \"module\"`:\n\n```js\nrequire(\"eslint-plugin-only-warn\");\n```\n\n<details>\n  <summary>ESLint 8.x and earlier</summary>\n\nAdd `only-warn` to the plugins section of your `.eslintrc` configuration file:\n\n```json\n{\n  \"plugins\": [\"only-warn\"]\n}\n```\n\n</details>\n\n### --max-warnings=0\n\nAdd [--max-warnings=0](https://eslint.org/docs/latest/use/command-line-interface#--max-warnings) to the eslint command in package.json\n\n```json\n  \"lint\": \"eslint --max-warnings=0 ...\",\n```\n\nAdding the option allows git hooks or CI pipelines to detect failed linting rules.  \nBecause the cli now has a nonzero exitcode when it encountered linting warnings.\n\n### Git integration\n\nUse [Husky](https://typicode.github.io/husky/) and [lint-staged](https://github.com/okonet/lint-staged) to prevent committing code that contain eslint warnings.\n\n# Why only warnings?\n\n- Don't waste time thinking or discussing about when a rule should be an error or a warning, focus on enabling of disabling a rule\n- Warnings look different in editors, this allows you to quickly see that some tweaking is required, but your code still runs (ESLint rules generally don't block the code from executing and fatal errors are still reported as error)\n- Prevents noise, disallowing warnings to be committed in a codebase prevents clutter in the output of ESLint (use [special eslint comments](https://eslint.org/docs/latest/use/configure/rules#disabling-rules) for the instances when you need an exception to the rules)\n","readmeFilename":"Readme.md","users":{"bfanger":true}}