{"id":17963344,"url":"https://github.com/kristerkari/stylelint-react-native","last_synced_at":"2025-04-05T01:05:49.911Z","repository":{"id":29279987,"uuid":"121014038","full_name":"kristerkari/stylelint-react-native","owner":"kristerkari","description":"A collection of React Native specific linting rules for stylelint (in a form of a plugin).","archived":false,"fork":false,"pushed_at":"2024-12-16T06:17:48.000Z","size":2611,"stargazers_count":57,"open_issues_count":10,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T00:07:47.584Z","etag":null,"topics":["linter-plugin","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-10T12:36:26.000Z","updated_at":"2024-10-13T15:17:29.000Z","dependencies_parsed_at":"2024-02-11T23:31:08.600Z","dependency_job_id":"8c577f35-2a3b-40f6-9640-78b04332e728","html_url":"https://github.com/kristerkari/stylelint-react-native","commit_stats":{"total_commits":137,"total_committers":5,"mean_commits":27.4,"dds":0.3795620437956204,"last_synced_commit":"04ae3373ba9175b07cda30648d73347987ea5675"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kristerkari%2Fstylelint-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kristerkari","download_url":"https://codeload.github.com/kristerkari/stylelint-react-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271525,"owners_count":20911587,"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":["linter-plugin","react-native","stylelint"],"created_at":"2024-10-29T11:34:23.780Z","updated_at":"2025-04-05T01:05:49.889Z","avatar_url":"https://github.com/kristerkari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stylelint-react-native\n\nA collection of React Native specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of a plugin).\n\n[![NPM version](https://img.shields.io/npm/v/stylelint-react-native.svg)](https://www.npmjs.com/package/stylelint-react-native)\n[![Build Status](https://github.com/kristerkari/stylelint-react-native/workflows/Tests/badge.svg)](https://github.com/kristerkari/stylelint-react-native/actions?workflow=Tests)\n[![Downloads per month](https://img.shields.io/npm/dm/stylelint-react-native.svg)](http://npmcharts.com/compare/stylelint-react-native?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\n## Installation and usage\n\nInstall `stylelint-react-native` (and `stylelint`, if you haven't done so yet):\n\n```\nyarn add stylelint stylelint-react-native --dev\n```\n\nor\n\n```\nnpm install stylelint stylelint-react-native --save-dev\n```\n\nCreate the `.stylelintrc` config file (or open the existing one), add `stylelint-react-native` to the plugins array and the rules you need to the rules list. All rules from `stylelint-react-native` need to be namespaced with `react-native`.\n\n```json\n{\n  \"plugins\": [\"stylelint-react-native\"],\n  \"rules\": {\n    \"react-native/css-property-no-unknown\": true\n  }\n}\n```\n\nPlease refer to [stylelint docs](http://stylelint.io/user-guide/) for the detailed info on using this linter plugin.\n\n## List of rules\n\n### General rules\n\n- [`font-weight-no-ignored-values`](./src/rules/font-weight-no-ignored-values/README.md): Disallow valid `font-weight` values that work on iOS, but are ignored and get mapped to `normal` or `bold` weight on Android.\n\n---\n\n### css- rules (for tools like styled-components)\n\nThese rules are meant to be used with tools that allow you to write CSS when using React Native, e.g. [styled-components](https://www.styled-components.com/), [React Native CSS modules](https://github.com/kristerkari/react-native-css-modules), etc.\n\n- [`css-property-no-unknown`](./src/rules/css-property-no-unknown/README.md): Disallow unknown React Native CSS properties.\n\n---\n\n### style- rules (for React Native's built-in styling)\n\nThese rules are meant to be used when styling with React Native's built-in styling ([StyleSheet](https://facebook.github.io/react-native/docs/stylesheet)), or with tools that use React Native's default styling.\n\n- [`style-property-no-unknown`](./src/rules/style-property-no-unknown/README.md): Disallow unknown React Native Style properties.\n\n## Help out\n\nThere work on the plugin's rules is still in progress, so if you feel like it, you're welcome to help out in any of these (the plugin follows stylelint guidelines so most part of this is based on its docs):\n\n- Create, enhance, and debug rules (see stylelint's guide to \"[Working on rules](https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/rules.md)\").\n- Improve documentation.\n- Chime in on any open issue or pull request.\n- Open new issues about your ideas on new rules, or for how to improve the existing ones, and pull requests to show us how your idea works.\n- Add new tests to absolutely anything.\n- Work on improving performance of rules.\n- Contribute to [stylelint](https://github.com/stylelint/stylelint)\n- Spread the word.\n\nWe communicate via [issues](https://github.com/kristerkari/stylelint-react-native/issues) and [pull requests](https://github.com/kristerkari/stylelint-react-native/pulls).\n\nThere is also [stackoverflow](http://stackoverflow.com/questions/tagged/stylelint), which would be the preferred QA forum.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Fstylelint-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkristerkari%2Fstylelint-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkristerkari%2Fstylelint-react-native/lists"}