mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
ac2da4e6b9
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 bbad821c39
)
19 lines
182 B
JSON
19 lines
182 B
JSON
{
|
|
"root": true,
|
|
|
|
"extends": "jquery",
|
|
|
|
"parserOptions": {
|
|
"ecmaVersion": 2017
|
|
},
|
|
|
|
"env": {
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
|
|
"rules": {
|
|
"strict": ["error", "global"]
|
|
}
|
|
}
|