{"id":15290277,"url":"https://github.com/npm/lint","last_synced_at":"2025-10-07T03:32:38.027Z","repository":{"id":42465863,"uuid":"368653252","full_name":"npm/lint","owner":"npm","description":"lint the npmcli way","archived":true,"fork":false,"pushed_at":"2022-04-04T17:32:35.000Z","size":360,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-01T16:06:48.992Z","etag":null,"topics":["npm-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.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":"2021-05-18T20:04:35.000Z","updated_at":"2024-03-15T12:31:18.000Z","dependencies_parsed_at":"2022-09-13T17:01:21.583Z","dependency_job_id":null,"html_url":"https://github.com/npm/lint","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Flint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235586082,"owners_count":19014028,"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":["npm-cli"],"created_at":"2024-09-30T16:06:43.306Z","updated_at":"2025-10-07T03:32:32.761Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @npmcli/lint\n\nLint the npmcli way\n\n## USAGE\n\nThis package contains two executable scripts.  One for linting your code,\nand the other for automatically setting up your package.json to lint code\nat convenient times.\n\n### Quick and Opinionated\n\n```\nnpm exec --package @npmcli/lint -c npmcli-lint-init\n```\n\nThis installs the dev dependency, removes an existing `.eslintrc.json` and\nexisting eslint dependencies, and forcibly sets up all your scripts\nappropriately.\n\n### Customizable Approach\n\n```\nnpm i -D @npmcli/lint\n\n# setup package.json with the linting scripts for npm run\nnpm exec --package @npmcli/lint -c npmcli-lint-setup\n\n# setup package.json, clobbering any existing scripts\nnpm exec --package @npmcli/lint -c 'npmcli-lint-setup --force'\n\n# just run manually, linting with our style rules\nnpm exec --package @npmcli/lint -- # any args to eslint go here...\n```\n\nThe setup script adds the following script targets for `npm run`.  If a\nscript already exists in that spot, it is not modified unless `--force` is\nprovided.\n\n* `npmclilint` - runs `npmcli-lint`\n* `lint` - runs `npm run npmclilint -- *.js lib/**/*.js test/**/*.js`\n* `lintfix` - runs `npm run lint -- --fix` to automatically fix linting\n  errors if possible.\n* `posttest` - runs `npm run lint --` to lint automatically after running\n  tests)\n* `postsnap` - runs `npm run lintfix --` to fix lint errors automatically\n  when generating snapshots with `tap`.\n\nAppropriate versions of eslint and necessary plugins are listed as peer\ndependencies, so that they will be loaded in the project and found where\nneeded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Flint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Flint/lists"}