]> source.dussan.org Git - jquery.git/commit
Build: Require strict mode in Node.js scripts via ESLint
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 8 Oct 2019 22:17:55 +0000 (00:17 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 8 Oct 2019 22:24:17 +0000 (00:24 +0200)
commitac2da4e6b96f5b583c4dfe148a9a9e870465fc69
tree55759e80765776abb4ca0260f989490b8ee0df5a
parentff5a43eb933b8a5668f0841fb2a0c952ad00a700
Build: Require strict mode in Node.js scripts via ESLint

So far, only browser-based JS files were required to be in strict mode (in the
function form). This commit adds such a requirement to Node.js scripts where
the global form is preferred. All Node.js scripts in sloppy mode were
converted to strict mode.

Closes gh-4499

(cherry picked from commit bbad821c399da92995a11b88d6684970479d4a9b)
12 files changed:
.eslintrc-node.json
Gruntfile.js
build/release.js
build/release/cdn.js
build/release/dist.js
build/release/ensure-sizzle.js
build/tasks/build.js
build/tasks/dist.js
build/tasks/node_smoke_tests.js
build/tasks/qunit_fixture.js
build/tasks/sourcemap.js
build/tasks/testswarm.js