{"id":16292482,"url":"https://github.com/exogen/stylis-plugin-stylelint","last_synced_at":"2025-04-09T08:47:02.830Z","repository":{"id":66194758,"uuid":"123738204","full_name":"exogen/stylis-plugin-stylelint","owner":"exogen","description":"Run stylelint as Stylis middleware.","archived":false,"fork":false,"pushed_at":"2018-03-04T06:13:01.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T11:15:42.445Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exogen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"exogen","buy_me_a_coffee":"mosswood"}},"created_at":"2018-03-03T22:52:30.000Z","updated_at":"2018-04-29T12:53:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b57e3c7-97d6-46dd-8bcb-2252ac0b9b20","html_url":"https://github.com/exogen/stylis-plugin-stylelint","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"b27f3dc8a885a8f68f73b976602a038d3f1227c4"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylis-plugin-stylelint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylis-plugin-stylelint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylis-plugin-stylelint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exogen%2Fstylis-plugin-stylelint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exogen","download_url":"https://codeload.github.com/exogen/stylis-plugin-stylelint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008617,"owners_count":21032554,"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-10T20:07:04.017Z","updated_at":"2025-04-09T08:47:02.814Z","avatar_url":"https://github.com/exogen.png","language":"JavaScript","funding_links":["https://github.com/sponsors/exogen","https://buymeacoffee.com/mosswood"],"categories":[],"sub_categories":[],"readme":"# stylis-plugin-stylelint\n\nRun stylelint as a Stylis plugin. The plugin runs against the CSS content during\nthe `-1` stage.\n\n## Usage\n\n```js\nimport stylis from 'stylis'\nimport stylelintPlugin from 'stylis-plugin-stylelint'\n\nstylis.use(stylelintPlugin(/* options */))\n```\n\n### Options\n\n#### failOnError\n\nWhether to throw an error from the plugin if stylelint finds any errors.\n\nDefault: `false`\n\n#### stripIndent\n\nWhether to strip indentation from the CSS string before linting. Uses the\n[strip-indent](https://github.com/sindresorhus/strip-indent) module.\n\nDefault: `true`\n\n#### formatter\n\nThe stylelint formatter to use.\n\nDefault: `'string'`\n\n#### getLintOptions\n\nA custom function to add options to\n[the object passed to stylelint](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/node-api.md#options).\nThe result will be merged with (and will overwrite) existing options set by this\nplugin.\n\nThe function is called with a `meta` object with values from stylis:\n\n`{ selectors, parent, line, column, length }`\n\nDefault: `undefined`\n\n### resultCollector\n\nIf `failOnError` is false but there is an error, this function will be called\nwith the results. You can use this to extract the errors that occurred and\nreport them in a nicer way without throwing.\n\nDefault: `undefined`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fstylis-plugin-stylelint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexogen%2Fstylis-plugin-stylelint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexogen%2Fstylis-plugin-stylelint/lists"}