{"versions":{"1.0.3":{"name":"eslint-plugin-only-warn","version":"1.0.3","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"main":"src/only-warn.js","scripts":{"test":"npm run lint && jest","lint":"prettier --check --loglevel=warn src tests && eslint src tests","format":"prettier --write --loglevel=warn src tests && eslint --fix src tests","jest:watch":"jest --watch"},"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"},"prettier":{"semi":false,"singleQuote":true},"eslintConfig":{"extends":"eslint:recommended","plugins":["prettier"],"env":{"jest":true,"node":true,"es6":true},"rules":{"prettier/prettier":"error"}},"dependencies":{},"devDependencies":{"eslint":"^7.31.0","eslint-plugin-prettier":"^3.1.2","jest":"^27.0.6","prettier":"^2.3.2"},"engines":{"node":">=6"},"license":"MIT","gitHead":"f1ff737ed24138288d6f74d55dd0a74717b11316","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_id":"eslint-plugin-only-warn@1.0.3","_nodeVersion":"16.5.0","_npmVersion":"7.20.1","dist":{"shasum":"a75f3a9ded7f03e9808e75ec27f22b644084506e","size":2309,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.3.tgz","integrity":"sha512-XQOX/TfLoLw6h8ky51d29uUjXRTQHqBGXPylDEmy5fe/w7LIOnp8MA24b1OSMEn9BQoKow1q3g1kLe5/9uBTvw=="},"_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-only-warn_1.0.3_1627300432149_0.7871520425932952"},"_hasShrinkwrap":false,"publish_time":1627300432297,"_cnpm_publish_time":1627300432297,"_cnpmcore_publish_time":"2021-12-18T02:54:06.866Z","contributors":[]},"1.0.2":{"name":"eslint-plugin-only-warn","version":"1.0.2","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"main":"src/only-warn.js","scripts":{"test":"eslint src tests && jest","test:watch":"jest --watch"},"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"},"prettier":{"semi":false,"singleQuote":true},"eslintConfig":{"extends":"plugin:vue/recommended","plugins":["prettier"],"env":{"jest":true},"rules":{"prettier/prettier":"error"}},"dependencies":{},"devDependencies":{"eslint":"^6.8.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-vue":"^6.0.1","jest":"^24.9.0","prettier":"^1.19.1"},"engines":{"node":">=6"},"license":"MIT","gitHead":"14d6f3241ca24d0a3e3e53bed981612cc7ca89da","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_id":"eslint-plugin-only-warn@1.0.2","_nodeVersion":"13.4.0","_npmVersion":"6.13.4","dist":{"shasum":"22bf3ce9f0a8671eecf78757d6eff3fd518be0aa","size":1805,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.2.tgz","integrity":"sha512-DCG8vuUynDnyfkm0POT50JoE9VJfbtKf+COHn3q79+ExW4dg9ZWM/hsMWX1mjZqxMjQledL/9TmGipon/vwWmw=="},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-only-warn_1.0.2_1577273352073_0.44621569358124336"},"_hasShrinkwrap":false,"publish_time":1577273352194,"_cnpm_publish_time":1577273352194,"_cnpmcore_publish_time":"2021-12-18T02:54:07.305Z","contributors":[]},"1.0.1":{"name":"eslint-plugin-only-warn","version":"1.0.1","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"main":"src/only-warn.js","scripts":{"test":"eslint src tests && jest","test:watch":"jest --watch"},"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"},"eslintConfig":{"extends":"vue","env":{"jest":true}},"dependencies":{},"devDependencies":{"eslint":"^4","eslint-config-vue":"^2.0.2","eslint-plugin-vue":"^2.1.0","jest":"^20.0.3"},"engines":{"node":">=6"},"license":"MIT","gitHead":"7168c23b597d9f2b15c96e51857ebbf0ac27b129","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_id":"eslint-plugin-only-warn@1.0.1","_npmVersion":"5.1.0","_nodeVersion":"8.1.2","_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"dist":{"shasum":"a01e615c36f30baf909ff56ab0605ffe4ea18a37","size":1473,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.0.1.tgz","integrity":"sha512-ckQiP40oGxrWjxY+UN6qr1DSWgsJwibICzsjBSyv6EPujZ/lta9zDe67ja7a3Wq27LiZ7B1nuBOamuigTxrbtQ=="},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-only-warn-1.0.1.tgz_1499415650339_0.6838087351061404"},"directories":{},"publish_time":1499415651246,"_hasShrinkwrap":false,"_cnpm_publish_time":1499415651246,"_cnpmcore_publish_time":"2021-12-18T02:54:07.537Z","contributors":[]},"0.0.1":{"name":"eslint-plugin-only-warn","version":"0.0.1","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"author":{"name":"Bob Fanger"},"main":"src/only-warn.js","scripts":{"test":"jest","test:watch":"jest --watch"},"dependencies":{},"devDependencies":{"eslint":"^3.19.0","jest":"^20.0.3"},"engines":{"node":">=6"},"license":"MIT","gitHead":"7eacc02c06639aefeeae55940f9d44a3c5bb6a19","_id":"eslint-plugin-only-warn@0.0.1","_shasum":"ed52c4e3d60ca41e738aac4d21e386c2877f5964","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.10.0","_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"dist":{"shasum":"ed52c4e3d60ca41e738aac4d21e386c2877f5964","size":1061,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-0.0.1.tgz","integrity":"sha512-OTpuLXUY5FLSp4/4NsS2P+YN50Ga1Gey3j3oPhlGMMktgxv2MVspkgNlSV7WBDeReozP3pajSyo+7t0hRdhpnQ=="},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-only-warn-0.0.1.tgz_1495553947078_0.25638723699375987"},"directories":{},"publish_time":1495553948001,"_hasShrinkwrap":false,"_cnpm_publish_time":1495553948001,"_cnpmcore_publish_time":"2021-12-18T02:54:07.745Z","contributors":[]},"1.1.0":{"name":"eslint-plugin-only-warn","version":"1.1.0","description":"Downgrade errors to warnings","keywords":["eslint","eslintplugin","eslint-plugin"],"main":"src/only-warn.js","scripts":{"test":"npm run lint && jest","lint":"prettier --check --loglevel=warn src tests && eslint src tests","format":"prettier --write --loglevel=warn src tests && eslint --fix src tests","jest:watch":"jest --watch"},"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"},"prettier":{"semi":false,"singleQuote":true},"eslintConfig":{"extends":"eslint:recommended","plugins":["prettier"],"env":{"jest":true,"node":true,"es6":true},"rules":{"prettier/prettier":"error"}},"dependencies":{},"devDependencies":{"eslint":"^7.31.0","eslint-plugin-prettier":"^3.1.2","jest":"^27.0.6","prettier":"^2.3.2"},"engines":{"node":">=6"},"license":"MIT","gitHead":"f61ade5ce29bf3570a09fd848e2a878b1dae5b31","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_id":"eslint-plugin-only-warn@1.1.0","_nodeVersion":"19.0.1","_npmVersion":"9.1.2","dist":{"integrity":"sha512-2tktqUAT+Q3hCAU0iSf4xAN1k9zOpjK5WO8104mB0rT/dGhOa09582HN5HlbxNbPRZ0THV7nLGvzugcNOSjzfA==","shasum":"c6ddc37ddc4e72c121f07be565fcb7b6671fe78a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.1.0.tgz","fileCount":6,"unpackedSize":6005,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC121/N2qIVzNmQbb3GlJS9wwOjuP7xo5PweQv2rIfoyAiEA5tGaaLzZwoGxrSGon7T7tlj8zZ986t2rfXWrSYoWOAA="}],"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","size":2524},"_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-only-warn_1.1.0_1670062047588_0.06064437660267208"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-03T10:07:33.835Z","contributors":[]},"1.2.0":{"name":"eslint-plugin-only-warn","version":"1.2.0","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":"f97657e493558f0c54ed1f8c97d8ebc450b95a06","_id":"eslint-plugin-only-warn@1.2.0","bugs":{"url":"https://github.com/bfanger/eslint-plugin-only-warn/issues"},"_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-pBxMNbkRf/sx8LK1YIc67Opgh1zmNXOUO+MHcevdnqCeNeTWrw7g0cxFO0yPrrzYGpvlriUjQ8yMPPtRF6TDUw==","shasum":"f1b7df805d220169ae5857f7e169b95e84a44c3b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/eslint-plugin-only-warn/-/eslint-plugin-only-warn-1.2.0.tgz","fileCount":8,"unpackedSize":6884,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICpEGJGgTrXlVxHY9sQVN6Ud7OzoJBVgDZengSbJDMhdAiAAoMuQ5QID6EDzS0PA1aC8sZg7moopfqPDv60g1h2dzQ=="}],"size":2892},"_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"bfanger@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-plugin-only-warn_1.2.0_1772277286910_0.5757816375831031"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-28T11:14:47.071Z","publish_time":1772277287071,"_source_registry_name":"default","contributors":[]},"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":"http://123.232.10.234:8212/nexus/content/groups/npm-public/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"}],"size":2246},"_npmUser":{"name":"anonymous","email":"bfanger@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","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,"_cnpmcore_publish_time":"2026-02-28T11:36:50.876Z","publish_time":1772278610876,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.2.1"},"name":"eslint-plugin-only-warn","time":{"created":"2022-01-27T08:25:20.568Z","modified":"2026-02-28T11:37:03.166Z","1.0.3":"2021-07-26T11:53:52.297Z","1.0.2":"2019-12-25T11:29:12.194Z","1.0.1":"2017-07-07T08:20:51.246Z","0.0.1":"2017-05-23T15:39:08.001Z","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"},"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)","users":{}}