From 05dfae314644e108b8d7686fb4249ff90b907672 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 28 Nov 2018 13:03:28 +0200 Subject: [PATCH] Revert "build/*.js: set `sourceType` to module." This reverts commit b442ce3130808dc28fe897f610bef1e9ab9c792f. --- build/.eslintrc.json | 2 +- build/banner.js | 2 ++ build/build-plugins.js | 2 ++ build/change-version.js | 2 ++ build/generate-sri.js | 2 ++ build/postcss.config.js | 2 ++ build/rollup.config.js | 2 ++ build/vnu-jar.js | 2 ++ 8 files changed, 15 insertions(+), 1 deletion(-) diff --git a/build/.eslintrc.json b/build/.eslintrc.json index 220b6e1e56..76e7f37b63 100644 --- a/build/.eslintrc.json +++ b/build/.eslintrc.json @@ -4,7 +4,7 @@ "node": true }, "parserOptions": { - "sourceType": "module" + "sourceType": "script" }, "extends": "../.eslintrc.json", "rules": { diff --git a/build/banner.js b/build/banner.js index 93935bfcb9..9151178378 100644 --- a/build/banner.js +++ b/build/banner.js @@ -1,3 +1,5 @@ +'use strict' + const path = require('path') const pkg = require(path.resolve(__dirname, '../package.json')) const year = new Date().getFullYear() diff --git a/build/build-plugins.js b/build/build-plugins.js index ec337f03ee..3240ee5d05 100644 --- a/build/build-plugins.js +++ b/build/build-plugins.js @@ -5,6 +5,8 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ +'use strict' + const path = require('path') const rollup = require('rollup') const babel = require('rollup-plugin-babel') diff --git a/build/change-version.js b/build/change-version.js index 192c627101..7102dc0830 100755 --- a/build/change-version.js +++ b/build/change-version.js @@ -7,6 +7,8 @@ * 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 6929097703..cd80ce7199 100644 --- a/build/generate-sri.js +++ b/build/generate-sri.js @@ -10,6 +10,8 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ +'use strict' + const crypto = require('crypto') const fs = require('fs') const path = require('path') diff --git a/build/postcss.config.js b/build/postcss.config.js index 7394ba382e..157291ffd2 100644 --- a/build/postcss.config.js +++ b/build/postcss.config.js @@ -1,3 +1,5 @@ +'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 c8acf7a9e9..e81a07ef58 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -1,3 +1,5 @@ +'use strict' + const path = require('path') const babel = require('rollup-plugin-babel') const resolve = require('rollup-plugin-node-resolve') diff --git a/build/vnu-jar.js b/build/vnu-jar.js index 362dd3c30d..b990ba7b78 100644 --- a/build/vnu-jar.js +++ b/build/vnu-jar.js @@ -7,6 +7,8 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ +'use strict' + const childProcess = require('child_process') const vnu = require('vnu-jar')