{"id":16718768,"url":"https://github.com/kgryte/eslint-rules-nodejs","last_synced_at":"2025-03-15T10:24:31.157Z","repository":{"id":57157855,"uuid":"41821637","full_name":"kgryte/eslint-rules-nodejs","owner":"kgryte","description":"ESLint rules specific to running JavaScript on Node.js.","archived":false,"fork":false,"pushed_at":"2015-09-02T20:54:05.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T04:36:24.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kgryte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-02T18:58:21.000Z","updated_at":"2019-08-18T16:50:57.000Z","dependencies_parsed_at":"2022-09-07T20:33:15.505Z","dependency_job_id":null,"html_url":"https://github.com/kgryte/eslint-rules-nodejs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgryte%2Feslint-rules-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgryte%2Feslint-rules-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgryte%2Feslint-rules-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgryte%2Feslint-rules-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgryte","download_url":"https://codeload.github.com/kgryte/eslint-rules-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243715383,"owners_count":20335920,"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-12T21:38:27.580Z","updated_at":"2025-03-15T10:24:31.132Z","avatar_url":"https://github.com/kgryte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rules: Node.js\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n\u003e [ESLint](http://eslint.org/) rules specific to running JavaScript on Node.js.\n\n\n## Installation\n\n``` bash\n$ npm install eslint-rules-nodejs\n```\n\n\n## Usage\n\n``` javascript\nvar rules = require( 'eslint-rules-nodejs' );\n```\n\n#### rules\n\n[ESLint](http://eslint.org/) rules specific to running JavaScript on Node.js.\n\n``` javascript\nconsole.dir( rules );\n/*\n\t{\n\t\t'callback-return': [ 1, [\n\t\t\t'callback',\n\t\t\t'clbk',\n\t\t\t'cb',\n\t\t\t'done',\n\t\t\t'next'\n\t\t]],\n\t\t'handle-callback-err': [ 2, '^(err|error)$' ],\n\t\t...\n\t}\n*/\n```\n\n\n## Examples\n\n``` javascript\nvar merge = require( 'utils-merge2' )(),\n\trules = require( 'eslint-rules-nodejs' ),\n\tRULES = require( './existing_rules.json' );\n\n// Merge the rules for Node.js into an existing ESLint rule set...\nRULES = merge( RULES, rules );\n\nconsole.dir( RULES );\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n## Tests\n\n### Unit\n\nUnit tests use the [Mocha](http://mochajs.org/) test framework with [Chai](http://chaijs.com) assertions. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul](https://github.com/gotwarlost/istanbul) as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT).\n\n\n## Copyright\n\nCopyright \u0026copy; 2015. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/eslint-rules-nodejs.svg\n[npm-url]: https://npmjs.org/package/eslint-rules-nodejs\n\n[travis-image]: http://img.shields.io/travis/kgryte/eslint-rules-nodejs/master.svg\n[travis-url]: https://travis-ci.org/kgryte/eslint-rules-nodejs\n\n[codecov-image]: https://img.shields.io/codecov/c/github/kgryte/eslint-rules-nodejs/master.svg\n[codecov-url]: https://codecov.io/github/kgryte/eslint-rules-nodejs?branch=master\n\n[dependencies-image]: http://img.shields.io/david/kgryte/eslint-rules-nodejs.svg\n[dependencies-url]: https://david-dm.org/kgryte/eslint-rules-nodejs\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/kgryte/eslint-rules-nodejs.svg\n[dev-dependencies-url]: https://david-dm.org/dev/kgryte/eslint-rules-nodejs\n\n[github-issues-image]: http://img.shields.io/github/issues/kgryte/eslint-rules-nodejs.svg\n[github-issues-url]: https://github.com/kgryte/eslint-rules-nodejs/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgryte%2Feslint-rules-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgryte%2Feslint-rules-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgryte%2Feslint-rules-nodejs/lists"}