]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Use Babel and ES6 in docs JS files (#31607)
authorTiger Oakes <contact@tigeroakes.com>
Tue, 12 Apr 2022 15:07:25 +0000 (08:07 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Apr 2022 15:07:25 +0000 (18:07 +0300)
commitfe257823ecca31cf5e582e9b8380a0ad0204075e
tree1ebe321ce3bd30686cbd49a58272d8845d07a673
parentf6cb4b64b57f751df4563fe80e0f4eb4c19fb8e4
Use Babel and ES6 in docs JS files (#31607)

* Pass docs js through Babel

* Use ES6 in docs js

* Only run babel on src files

* Allow babel in Hugo

* Update scripts.html

* Inherit from the root .eslintrc.json

* Use `Array.from`

* Drop Babel from docs

* Prefer template

* replace IIFE with arrow functions

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: GeoSot <geo.sotis@gmail.com>
site/.eslintrc.json
site/assets/js/application.js
site/assets/js/search.js
site/content/docs/5.1/examples/cheatsheet/cheatsheet.js
site/content/docs/5.1/examples/checkout/form-validation.js
site/content/docs/5.1/examples/dashboard-rtl/dashboard.js
site/content/docs/5.1/examples/dashboard/dashboard.js
site/content/docs/5.1/examples/offcanvas-navbar/offcanvas.js
site/content/docs/5.1/examples/sidebars/sidebars.js
site/layouts/partials/scripts.html
site/static/docs/5.1/assets/js/validate-forms.js