{"id":16845710,"url":"https://github.com/othree/osemistandard","last_synced_at":"2025-03-18T06:26:39.302Z","repository":{"id":66786664,"uuid":"86537415","full_name":"othree/osemistandard","owner":"othree","description":"Semistandard plus TypeScript and React.","archived":false,"fork":false,"pushed_at":"2017-04-14T10:01:00.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T12:52:01.143Z","etag":null,"topics":[],"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/othree.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}},"created_at":"2017-03-29T04:10:55.000Z","updated_at":"2017-04-14T10:01:01.000Z","dependencies_parsed_at":"2023-07-03T02:23:33.369Z","dependency_job_id":null,"html_url":"https://github.com/othree/osemistandard","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"333b7f5b4fdf2b0e702cb7759c760ca7bdb6cab6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fosemistandard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fosemistandard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fosemistandard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fosemistandard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othree","download_url":"https://codeload.github.com/othree/osemistandard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244168229,"owners_count":20409484,"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-10-13T12:59:45.156Z","updated_at":"2025-03-18T06:26:39.278Z","avatar_url":"https://github.com/othree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript O-Standard Style\n\nStandard + react + `.tsx` support.\n\nBased on and inspired by [Flet/semistandard](https://github.com/Flet/semistandard)\n\n## Usage\n\nThe easiest way to use JavaScript O-Standard Style to check your code is to install it\nglobally as a Node command line program. To do so, simply run the following command in\nyour terminal (flag `-g` installs `standard` globally on your system, omit it if you want\nto install in the current working directory):\n\n```bash\nnpm install ostandard -g\n```\n\nAfter you've done that you should be able to use the `ostandard` program. The simplest use\ncase would be checking the style of all JavaScript files in the current working directory:\n\n```\n$ ostandard\nError: Use JavaScript Standard Style\n  lib/torrent.js:950:11: Expected '===' and instead saw '=='.\n```\n\n### Custom Parser\nTo use a custom parser, install it from npm (example: `npm install\nbabel-eslint`) and add this to your package.json:\n\n```json\n{\n  \"ostandard\": {\n    \"parser\": \"babel-eslint\"\n  }\n}\n```\n\n### [Vim](http://www.vim.org/)\n\nInstall **[Syntastic][vim-1]** and add these lines to `.vimrc`:\n\n```vim\nlet g:syntastic_javascript_checkers=['standard']\nlet g:syntastic_javascript_standard_generic = 1\nlet g:syntastic_javascript_standard_exec = 'ostandard'\nlet g:syntastic_typescript_checkers=['standard']\nlet g:syntastic_typescript_standard_generic = 1\nlet g:syntastic_typescript_standard_exec = 'ostandard'\n```\n\nFor automatic formatting on save, add these two lines to `.vimrc`:\n\n```vim\nautocmd bufwritepost *.js silent !ostandard % --fix\nset autoread\n```\n\n[vim-1]: https://github.com/scrooloose/syntastic\n\n### Ignoring files\n\nJust like in `standard`, The paths `node_modules/**`, `*.min.js`, `bundle.js`, `coverage/**`, hidden files/folders\n(beginning with `.`), and all patterns in a project's root `.gitignore` file are\nautomatically excluded when looking for `.js` files to check.\n\nSometimes you need to ignore additional folders or specific minfied files. To do that, add\na `ostandard.ignore` property to `package.json`:\n\n```json\n\"ostandard\": {\n  \"ignore\": [\n    \"**/out/\",\n    \"/lib/select2/\",\n    \"/lib/ckeditor/\",\n    \"tmp.js\"\n  ]\n}\n```\n\n### Make it look `snazzy`\nIf you want prettier output, just install the [`snazzy`](https://github.com/feross/snazzy) package and pipe `ostandard` to it:\n\n```bash\n$ ostandard --verbose | snazzy\n```\n\nSee [airbnb/javascript] for more information.\n\n[airbnb/javascript]: https://github.com/airbnb/javascript\n\n### `O` stands for?\n\n**O** is first letter of my id. Also sound like 'all', means *JavaScript* and *TypeScript*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fosemistandard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothree%2Fosemistandard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fosemistandard/lists"}