aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-08-12 21:28:57 +0300
committerXhmikosR <[email protected]>2018-08-12 22:22:12 +0300
commitb442ce3130808dc28fe897f610bef1e9ab9c792f (patch)
tree67955bad51a6e6c2bbcbbf456574d90a92dac6d3
parentacd19de6a9258056583f479b4b2faa0bec7bfb07 (diff)
downloadbootstrap-b442ce3130808dc28fe897f610bef1e9ab9c792f.tar.xz
bootstrap-b442ce3130808dc28fe897f610bef1e9ab9c792f.zip
build/*.js: set `sourceType` to module.
-rw-r--r--build/.eslintrc.json2
-rw-r--r--build/build-plugins.js2
-rwxr-xr-xbuild/change-version.js2
-rw-r--r--build/generate-sri.js2
-rw-r--r--build/lint-vars.js2
-rw-r--r--build/postcss.config.js2
-rw-r--r--build/rollup.config.js2
-rw-r--r--build/saucelabs-unit-test.js2
-rw-r--r--build/vnu-jar.js2
-rw-r--r--build/workbox.js2
10 files changed, 1 insertions, 19 deletions
diff --git a/build/.eslintrc.json b/build/.eslintrc.json
index 76e7f37b6..220b6e1e5 100644
--- a/build/.eslintrc.json
+++ b/build/.eslintrc.json
@@ -4,7 +4,7 @@
"node": true
},
"parserOptions": {
- "sourceType": "script"
+ "sourceType": "module"
},
"extends": "../.eslintrc.json",
"rules": {
diff --git a/build/build-plugins.js b/build/build-plugins.js
index 22a179066..4e34b54c2 100644
--- a/build/build-plugins.js
+++ b/build/build-plugins.js
@@ -5,8 +5,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const rollup = require('rollup')
const path = require('path')
const babel = require('rollup-plugin-babel')
diff --git a/build/change-version.js b/build/change-version.js
index 7102dc083..192c62710 100755
--- a/build/change-version.js
+++ b/build/change-version.js
@@ -7,8 +7,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const fs = require('fs')
const path = require('path')
const sh = require('shelljs')
diff --git a/build/generate-sri.js b/build/generate-sri.js
index 10936e8a1..4d5c25c44 100644
--- a/build/generate-sri.js
+++ b/build/generate-sri.js
@@ -10,8 +10,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const fs = require('fs')
const path = require('path')
const sriToolbox = require('sri-toolbox')
diff --git a/build/lint-vars.js b/build/lint-vars.js
index 1b8d71cc6..8873d3670 100644
--- a/build/lint-vars.js
+++ b/build/lint-vars.js
@@ -7,8 +7,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const fs = require('fs')
const path = require('path')
const glob = require('glob')
diff --git a/build/postcss.config.js b/build/postcss.config.js
index 157291ffd..7394ba382 100644
--- a/build/postcss.config.js
+++ b/build/postcss.config.js
@@ -1,5 +1,3 @@
-'use strict'
-
module.exports = (ctx) => ({
map: ctx.file.dirname.includes('examples') ? false : {
inline: false,
diff --git a/build/rollup.config.js b/build/rollup.config.js
index 93370d31d..df88fb304 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -1,5 +1,3 @@
-'use strict'
-
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
diff --git a/build/saucelabs-unit-test.js b/build/saucelabs-unit-test.js
index b4d952536..a84aa1dfe 100644
--- a/build/saucelabs-unit-test.js
+++ b/build/saucelabs-unit-test.js
@@ -12,8 +12,6 @@ Win Opera 15+ is not currently supported by Sauce Labs
iOS Chrome is not currently supported by Sauce Labs
*/
-'use strict'
-
const path = require('path')
const JSUnitSaucelabs = require('jsunitsaucelabs')
diff --git a/build/vnu-jar.js b/build/vnu-jar.js
index 111e03409..5fd214a9d 100644
--- a/build/vnu-jar.js
+++ b/build/vnu-jar.js
@@ -7,8 +7,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const childProcess = require('child_process')
const vnu = require('vnu-jar')
diff --git a/build/workbox.js b/build/workbox.js
index 3a7ba450a..a8d955158 100644
--- a/build/workbox.js
+++ b/build/workbox.js
@@ -5,8 +5,6 @@
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
-'use strict'
-
const fs = require('fs')
const path = require('path')
const swBuild = require('workbox-build')