{"id":18338865,"url":"https://github.com/tableflip/code-style","last_synced_at":"2026-01-20T06:33:46.304Z","repository":{"id":12821974,"uuid":"15497146","full_name":"tableflip/code-style","owner":"tableflip","description":"tableflip code style guidelines. Intended to be a working document. Changes MUST be discussed before pushed.","archived":false,"fork":false,"pushed_at":"2014-01-21T12:11:01.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T20:46:19.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/tableflip.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}},"created_at":"2013-12-28T18:40:49.000Z","updated_at":"2014-01-21T12:11:01.000Z","dependencies_parsed_at":"2022-08-27T00:01:43.865Z","dependency_job_id":null,"html_url":"https://github.com/tableflip/code-style","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tableflip/code-style","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fcode-style","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fcode-style/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fcode-style/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fcode-style/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tableflip","download_url":"https://codeload.github.com/tableflip/code-style/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fcode-style/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-05T20:15:48.287Z","updated_at":"2026-01-20T06:33:46.290Z","avatar_url":"https://github.com/tableflip.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"JavaScript\n===\n\n* Indent with two spaces\n* No trailing whitespace\n* Block open curlys (`{`) start on the same line\n* `else` and `else if` continue on same line as block closing curly e.g. `} else if (foo) {`\n* _Always_ use curlys with conditionals and loops\n* Single space before opening parens and after closing parens e.g. `function () {`, `if (x) {`\n* No semicolons, except when necessary\n* Comma last\n* Double quotes for strings, where it makes sense\n* Short variable names for short lived variables, longer descriptive names for variables with long lives\n* Use standard parameter names: `er` Error, `cb` Function callback, `opts` options Object, `e` Event\n* Callback functions should _always_ receive error object as first parameter\n* Write small functions\n* Return early from functions to avoid deep nesting of if-statements\n* Use lowerCamelCase for variables, properties and function names\n* Use UpperCamelCase for class names\n* Use UPPERCASE for Constants\n\nHTML\n===\n\n* Doctype always `\u003c!doctype html\u003e`\n* Indent with two spaces\n* Self closing tags have no trailing slash. i.e. `/\u003e` is wrong\n* Boolean attributes have no value e.g. `\u003cinput type=\"checkbox\" checked\u003e`\n\nCSS\n===\n\n* Indent with two spaces\n* Block open curlys (`{`) start on the same line\n* Use hyphen seperated class names and ids e.g. \"#main-nav\", \".last-item\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Fcode-style","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftableflip%2Fcode-style","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Fcode-style/lists"}