{"id":19874429,"url":"https://github.com/strongloop/eslint-config-loopback","last_synced_at":"2025-03-01T01:24:11.674Z","repository":{"id":57228581,"uuid":"49533620","full_name":"strongloop/eslint-config-loopback","owner":"strongloop","description":"LoopBack's ESLint shareable configs.","archived":false,"fork":false,"pushed_at":"2019-04-08T11:57:39.000Z","size":50,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-02-11T18:04:53.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://eslint.org/docs/developer-guide/shareable-configs","language":null,"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/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2016-01-12T22:39:38.000Z","updated_at":"2020-04-12T19:10:17.000Z","dependencies_parsed_at":"2022-09-14T07:42:36.858Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/eslint-config-loopback","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Feslint-config-loopback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Feslint-config-loopback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Feslint-config-loopback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Feslint-config-loopback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/eslint-config-loopback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241302236,"owners_count":19940790,"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-11-12T16:23:18.508Z","updated_at":"2025-03-01T01:24:11.652Z","avatar_url":"https://github.com/strongloop.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-loopback\n\nLoopBack's ESLint shareable configs.\n\n## Usage\n\nAdd `eslint` and `eslint-config-loopback` to `devDependencies`:\n\n```\nnpm install -D eslint eslint-config-loopback\n```\n\nIn your project root, create/modify `.eslintrc`:\n\n```\n{\n  \"extends\": \"loopback\"\n}\n```\n\nThen in `package.json`, set your run script:\n\n```\n...\n\"scripts\": {\n  \"lint\": \"eslint .\"\n},\n...\n```\n\nThat's it. Try it out by running:\n\n```\nnpm run lint\n```\n\n\u003e It is recommended to set a `posttest` run script to auto lint after\n\u003e running tests:\n\u003e\n\u003e ```\n\u003e ...\n\u003e \"scripts\": {\n\u003e   \"lint\": \"eslint .\",\n\u003e   \"test\": \"mocha\",\n\u003e   \"posttest\": \"npm run lint\"\n\u003e },\n\u003e ...\n\u003e ```\n\n## Overriding rules\n\nTo override a particular rule, use the `rules` key:\n\n```\n{\n  \"extends\": \"loopback\",\n  \"rules\": {\n    \"comma-dangle\": \"off\"\n  }\n}\n```\n\nWhile adopting ESLint in existing projects, there may be too many errors to fix\nat once. In such cases, it may be desirable to modify the [`rule setting`](http://eslint.org/docs/user-guide/configuring.html#configuring-rules)\nof individual rules:\n\n- `\"off\"` - Turn the rule off\n- `\"warn\"` - Turn the rule on as a warning (doesn't affect exit code)\n- `\"error\"` - Turn the rule on as an error (exit code is 1 when triggered)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Feslint-config-loopback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Feslint-config-loopback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Feslint-config-loopback/lists"}