{"id":17963330,"url":"https://github.com/kristerkari/stylelint-config-react-native-css-modules","last_synced_at":"2025-03-25T05:32:15.000Z","repository":{"id":29357893,"uuid":"121114722","full_name":"kristerkari/stylelint-config-react-native-css-modules","owner":"kristerkari","description":"Shareable stylelint config for React Native CSS modules","archived":false,"fork":false,"pushed_at":"2024-12-16T12:21:55.000Z","size":3732,"stargazers_count":7,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T06:34:01.668Z","etag":null,"topics":["css-modules","linter-config","react-native","stylelint"],"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/kristerkari.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-02-11T11:03:36.000Z","updated_at":"2024-10-13T15:16:31.000Z","dependencies_parsed_at":"2024-05-02T16:28:11.899Z","dependency_job_id":"54fdd738-08ce-4407-ba50-f5c47306afd0","html_url":"https://github.com/kristerkari/stylelint-config-react-native-css-modules","commit_stats":{"total_commits":121,"total_committers":3,"mean_commits":"40.333333333333336","dds":0.2975206611570248,"last_synced_commit":"1173188a847da01e9cc8e49f9585ddecffd4d783"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-config-react-native-css-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-config-react-native-css-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-config-react-native-css-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-config-react-native-css-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristerkari","download_url":"https://codeload.github.com/kristerkari/stylelint-config-react-native-css-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191601,"owners_count":20575247,"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":["css-modules","linter-config","react-native","stylelint"],"created_at":"2024-10-29T11:33:26.838Z","updated_at":"2025-03-25T05:32:14.553Z","avatar_url":"https://github.com/kristerkari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-config-react-native-css-modules\n\n[![NPM version](http://img.shields.io/npm/v/stylelint-config-react-native-css-modules.svg)](https://www.npmjs.org/package/stylelint-config-react-native-css-modules)\n[![Build Status](https://github.com/kristerkari/stylelint-config-react-native-css-modules/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-config-react-native-css-modules/actions?workflow=Tests)\n[![Downloads per month](https://img.shields.io/npm/dm/stylelint-config-react-native-css-modules.svg)](http://npmcharts.com/compare/stylelint-config-react-native-css-modules?periodLength=30)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)\n\nShareable stylelint config for [React Native CSS modules](https://github.com/kristerkari/react-native-css-modules)\n\n\u003cimg src=\"screenshots/linting.gif\" width=\"640\"\u003e\n\n## Installation and usage\n\nInstall `stylelint-config-react-native-css-modules` (and `stylelint` + `stylelint-react-native`, if you haven't done so yet):\n\n```\nyarn add stylelint stylelint-react-native stylelint-config-react-native-css-modules --dev\n```\n\nor\n\n```\nnpm install stylelint stylelint-react-native stylelint-config-react-native-css-modules --save-dev\n```\n\nCreate the `.stylelintrc` config file (or open the existing one) and extend `stylelint-config-react-native-css-modules` config.\n\n```json\n{\n  \"extends\": \"stylelint-config-react-native-css-modules\",\n  \"rules\": {\n    \"selector-class-pattern\": \"^[a-z][a-zA-Z0-9]*$\"\n  }\n}\n```\n\n## Config for React Native + Web\n\nBy default the config is for React Native only, but if you want to share the styles between React Native and Web, extend the `stylelint-config-react-native-css-modules/web` config instead. This turns some of the errors to warnings to ensure compatibility with Web.\n\n```json\n{\n  \"extends\": \"stylelint-config-react-native-css-modules/web\",\n  \"rules\": {\n    \"selector-class-pattern\": \"^[a-z][a-zA-Z0-9]*$\"\n  }\n}\n```\n\nIf you want to turn off any of the included errors or warnings, set the rule's value to `null`:\n\n```json\n{\n  \"extends\": \"stylelint-config-react-native-css-modules/web\",\n  \"rules\": {\n    \"react-native/font-weight-no-ignored-values\": null\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Fstylelint-config-react-native-css-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristerkari%2Fstylelint-config-react-native-css-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Fstylelint-config-react-native-css-modules/lists"}