diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-10-09 00:17:55 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-10-09 00:24:17 +0200 |
commit | ac2da4e6b96f5b583c4dfe148a9a9e870465fc69 (patch) | |
tree | 55759e80765776abb4ca0260f989490b8ee0df5a /.eslintrc-node.json | |
parent | ff5a43eb933b8a5668f0841fb2a0c952ad00a700 (diff) | |
download | jquery-ac2da4e6b96f5b583c4dfe148a9a9e870465fc69.tar.gz jquery-ac2da4e6b96f5b583c4dfe148a9a9e870465fc69.zip |
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)
Diffstat (limited to '.eslintrc-node.json')
-rw-r--r-- | .eslintrc-node.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc-node.json b/.eslintrc-node.json index 589144272..544a92cdc 100644 --- a/.eslintrc-node.json +++ b/.eslintrc-node.json @@ -10,5 +10,9 @@ "env": { "es6": true, "node": true + }, + + "rules": { + "strict": ["error", "global"] } } |