{"id":21553195,"url":"https://github.com/bbvaengineering/javascript","last_synced_at":"2025-04-10T07:50:20.931Z","repository":{"id":7822936,"uuid":"56583969","full_name":"BBVAEngineering/javascript","owner":"BBVAEngineering","description":"BBVA javascript style guide","archived":false,"fork":false,"pushed_at":"2023-01-06T20:28:11.000Z","size":4568,"stargazers_count":3,"open_issues_count":14,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-28T15:03:45.559Z","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/BBVAEngineering.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-19T09:33:56.000Z","updated_at":"2021-09-06T07:40:23.000Z","dependencies_parsed_at":"2023-01-13T14:30:47.990Z","dependency_job_id":null,"html_url":"https://github.com/BBVAEngineering/javascript","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fjavascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fjavascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fjavascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BBVAEngineering%2Fjavascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BBVAEngineering","download_url":"https://codeload.github.com/BBVAEngineering/javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248182010,"owners_count":21060891,"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-24T07:09:47.250Z","updated_at":"2025-04-10T07:50:20.916Z","avatar_url":"https://github.com/BBVAEngineering.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BBVA Javascript\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/BBVAEngineering/javascript.svg)](https://greenkeeper.io/)\n\nJavascript style guide inspired in [Airbnb](https://github.com/airbnb/javascript) rules\n\n## Table of Contents\n\n1. [Editorconfig](#editorconfig)\n1. [Babel](#babel)\n1. [ESlint](#eslint)\n1. [JSBeautify](#jsbeautify)\n1. [Possible errors](#possible-errors)\n\n## Editorconfig\n\nEditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.\n\n- Spaces must be used to indent instead of tabs.\n\n- Use 2 spaces to indent the code.\n\n- Use \"lf\" char at end of line.\n\n- UTF-8 charset.\n\n- Remove white spaces at the end of the line.\n\n- Last line must be blank.\n\n**[⬆ back to top](#table-of-contents)**\n\n## Babel\n\nBabel allows you to use ES6 features in your projects and then compiles ES5 for you to use in production.\n\nAll code must be written using babel ES6 rules. Get more ES6 info [here](https://babeljs.io/docs/learn-es2015/).\n\n- Arrows and Lexical This\n\n- Classes\n\n- Template Strings\n\n- Default + Rest + Spread\n\n- Let + Const\n\n- Iterators + For..Of\n\n- Generators\n\n- Modules\n\n- And much [more...](https://babeljs.io/docs/learn-es2015/)\n\n**[⬆ back to top](#table-of-contents)**\n\n## ESlint\n\n[ESLint](http://eslint.org/) is an open source project, It's goal is to provide a pluggable linting utility for JavaScript.\n\nThis rules are optimized for [ECMAScript 2015](http://www.ecma-international.org/ecma-262/6.0/) and eslint versions ^3.0.0.\n\nYou can check the rules for BBVA eslint in this [link](/eslint-config-bbva).\n\n### Usage\n\n- `npm install --save-dev eslint-config-bbva eslint`.\n- add `\"extends\": \"bbva\"` to your .eslintrc.js file in your project.\n\n**[⬆ back to top](#table-of-contents)**\n\n## JSBeautify\n\nThis little [beautifier](https://github.com/beautify-web/js-beautify) will reformat and reindent bookmarklets, ugly JavaScript, unpack scripts packed by Dean Edward’s popular packer, as well as deobfuscate scripts processed by [javascriptobfuscator](javascriptobfuscator.com).\n\n**[⬆ back to top](#table-of-contents)**\n\n## Possible errors\n\n1. Do not use console statements. When using Ember it's recommended to log with the Object [Ember.Logger](http://emberjs.com/api/classes/Ember.Logger.html)\n\n\u003e Why? messages are considered to be for debugging purposes and therefore not suitable to ship to the client.\n\n```javascript\nEmber.Logger.log(\"Hey!\");\n```\n\n1. Trailing commas are not valid. eslint: [`comma-dangle`](http://eslint.org/docs/rules/comma-dangle)\n\n   \u003e Why? In some browsers trailing commas can throw an error.\n\n   ```javascript\n   // bad\n   var foo = {\n     bar: \":)\",\n   };\n   var wow = [1, 2];\n\n   // good\n   var foo = {\n     bar: \":)\",\n   };\n   var wow = [1, 2];\n   ```\n\n**[⬆ back to top](#table-of-contents)**\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/BBVAEngineering/javascript/tags).\n\n## Authors\n\nSee the list of [contributors](https://github.com/BBVAEngineering/javascript/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbvaengineering%2Fjavascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbvaengineering%2Fjavascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbvaengineering%2Fjavascript/lists"}