{"id":22672261,"url":"https://github.com/sequencemedia/eslint-merge","last_synced_at":"2025-06-27T13:39:30.804Z","repository":{"id":266846109,"uuid":"899489263","full_name":"sequencemedia/eslint-merge","owner":"sequencemedia","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-24T05:14:14.000Z","size":929,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T06:27:33.144Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sequencemedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-06T11:22:10.000Z","updated_at":"2025-06-24T05:14:18.000Z","dependencies_parsed_at":"2024-12-21T17:42:48.454Z","dependency_job_id":"9f5c157f-f670-4ea5-9286-6c83c6a1afa3","html_url":"https://github.com/sequencemedia/eslint-merge","commit_stats":null,"previous_names":["sequencemedia/eslint-merge"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/sequencemedia/eslint-merge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Feslint-merge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Feslint-merge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Feslint-merge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Feslint-merge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sequencemedia","download_url":"https://codeload.github.com/sequencemedia/eslint-merge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sequencemedia%2Feslint-merge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261622642,"owners_count":23185984,"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-12-09T16:18:30.785Z","updated_at":"2025-06-27T13:39:30.755Z","avatar_url":"https://github.com/sequencemedia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@sequencemedia/eslint-merge`\n\nMerge Flat Config for ESLint `v9`\n\n## Install\n\n```shell\nnpm i -D @sequencemedia/eslint-merge\n```\n\n## Use\n\nThe `merge` function combines two objects and returns the result\n\n```javascript\nimport merge from '@sequencemedia/eslint-merge'\n```\n\nThe first argument should be a config, and the second argument an object which contains your changes\n\n```javascript\nconst result = merge(sharedConfig, changes)\n```\n\nYou can easily achieve this with the _spread_ operator in your `eslint.config.*`\n\n```javascript\n/**\n *  You probably will use `import` to get this as a module!\n */\nconst sharedConfig = {\n  name: 'shared config',\n  files: [\n    '**/*.{js,mjs,cjs}'\n  ]\n}\n\nexport default [\n  {\n    ...sharedConfig,\n    files: [\n      'src/**/*.{mjs,cjs}'\n    ]\n  }\n]\n```\n\nBut! Sometimes you need to make _lots_ of changes, and many _spreads_ is hard to manage, and hard to read\n\n`@sequencemedia/eslint-merge` enables you to merge _just_ your changes\n\n```javascript\n/**\n *  Again, you will probably `import` this\n */\nconst sharedConfig = {\n  name: 'shared config',\n  files: [\n    '**/*.{js,mjs,cjs}'\n  ]\n}\n\nexport default [\n  merge(sharedConfig, {\n    files: [\n      'src/**/*.{mjs,cjs}'\n    ]\n  })\n]\n```\n\nIt's simpler to use _spread_ for small projects, but for large or complex configurations (or for producing your own shared configs) use `merge`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsequencemedia%2Feslint-merge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsequencemedia%2Feslint-merge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsequencemedia%2Feslint-merge/lists"}