Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
6
node_modules/eslint/lib/rules/strict.js
generated
vendored
6
node_modules/eslint/lib/rules/strict.js
generated
vendored
|
|
@ -63,13 +63,13 @@ function isSimpleParameterList(params) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "require or disallow strict mode directives",
|
||||
category: "Strict Mode",
|
||||
description: "Require or disallow strict mode directives",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/strict"
|
||||
},
|
||||
|
|
@ -105,7 +105,7 @@ module.exports = {
|
|||
if (ecmaFeatures.impliedStrict) {
|
||||
mode = "implied";
|
||||
} else if (mode === "safe") {
|
||||
mode = ecmaFeatures.globalReturn ? "global" : "function";
|
||||
mode = ecmaFeatures.globalReturn || context.languageOptions.sourceType === "commonjs" ? "global" : "function";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue