From: XhmikosR Date: Mon, 9 Apr 2018 09:08:46 +0000 (+0300) Subject: Clean up globals. X-Git-Tag: v4.1.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875ed0b975a587fffcc1b0c632e1cc8f612ebc5a;p=thirdparty%2Fbootstrap.git Clean up globals. Also, add a missing license header in build/workbox.js. --- diff --git a/build/change-version.js b/build/change-version.js index 25283c44ab..7102dc0830 100755 --- a/build/change-version.js +++ b/build/change-version.js @@ -1,7 +1,5 @@ #!/usr/bin/env node -'use strict' - /*! * Script to update version number references in the project. * Copyright 2017-2018 The Bootstrap Authors @@ -9,7 +7,7 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ -/* global Set */ +'use strict' const fs = require('fs') const path = require('path') diff --git a/build/lint-vars.js b/build/lint-vars.js index 21dc556969..1b8d71cc69 100644 --- a/build/lint-vars.js +++ b/build/lint-vars.js @@ -2,7 +2,6 @@ /*! * Script to find unused Sass variables. - * * Copyright 2017-2018 The Bootstrap Authors * Copyright 2017-2018 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) diff --git a/build/workbox.js b/build/workbox.js index 0363aa59a4..1aa6a608a8 100644 --- a/build/workbox.js +++ b/build/workbox.js @@ -1,3 +1,10 @@ +/*! + * Script to generate our docs service worker. + * Copyright 2017-2018 The Bootstrap Authors + * Copyright 2017-2018 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + 'use strict' const fs = require('fs') diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json index f03726543b..93aaa05f82 100644 --- a/js/tests/unit/.eslintrc.json +++ b/js/tests/unit/.eslintrc.json @@ -1,13 +1,13 @@ { "env": { "es6": false, - "qunit": true, - "jquery": true + "jquery": true, + "qunit": true }, "globals": { + "bootstrap": false, "sinon": false, - "Util": false, - "bootstrap": false + "Util": false }, "parserOptions": { "ecmaVersion": 5, diff --git a/package.js b/package.js index 05449cf92d..556ad2d78a 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ // package metadata file for Meteor.js -/* global Package:true */ +/* eslint-env meteor */ Package.describe({ name: 'twbs:bootstrap', // https://atmospherejs.com/twbs/bootstrap