{"id":17129454,"url":"https://github.com/theoephraim/lint-fix-nodemon","last_synced_at":"2026-02-24T03:05:23.420Z","repository":{"id":49670504,"uuid":"242410072","full_name":"theoephraim/lint-fix-nodemon","owner":"theoephraim","description":"Run ESLint+fix+nodemon without double restarts","archived":false,"fork":false,"pushed_at":"2022-02-13T02:11:59.000Z","size":147,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T20:14:08.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theoephraim.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":"2020-02-22T20:52:13.000Z","updated_at":"2022-02-26T17:54:38.000Z","dependencies_parsed_at":"2022-08-30T00:00:14.818Z","dependency_job_id":null,"html_url":"https://github.com/theoephraim/lint-fix-nodemon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoephraim%2Flint-fix-nodemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoephraim%2Flint-fix-nodemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoephraim%2Flint-fix-nodemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoephraim%2Flint-fix-nodemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theoephraim","download_url":"https://codeload.github.com/theoephraim/lint-fix-nodemon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246231518,"owners_count":20744508,"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-14T19:09:41.762Z","updated_at":"2026-02-24T03:05:18.388Z","avatar_url":"https://github.com/theoephraim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lint-fix-nodemon\n\n\u003e Watch your files and run ESLint + fix + nodemon on save\n\n**WHY DO YOU NEED THIS?**\n\n1. Avoid a double restart when eslint fixes your files (nodemon would normally detect the initial change and then the fix change)\n2. Don't get stuck if linting or starting the server fails - we just keep watching and trying again on each save\n\n### Installation\n`npm install lint-fix-nodemon --save-dev` or `yarn add lint-fix-nodemon -D`\n\n### Setup\nYou can run it with `npx lint-fix-nodemon` or normally you should just add a script to your package.json file.\n\n_I usually name it \"dev\" (`\"dev\": \"lint-fix-nodemon\"`) so you can run `npm run dev`_\n\n### Configuration\n\nBy default, it will assume nodemon should run the script specified as your \"main\" in your package.json file.\nOtherwise you can also pass it in as an argument -- for example: `lint-fix-nodemon ./api/start.js`\n\nOther configuration in terms of what files to watch and lint will be read from the [nodemonConfig](https://github.com/remy/nodemon#packagejson) entry in your package.json file\n\nIt will automatically ignore your node_modules folder and any files/folders that start with \".\"\n\n\n### Setting ESLint extensions\n\nNormally when running eslint from the cli, you must specify the extensions you wish to run on, or it will automatically just default to .js files only.\n\nTo avoid having to set it again, we copy the extension settings from the nodemon config set in package.json file.\nThis may mean you need to add some ignore rules in your eslintrc file, to ignore certain file types that you don't want to lint, but you do want changes to cause a nodemon restart.\n\n\n### An example package.json file\n```\n{\n  ...\n  \"scripts\": {\n    \"dev\": \"lint-fix-nodemon api/start.js\",\n    ...\n  },\n  \"nodemonConfig\": {\n    \"watch\": [\"api/\"],\n    \"ignore\": [\"api/scripts\"],\n    \"ext\": \"js,json,ts\"\n  },\n  ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoephraim%2Flint-fix-nodemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoephraim%2Flint-fix-nodemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoephraim%2Flint-fix-nodemon/lists"}