{"id":21148970,"url":"https://github.com/macopedia/typo3_cgl_helpers","last_synced_at":"2026-02-11T13:02:06.916Z","repository":{"id":149172796,"uuid":"109810385","full_name":"macopedia/typo3_cgl_helpers","owner":"macopedia","description":"Configuration files for PHPStrom providing TYPO3 CGL related settings","archived":false,"fork":false,"pushed_at":"2017-11-22T16:12:47.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-03T01:04:17.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/macopedia.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":"2017-11-07T08:56:07.000Z","updated_at":"2018-03-29T13:43:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cf8a185-ba3d-4e27-8971-03a6a0f833d1","html_url":"https://github.com/macopedia/typo3_cgl_helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macopedia/typo3_cgl_helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macopedia%2Ftypo3_cgl_helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macopedia%2Ftypo3_cgl_helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macopedia%2Ftypo3_cgl_helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macopedia%2Ftypo3_cgl_helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macopedia","download_url":"https://codeload.github.com/macopedia/typo3_cgl_helpers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macopedia%2Ftypo3_cgl_helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29333155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T12:42:24.625Z","status":"ssl_error","status_checked_at":"2026-02-11T12:41:23.344Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-20T09:30:04.958Z","updated_at":"2026-02-11T13:02:06.900Z","avatar_url":"https://github.com/macopedia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# typo3_cgl_helpers\nConfiguration files for PHPStrom providing TYPO3 CGL related settings\n\nFile `PHPStorm_TYPO3_code_sheme.xml` contains PHPStorm code scheme definition for PHP (PSR2)\nand JS (based on AirBnB).\nNot all rules are possible to set in PHPStrom, but the basics are there. Thanks to that you can use *Code* =\u003e *Reformat Code*\noption for JS files too.\n\n## How to import the configuration to PHPStorm\n\n1) Go to *Settings* =\u003e *Editor* =\u003e *Code Style*\n2) Click on the gear icon by 'Scheme'\n3) Select *Import Scheme* =\u003e *Intellij IDEA code style XML*\n4) Select File `PHPStorm_TYPO3_code_sheme.xml`\n\n## How to setup AirBnB JS Code Style inspections using JSCS\n1) Install JSCS (-g means globally)\n`npm install jscs -g`\n2) Go to *Settings* =\u003e *Languages \u0026 Frameworks* =\u003e *JavaScript* =\u003e *Code Quality Tools* \u003e *JSCS*\n3) Check *Enable*\n4) Configure node interpreter (e.g. `/usr/bin/node`)\n5) Set JSCS package (e.g. `/usr/local/lib/node_modules/jscs`)\n6) Select *Airbnb* from the *Code style preset* list \n7) Enjoy\n\n## Disable Default PHPStorm inspections which are in conflict with Airbnb style\n1) Go to *Settings* =\u003e *Editor* =\u003e *Inspections*\n2) Look for *Unneeded last comma in object literal* and *Unneeded last comma in array literal*\n3) Uncheck them\n\n## Some random notes on Airbnb styles\nWe should have consistent indentation of the requirejs modules content (body of the function), independently from whether we have many (multiline) dependencies, or just a few. \nThis way if we add one additional dependency and would need to wrap them in few lines, we dont need to reformat the whole file.\n\neg.\n```\ndefine(['jquery', 'd3', 'TYPO3/CMS/Backend/Icons'],\n  function ($, d3, Icons) {\n    'use strict';\n\n    var dd = 3;\n  });\n```\n```\ndefine(\n  [\n    'jquery',\n    'd3',\n    'TYPO3/CMS/Backend/ContextMenu',\n    'TYPO3/CMS/Backend/Modal',\n    'TYPO3/CMS/Backend/Severity',\n    'TYPO3/CMS/Backend/Notification',\n    'TYPO3/CMS/Backend/Icons',\n    'TYPO3/CMS/Lang/Lang',\n  ],\n  function ($, d3, ContextMenu, Modal, Severity, Notification, Icons) {\n    'use strict';\n\n    var dd = 3;\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacopedia%2Ftypo3_cgl_helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacopedia%2Ftypo3_cgl_helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacopedia%2Ftypo3_cgl_helpers/lists"}