{"id":15405265,"url":"https://github.com/fnando/codestyle","last_synced_at":"2026-04-11T14:02:31.601Z","repository":{"id":66031418,"uuid":"222366566","full_name":"fnando/codestyle","owner":"fnando","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-27T22:17:57.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T01:54:06.866Z","etag":null,"topics":["prettier","react","react-native","tsconfig","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnando.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-18T04:55:15.000Z","updated_at":"2021-12-27T22:17:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"402c7454-2ada-4d3e-9714-62790c7059a0","html_url":"https://github.com/fnando/codestyle","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"16e99f0ce25afad786e13698d24eb23b7ca700a9"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/fnando/codestyle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcodestyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcodestyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcodestyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcodestyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/codestyle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fcodestyle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745659,"owners_count":24813515,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["prettier","react","react-native","tsconfig","typescript"],"created_at":"2024-10-01T16:15:46.578Z","updated_at":"2025-10-09T02:47:03.046Z","avatar_url":"https://github.com/fnando.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fnando/codestyle\n\n## Installation\n\n```\n$ yarn add -D @fnando/codestyle\n```\n\n## Usage\n\n### Typescript\n\nThere are 3 distinct configuration files.\n\n- `@fnando/codestyle`: the base file, which covers regular TypeScript, as well as React's.\n- `@fnando/codestyle/react-native`: a React Native configuration that extends the base file.\n- `@fnando/codestyle/package`: a React Native configuration that emits code for packages.\n\nCreate a file `tsconfig.json` with the following lines, extending from the file you care about. Don't forget to specify the source directory.\n\n```json\n{\n  \"extends\": \"@fnando/codestyle\",\n  \"include\": [\"src\"]\n}\n```\n\n### Prettier\n\nCreate a file `.prettierrc.js` with the following lines:\n\n```json\nmodule.exports = require(\"@fnando/codestyle/prettier.json\");\n```\n\n### ESLint\n\n[Follow instructions](https://github.com/fnando/eslint-config-codestyle).\n\n### Jest\n\nCreate a file `jest.config.js` with the following lines:\n\n```json\nmodule.exports = require(\"@fnando/codestyle/react/jest\");\n```\n\nYou can also use `\"@fnando/codestyle/typescript/jest\"` for Jest configuration without React.\n\n## License\n\nCopyright (c) 2019 Nando Vieira\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fcodestyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fcodestyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fcodestyle/lists"}