{"id":20185621,"url":"https://github.com/maur1th/learn-js","last_synced_at":"2025-03-03T06:43:23.602Z","repository":{"id":80043995,"uuid":"67553317","full_name":"maur1th/learn-js","owner":"maur1th","description":"Learn ES 5 and ES 2015 (French)","archived":false,"fork":false,"pushed_at":"2016-09-12T12:26:32.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T17:52:14.734Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maur1th.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":"2016-09-06T23:05:37.000Z","updated_at":"2017-04-25T11:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d433601-de9b-4e9f-b255-fc84c7ddbeb7","html_url":"https://github.com/maur1th/learn-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maur1th%2Flearn-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maur1th%2Flearn-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maur1th%2Flearn-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maur1th%2Flearn-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maur1th","download_url":"https://codeload.github.com/maur1th/learn-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241622593,"owners_count":19992501,"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-14T03:14:09.903Z","updated_at":"2025-03-03T06:43:23.591Z","avatar_url":"https://github.com/maur1th.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tour d'horizon ES 5 \u0026 ES 2015\n## Initialiser le répertoire\n```sh\n\u003e npm init -f\n```\n\n## IE 8\nIE8 [ne prend pas en charge ES5](http://kangax.github.io/compat-table/es5/#ie8) mais sa propre variante de Javascript ([JScript](http://goo.gl/EKFi48)) basée sur ES3. La seule façon d'utiliser ES5 ou plus récent sur IE8 est de passer par une couche de compatibilité qui va émuler ES5 : [es5-shim](https://github.com/es-shims/es5-shim).\nAttention toutefois, voici [ce qu'en dit Facebook](https://facebook.github.io/react/docs/working-with-the-browser.html) :\n\u003e We don't support older browsers that don't support ES5 methods, but you may find that your apps do work in older browsers if polyfills such as es5-shim and es5-sham are included in the page. **You're on your own if you choose to take this path.**\n\n## Babel\nBabel permet de transformer (transpiler) du code ES2015 en ES5, le rendant ainsi compatible à tous les navigateurs depuis IE9 (inclus).\n- Installation\n```sh\n\u003e npm install --save-dev babel-cli babel-preset-es2015\n```\n- Fichier de configuration : `.babelrc`\n- Transpiler (via le script `build` du `package.json`)\n```sh\n\u003e npm run build script.js\n```\n\n## ESLint\nESLint est un descendant de JSHint et JSLint. Plus modulaire, il permet une plus grande granularité dans les [options de linting proposées](http://eslint.org/docs/rules/) et peut utiliser un parser custom pour, par exemple, utiliser Babel (et donc pouvoir analyser un code dont par défaut, il ne prend pas encore en charge la syntaxe).\n- Installation\n```sh\n\u003e npm install --save-dev eslint babel-eslint\n```\n- Fichier de configuration : `.eslintrc`\n- Analyser (via le script `lint` du `package.json`)\n```sh\n\u003e npm run lint script.js\n```\n\n## Liens\n- [The Two Pillars of JavaScript - Parts 1 \u0026 2](https://medium.com/javascript-scene/the-two-pillars-of-javascript-ee6f3281e7f3) ([code examples](https://github.com/learn-javascript-courses/composition-examples#composition-examples))\n- [Babel](https://babeljs.io/docs/setup/#installation)\n- [es5-shim](https://github.com/es-shims/es5-shim)\n- [Getting Started with ESLint](http://eslint.org/docs/user-guide/getting-started)\n- [Configuring ESLint](http://eslint.org/docs/user-guide/configuring)\n- [Lint Like It’s 2015](https://medium.com/@dan_abramov/lint-like-it-s-2015-6987d44c5b48)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaur1th%2Flearn-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaur1th%2Flearn-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaur1th%2Flearn-js/lists"}