{"id":16941185,"url":"https://github.com/joeybaker/eslint-plugin-no-console-log","last_synced_at":"2025-04-11T19:23:01.566Z","repository":{"id":57230027,"uuid":"42258445","full_name":"joeybaker/eslint-plugin-no-console-log","owner":"joeybaker","description":"An eslint plugin to warn on usage of console.log, unlike the built-in rule, this allows other console methods.","archived":false,"fork":false,"pushed_at":"2019-11-06T20:59:59.000Z","size":18,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T19:22:56.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeybaker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-10T17:03:12.000Z","updated_at":"2023-03-10T11:12:48.000Z","dependencies_parsed_at":"2022-09-14T15:01:57.865Z","dependency_job_id":null,"html_url":"https://github.com/joeybaker/eslint-plugin-no-console-log","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeybaker%2Feslint-plugin-no-console-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeybaker%2Feslint-plugin-no-console-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeybaker%2Feslint-plugin-no-console-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeybaker%2Feslint-plugin-no-console-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeybaker","download_url":"https://codeload.github.com/joeybaker/eslint-plugin-no-console-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465354,"owners_count":21108244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:08:54.921Z","updated_at":"2025-04-11T19:23:01.544Z","avatar_url":"https://github.com/joeybaker.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DEPRECATED. This is now built-in to eslint 2.0\n\n```json\nno-console: [2, { allow: [\"warn\", \"error\"] }]\n```\n\n# eslint-plugin-no-console-log [![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-url]][daviddm-image] [![Build Status][travis-image]][travis-url]\n\n\nAn eslint plugin to warn on usage of `console.log`.\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [Install](#install)\n- [Configuration](#configuration)\n- [Rule Details](#rule-details)\n- [When Not To Use It](#when-not-to-use-it)\n- [Further Reading](#further-reading)\n- [Tests](#tests)\n- [Developing](#developing)\n  - [Requirements](#requirements)\n- [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Install\n\n```sh\nnpm i -S eslint-plugin-no-console-log\n```\n\n## Configuration\n\nAdd `plugins` section and specify eslint-plugin-no-console-log as a plugin.\n\n```json\n{\n  \"plugins\": [\n    \"no-console-log\"\n  ]\n}\n```\n\nThen, enable the rule.\n\n```json\n{\n  \"rules\": {\n    \"no-console-log/no-console-log\": 1\n  }\n}\n```\n\n\n## Rule Details\n\nThis rule warns when it sees `console.log` only. Other variants, like `console.warn` are allowed, as it's assumed you've left them there on purpose. If you'd like to disable all console methods use the built-in rule `no-console`.\n\nThe following patterns are considered warnings:\n\n```js\n\nconsole.log('hi')\n\n```\n\nThe following patterns are not warnings:\n\n```js\n\nconsole.time('timer')\nconsole.timeEnd('timer')\nconsole.warn('oops')\nconsole.error('kittens!')\n\n```\n\n## When Not To Use It\n\nIf you want to disable all `console` use to enforce a custom logging option.\n\n## Further Reading\n\nhttps://github.com/eslint/eslint/issues/2621#issuecomment-105961888\n\n## Tests\nTests are in eslint's [RuleTester](http://eslint.org/docs/user-guide/migrating-to-1.0.0#deprecating-eslint-tester).\n\n\n* `npm test` will run the tests\n* `npm run tdd` will run the tests on every file change.\n\n## Developing\nTo publish, run `npm run release -- [{patch,minor,major}]`\n\n_NOTE: you might need to `sudo ln -s /usr/local/bin/node /usr/bin/node` to ensure node is in your path for the git hooks to work_\n\n### Requirements\n* **npm \u003e 2.0.0** So that passing args to a npm script will work. `npm i -g npm`\n* **git \u003e 1.8.3** So that `git push --follow-tags` will work. `brew install git`\n\n## License\n\nArtistic 2.0 © [Joey Baker](http://byjoeybaker.com) and contributors. A copy of the license can be found in the file `LICENSE`.\n\n[npm-url]: https://npmjs.org/package/eslint-plugin-no-console-log\n[npm-image]: https://badge.fury.io/js/eslint-plugin-no-console-log.svg\n[travis-url]: https://travis-ci.org/joeybaker/eslint-plugin-no-console-log\n[travis-image]: https://travis-ci.org/joeybaker/eslint-plugin-no-console-log.svg?branch=master\n[daviddm-url]: https://david-dm.org/joeybaker/eslint-plugin-no-console-log.svg?theme=shields.io\n[daviddm-image]: https://david-dm.org/joeybaker/eslint-plugin-no-console-log\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeybaker%2Feslint-plugin-no-console-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeybaker%2Feslint-plugin-no-console-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeybaker%2Feslint-plugin-no-console-log/lists"}