{"id":25763892,"url":"https://github.com/bernankez/stylelint-config","last_synced_at":"2026-06-10T06:45:42.013Z","repository":{"id":149990782,"uuid":"620679542","full_name":"Bernankez/stylelint-config","owner":"Bernankez","description":"My Stylelint config presets","archived":false,"fork":false,"pushed_at":"2023-07-15T16:03:17.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T18:41:02.215Z","etag":null,"topics":["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/Bernankez.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":"2023-03-29T06:52:21.000Z","updated_at":"2023-07-18T09:25:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"30c9f063-c57a-4df7-b6fe-ce378b135107","html_url":"https://github.com/Bernankez/stylelint-config","commit_stats":{"total_commits":45,"total_committers":2,"mean_commits":22.5,"dds":0.4222222222222223,"last_synced_commit":"e03ddaf21a3faf7c994616cd0891ff909942e0f1"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2Fstylelint-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2Fstylelint-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2Fstylelint-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bernankez%2Fstylelint-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bernankez","download_url":"https://codeload.github.com/Bernankez/stylelint-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240926509,"owners_count":19879763,"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":["stylelint-config"],"created_at":"2025-02-26T20:19:32.961Z","updated_at":"2025-11-21T06:04:57.210Z","avatar_url":"https://github.com/Bernankez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @bernankez/stylelint-config\n\n[![npm](https://img.shields.io/npm/v/@bernankez/stylelint-config?color=red\u0026label=npm)](https://www.npmjs.com/package/@bernankez/stylelint-config)\n\n## Usage\n\n### Install\n\nYou will need stylelint 15.0.0 or higher as a devDependency.\n```bash\npnpm add -D stylelint @bernankez/stylelint-config\n```\n\n### Config `.stylelintrc.json`\n\n```json\n{\n  \"extends\": \"@bernankez/stylelint-config\"\n}\n```\n\n\u003e **Note**: It seems that the `ignoreFiles` in my stylelint-config is not having effect. You may add `.stylelintignore` manually.\n\u003e\n\u003e see https://stackoverflow.com/questions/75498883/stylelint-ignorefiles-not-working-includes-the-ignored-files-paths-always\n\n### Add script for package.json\n\nFor example:\n\n```json\n{\n  \"scripts\": {\n    \"stylelint\": \"stylelint **/**/*.css\",\n    \"stylelint:fix\": \"stylelint **/**/*.css --fix\"\n  }\n}\n```\n\nTo lint other file types, you need to add the file types manually to apply Stylelint. For example:\n\n```json\n{\n  \"scripts\": {\n    \"stylelint\": \"stylelint **/**/*.{css,vue}\",\n    \"stylelint:fix\": \"stylelint **/**/*.{css,vue} --fix\"\n  }\n}\n```\n\n### Config VS Code auto fix\n\nInstall [VS Code Stylelint extension](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint) and create `.vscode/settings.json` or add it to your global settings\n\n```json\n{\n  \"editor.codeActionsOnSave\": {\n    \"source.fixAll.stylelint\": true\n  },\n  // disable VS Code's built-in linters is optional\n  \"css.validate\": false,\n  \"scss.validate\": false,\n  \"less.validate\": false,\n  // add extensions you would like to lint on save\n  \"stylelint.validate\": [\n    \"css\",\n    \"postcss\",\n    \"vue\",\n    \"html\"\n  ]\n}\n```\n\n### Using with SCSS\n\nSet your `.stylelintrc.json` to:\n```json\n{\n  \"extends\": \"@bernankez/stylelint-config/scss\"\n}\n```\n\n### Lint Staged\n\nIf you want to apply lint and auto-fix before every commit, you can add the following to your `package.json`:\n\n```json\n{\n  \"simple-git-hooks\": {\n    \"pre-commit\": \"pnpm lint-staged\"\n  },\n  \"lint-staged\": {\n    \"*.{css,scss,less,vue}\": \"stylelint --fix\",\n    // if you are using ESLint also.\n    \"*\": \"eslint --fix\"\n  }\n}\n```\n\nand then\n\n```bash\npnpm add -D lint-staged simple-git-hooks\n```\n\n### ESLint\n\nIt's recommended to use Stylelint with ESLint. Here's my [eslint-config](https://github.com/Bernankez/eslint-config).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernankez%2Fstylelint-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernankez%2Fstylelint-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernankez%2Fstylelint-config/lists"}