{"id":19639910,"url":"https://github.com/rodsarhan/eslint-plugin-react-native-unistyles","last_synced_at":"2025-04-28T11:30:54.003Z","repository":{"id":246886912,"uuid":"824434072","full_name":"RodSarhan/eslint-plugin-react-native-unistyles","owner":"RodSarhan","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-17T12:45:09.000Z","size":547,"stargazers_count":15,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:19:48.633Z","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/RodSarhan.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":"2024-07-05T06:09:35.000Z","updated_at":"2025-03-31T19:06:44.000Z","dependencies_parsed_at":"2024-12-17T13:27:37.002Z","dependency_job_id":"8f2d33cb-07c9-4498-aed3-0567b8d6b430","html_url":"https://github.com/RodSarhan/eslint-plugin-react-native-unistyles","commit_stats":null,"previous_names":["rodsarhan/eslint-plugin-react-native-unistyles"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodSarhan%2Feslint-plugin-react-native-unistyles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodSarhan%2Feslint-plugin-react-native-unistyles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodSarhan%2Feslint-plugin-react-native-unistyles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodSarhan%2Feslint-plugin-react-native-unistyles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RodSarhan","download_url":"https://codeload.github.com/RodSarhan/eslint-plugin-react-native-unistyles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251304701,"owners_count":21567925,"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-11-11T14:03:44.176Z","updated_at":"2025-04-28T11:30:53.988Z","avatar_url":"https://github.com/RodSarhan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"react-native-unistyles\" src=\"assets/banner.png\"\u003e\n\n# ESLint plugin for React Native Unistyles\n\n![NPM Downloads](https://img.shields.io/npm/d18m/eslint-plugin-react-native-unistyles) [![GitHub Repo stars](https://img.shields.io/github/stars/RodSarhan/eslint-plugin-react-native-unistyles?style=social)](https://github.com/RodSarhan/eslint-plugin-react-native-unistyles) ![NPM Version](https://img.shields.io/npm/v/eslint-plugin-react-native-unistyles) [![License](https://img.shields.io/github/license/RodSarhan/eslint-plugin-react-native-unistyles)](https://github.com/RodSarhan/eslint-plugin-react-native-unistyles/blob/main/LICENSE)\n\n[React Native Unistyles](https://github.com/jpudysz/react-native-unistyles) linting rules for ESLint. This repository is structured like (and contains code from) [eslint-plugin-react-native](https://github.com/Intellicode/eslint-plugin-react-native).\n\n## Supported Versions\n\nThis plugin only supports Unistyles v2 for now, v3 support will be added once v3 is stable and out of beta\n\n## Installation\n\nInstall eslint-plugin-react-native-unistyles\n\n```sh\nyarn add eslint-plugin-react-native-unistyles -D\n```\n\n## Configuration\n\nAdd `plugins` section and specify react-native-unistyles as a plugin.\n\n```json\n{\n  \"plugins\": [\"react-native-unistyles\"]\n}\n```\n\nIf it is not already the case you must also configure `ESLint` to support JSX.\n\n```json\n{\n  \"parserOptions\": {\n    \"ecmaFeatures\": {\n      \"jsx\": true\n    }\n  }\n}\n```\n\nThen, enable all of the rules that you would like to use.\n\n```json\n{\n  \"rules\": {\n    \"react-native-unistyles/no-unused-styles\": \"warn\",\n    \"react-native-unistyles/sort-styles\": [\n      \"warn\",\n      \"asc\",\n      { \"ignoreClassNames\": false, \"ignoreStyleProperties\": false }\n    ],\n  }\n}\n```\n\n## List of supported rules\n\n- [no-unused-styles](docs/rules/no-unused-styles.md): Detect `createStyleSheet` styles which are not used in your React components\n- [sort-styles](docs/rules/sort-styles.md): Detect `createStyleSheet` styles which are not in correct sort order\n\n## Shareable configurations\n\n### All\n\nThis plugin also exports an `all` configuration that includes every available rule.\n\n```js\n{\n  \"plugins\": [\n    /* ... */\n    \"react-native-unistyles\"\n  ],\n  \"extends\": [/* ... */, \"plugin:react-native-unistyles/all\"]\n}\n```\n\n**Note**: These configurations will import `eslint-plugin-react-native-unistyles` and enable JSX in [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodsarhan%2Feslint-plugin-react-native-unistyles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodsarhan%2Feslint-plugin-react-native-unistyles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodsarhan%2Feslint-plugin-react-native-unistyles/lists"}