{"id":17043557,"url":"https://github.com/duhaime/eslint-plugin-frontmatter","last_synced_at":"2026-04-10T07:42:50.175Z","repository":{"id":54275555,"uuid":"111154714","full_name":"duhaime/eslint-plugin-frontmatter","owner":"duhaime","description":"Remove YAML frontmatter from `.js` files before calling ESLint","archived":false,"fork":false,"pushed_at":"2021-02-27T14:33:40.000Z","size":37,"stargazers_count":0,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T05:27:28.516Z","etag":null,"topics":["eslint","eslint-plugin","jekyll","yaml"],"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/duhaime.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":"2017-11-17T21:58:22.000Z","updated_at":"2018-12-05T21:52:30.000Z","dependencies_parsed_at":"2022-08-13T10:40:48.742Z","dependency_job_id":null,"html_url":"https://github.com/duhaime/eslint-plugin-frontmatter","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/duhaime%2Feslint-plugin-frontmatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhaime%2Feslint-plugin-frontmatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhaime%2Feslint-plugin-frontmatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhaime%2Feslint-plugin-frontmatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duhaime","download_url":"https://codeload.github.com/duhaime/eslint-plugin-frontmatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245045908,"owners_count":20552087,"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":["eslint","eslint-plugin","jekyll","yaml"],"created_at":"2024-10-14T09:29:51.931Z","updated_at":"2026-04-10T07:42:45.148Z","avatar_url":"https://github.com/duhaime.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-frontmatter\n\n[![Build Status](https://travis-ci.org/duhaime/eslint-plugin-frontmatter.svg?branch=master)](https://travis-ci.org/duhaime/eslint-plugin-frontmatter)\n\n\nRemove [YAML frontmatter](https://jekyllrb.com/docs/frontmatter/) from `.js` files before calling ESLint. Given the following file:\n\n```js\n---\nprocess: true\n---\n\nconst cat = () =\u003e console.log('meow')\n```\n\nThis plugin removes the frontmatter and sends the remaining content to ESLint:\n\n```js\nconst cat = () =\u003e console.log('meow')\n```\n\nThe use case for this plugin was JavaScript development for a site built with [Jekyll](https://jekyllrb.com/).\n\n## Installation\n\nYou'll first need to install [ESLint](http://eslint.org):\n\n```bash\n$ npm i eslint --save-dev\n```\n\nNext, install `eslint-plugin-frontmatter`:\n\n```bash\n$ npm install eslint-plugin-frontmatter --save-dev\n```\n\n**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-frontmatter` globally.\n\n## Usage\n\nAdd `frontmatter` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\n    \"frontmatter\"\n  ]\n}\n```\n\nAfter adding this plugin, frontmatter will be removed from your JavaScript files before they're linted.\n\n## Tests\n\nTo start the tests, run:\n\n```bash\nnpm run test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduhaime%2Feslint-plugin-frontmatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduhaime%2Feslint-plugin-frontmatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduhaime%2Feslint-plugin-frontmatter/lists"}