{"id":17094040,"url":"https://github.com/fuhlig/stylelint-config-copilot","last_synced_at":"2025-04-12T22:54:44.571Z","repository":{"id":34914989,"uuid":"187383501","full_name":"fuhlig/stylelint-config-copilot","owner":"fuhlig","description":"Shareable stylelint config for standard and plugin rules. Highly opinionated.","archived":false,"fork":false,"pushed_at":"2024-12-15T02:23:11.000Z","size":4876,"stargazers_count":3,"open_issues_count":13,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:54:42.447Z","etag":null,"topics":["code-conventions","linter-config","scss","stylelint","stylelint-config"],"latest_commit_sha":null,"homepage":"","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/fuhlig.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}},"created_at":"2019-05-18T16:57:18.000Z","updated_at":"2024-10-01T11:22:27.000Z","dependencies_parsed_at":"2024-09-20T18:01:50.618Z","dependency_job_id":"dbb9cc51-877e-40dc-af35-2ce2e57d3074","html_url":"https://github.com/fuhlig/stylelint-config-copilot","commit_stats":{"total_commits":578,"total_committers":10,"mean_commits":57.8,"dds":0.7041522491349481,"last_synced_commit":"82d466a7db1c74862b62399aefe0619ccf6b059f"},"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuhlig%2Fstylelint-config-copilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuhlig%2Fstylelint-config-copilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuhlig%2Fstylelint-config-copilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuhlig%2Fstylelint-config-copilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuhlig","download_url":"https://codeload.github.com/fuhlig/stylelint-config-copilot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643047,"owners_count":21138353,"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":["code-conventions","linter-config","scss","stylelint","stylelint-config"],"created_at":"2024-10-14T14:10:04.871Z","updated_at":"2025-04-12T22:54:44.553Z","avatar_url":"https://github.com/fuhlig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-config-copilot [![CircleCI](https://circleci.com/gh/fuhlig/stylelint-config-copilot/tree/main.svg?style=svg)](https://circleci.com/gh/fuhlig/stylelint-config-copilot/tree/main)  [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)\n\n\n\n\u003e A copilot that helps you navigating through authoring styleesheets. Highly opinionated stylelint configurations.\n\n⚠ Current Status: ⚠\n\n_This project is very much work-in-progress. Right now it's about testing out different rules, combinations and plugins_\n\nCollection of shareable configurations for [Stylelint](https://stylelint.io/) and [Stylelint plugins](https://stylelint.io/user-guide/plugins).\n\n\n\nThe configs are separated into dedicated packages:\n- [base](/packages/stylelint-config-copilot-base): Stylelint's built-in rules\n- [scss](/packages/stylelint-config-copilot-scss): Sass (scss syntax) specific rules\n- [plugins](/packages/stylelint-config-copilot-plugins): rules from various Stylelint plugins\n- [order](/packages/stylelint-config-copilot-order) - order specific rules\n- [stylistic](/packages/stylelint-config-copilot-stylistic) - stylistic rules in plugin form (previously built-in Stylelint rules)\n\nUsage information are in the packages' documentations.\n\n## Usage\n\nSee the [official documentation on configuration](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md).\n\nExample configuration to extend copilot-configs. \n\n```js\nmodule.exports = {\n  extends: [\n    'stylelint-config-copilot-\u003cpackage\u003e',\n  ],\n\n  // enter files to ignore (e.g. dependencies, libs, styleguide styles)\n  ignoreFiles: [\n    '**/node_modules/**',\n  ],\n  \n  // define severity level\n  defaultSeverity: 'warning', \n  \n  // custom-rules \u0026 overwrites\n  rules: {\n  },\n};\n```\n\nThe `defaultSeverity` is set to `warning`. Some rules are set to `error`. \n\nWarnings are considered violations to coding guidelines while errors (may) cause defective code.\n\nWhile only errors exit with an exit code, using a _zero tolerance policy_ is recommended by setting `--max-warnings 0` (`--mw 0`) in combination with a [Git-Hook](https://git-scm.com/docs/githooks). To simplify the setup of hooks, consider using [husky](https://github.com/typicode/husky).\n\nLinting your stylesheets automated via CLI or during build is great, but linting warnings \u0026 errors as soon as they happen is the most effective. Consider using [editor plugins](https://stylelint.io/user-guide/complementary-tools/#editor-plugins) to get short feedback loops.\n\nUsing a linter for the first time or changed the config and it all turns into colorful warnings and errors? Don't worry - this is quite normal. Your code (and you) have to get used to the rules. Start small and adjust your code over time.\n\nIf you do not agree with a rule - change or disable it. When there are exceptions and the linter should be bypassed, [disable them selectively within the stylesheet](https://github.com/stylelint/stylelint/blob/master/docs/user-guide/configuration.md#turning-rules-off-from-within-your-css).\n\nUsing the [formatter](https://stylelint.io/user-guide/node-api#formatter), a report can be generated to go through the potential violations step-by-step.\n\n### Development\n\n#### Setup\n\n```bash\nnpm install\n```\n\n#### Test\nTest will run `ESLint` and find potentially unused Stylelint rules in the base config\n\n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuhlig%2Fstylelint-config-copilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuhlig%2Fstylelint-config-copilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuhlig%2Fstylelint-config-copilot/lists"}