diff --git a/apps/oxlint/conformance/snapshot.md b/apps/oxlint/conformance/snapshot.md index 1f4fd74afb5e6..70050eced3afd 100644 --- a/apps/oxlint/conformance/snapshot.md +++ b/apps/oxlint/conformance/snapshot.md @@ -7,8 +7,8 @@ | Status | Count | % | | ----------------- | ----- | ------ | | Total rules | 292 | 100.0% | -| Fully passing | 257 | 88.0% | -| Partially passing | 35 | 12.0% | +| Fully passing | 259 | 88.7% | +| Partially passing | 33 | 11.3% | | Fully failing | 0 | 0.0% | | Load errors | 0 | 0.0% | | No tests run | 0 | 0.0% | @@ -18,8 +18,8 @@ | Status | Count | % | | ----------- | ----- | ------ | | Total tests | 33090 | 100.0% | -| Passing | 32719 | 98.9% | -| Failing | 264 | 0.8% | +| Passing | 32761 | 99.0% | +| Failing | 222 | 0.7% | | Skipped | 107 | 0.3% | ## Fully Passing Rules @@ -151,6 +151,7 @@ - `no-iterator` (9 tests) - `no-label-var` (5 tests) - `no-labels` (29 tests) +- `no-lone-blocks` (50 tests) (2 skipped) - `no-lonely-if` (17 tests) - `no-loop-func` (96 tests) - `no-loss-of-precision` (125 tests) @@ -195,6 +196,7 @@ - `no-self-compare` (21 tests) - `no-sequences` (42 tests) - `no-shadow-restricted-names` (44 tests) +- `no-shadow` (308 tests) - `no-spaced-func` (28 tests) - `no-sparse-arrays` (6 tests) - `no-sync` (10 tests) @@ -287,14 +289,13 @@ - `comma-dangle` - 265 / 267 (99.3%) - `id-blacklist` - 128 / 131 (97.7%) - `id-denylist` - 140 / 143 (97.9%) -- `no-eval` - 97 / 101 (96.0%) +- `no-eval` - 98 / 101 (97.0%) - `no-extra-parens` - 1068 / 1072 (99.6%) - `no-fallthrough` - 86 / 87 (98.9%) - `no-global-assign` - 15 / 18 (83.3%) -- `no-implicit-globals` - 157 / 245 (64.1%) -- `no-invalid-this` - 520 / 562 (92.5%) +- `no-implicit-globals` - 159 / 245 (64.9%) +- `no-invalid-this` - 556 / 562 (98.9%) - `no-irregular-whitespace` - 279 / 280 (99.6%) -- `no-lone-blocks` - 49 / 50 (98.0%) - `no-multiple-empty-lines` - 45 / 46 (97.8%) - `no-native-reassign` - 15 / 18 (83.3%) - `no-new-wrappers` - 10 / 11 (90.9%) @@ -303,7 +304,6 @@ - `no-redeclare` - 50 / 75 (66.7%) - `no-restricted-imports` - 253 / 254 (99.6%) - `no-setter-return` - 163 / 164 (99.4%) -- `no-shadow` - 306 / 308 (99.4%) - `no-undef` - 88 / 94 (93.6%) - `no-unused-expressions` - 120 / 124 (96.8%) - `no-unused-vars` - 407 / 436 (93.3%) @@ -714,8 +714,8 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] ### `no-eval` -Pass: 97 / 101 (96.0%) -Fail: 4 / 101 (4.0%) +Pass: 98 / 101 (97.0%) +Fail: 3 / 101 (3.0%) Skip: 0 / 101 (0.0%) #### no-eval > valid @@ -759,47 +759,6 @@ AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ at apps/oxlint/dist/index.js -#### no-eval > valid - -```js -function foo() { this.eval('foo'); } -``` - -```json -{ - "languageOptions": { - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - } -} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-eval', - message: '`eval` can be harmful.', - messageId: 'unexpected', - severity: 1, - nodeType: 'Identifier', - line: 1, - column: 22, - endLine: 1, - endColumn: 26, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - #### no-eval > invalid ```js @@ -1132,92 +1091,10 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] ### `no-implicit-globals` -Pass: 157 / 245 (64.1%) -Fail: 88 / 245 (35.9%) +Pass: 159 / 245 (64.9%) +Fail: 86 / 245 (35.1%) Skip: 0 / 245 (0.0%) -#### no-implicit-globals > valid - -```js -var foo = 1; -``` - -```json -{ - "languageOptions": { - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true - } - } - } -} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-implicit-globals', - message: "Unexpected 'var' declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.", - messageId: 'globalNonLexicalBinding', - severity: 1, - nodeType: 'Identifier', - line: 1, - column: 4, - endLine: 1, - endColumn: 11, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-implicit-globals > valid - -```js -function foo() {} -``` - -```json -{ - "languageOptions": { - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true - } - } - } -} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-implicit-globals', - message: 'Unexpected function declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.', - messageId: 'globalNonLexicalBinding', - severity: 1, - nodeType: 'FunctionDeclaration', - line: 1, - column: 0, - endLine: 1, - endColumn: 17, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - #### no-implicit-globals > valid ```js @@ -4835,8 +4712,8 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 3: [ ### `no-invalid-this` -Pass: 520 / 562 (92.5%) -Fail: 42 / 562 (7.5%) +Pass: 556 / 562 (98.9%) +Fail: 6 / 562 (1.1%) Skip: 0 / 562 (0.0%) #### no-invalid-this > valid @@ -5030,157 +4907,135 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-invalid-this > valid ```js -/* implied strict mode */ (function() { console.log(this); z(x => console.log(x, this)); })(); /* should error */ + + z(function (x, this: context) { + console.log(x, this); + }); + ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +Error: Parsing failed + at parse (apps/oxlint/dist/index.js) + at lint (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) -0 !== 2 - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js +### `no-irregular-whitespace` +Pass: 279 / 280 (99.6%) +Fail: 1 / 280 (0.4%) +Skip: 0 / 280 (0.0%) -#### no-invalid-this > invalid +#### no-irregular-whitespace > valid ```js -/* implied strict mode */ function foo() { console.log(this); z(x => console.log(x, this)); } /* should error */ +console.log('hello BOM'); ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-irregular-whitespace', + message: 'Irregular whitespace not allowed.', + messageId: 'noIrregularWhitespace', + severity: 1, + nodeType: null, + line: 1, + column: 0, + endLine: 1, + endColumn: 1, + suggestions: null + } +] -0 !== 2 +1 !== 0 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +### `no-multiple-empty-lines` + +Pass: 45 / 46 (97.8%) +Fail: 1 / 46 (2.2%) +Skip: 0 / 46 (0.0%) + +#### no-multiple-empty-lines > invalid ```js -/* implied strict mode */ function foo() { console.log(this); z(x => console.log(x, this)); } /* should error */ +foo + ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, + "output": "foo\n", "options": [ { - "capIsConstructor": false + "max": 1, + "maxEOF": 0 } ], "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "blankEndOfFile", + "data": { + "max": 0 + }, + "column": 1 } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +RangeError: Line number out of range (line 3 requested). Line numbers should be 1-based, and less than or equal to number of lines in file (2). + at getOffsetFromLineColumn (apps/oxlint/dist/lint.js) + at report (apps/oxlint/dist/lint.js) + at Object.report (apps/oxlint/dist/lint.js) + at apps/oxlint/conformance/submodules/eslint/lib/rules/no-multiple-empty-lines.js:157:17 -0 !== 2 - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js +### `no-native-reassign` +Pass: 15 / 18 (83.3%) +Fail: 3 / 18 (16.7%) +Skip: 0 / 18 (0.0%) -#### no-invalid-this > invalid +#### no-native-reassign > invalid ```js -/* implied strict mode */ function Foo() { console.log(this); z(x => console.log(x, this)); } /* should error */ +/*global b:false*/ function f() { b = 1; } ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "options": [ - { - "capIsConstructor": false - } - ], "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "nativeReassign", + "data": { + "name": "b" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5188,37 +5043,28 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-native-reassign > invalid ```js -/* implied strict mode */ return function() { console.log(this); z(x => console.log(x, this)); }; /* should error */ +/*global b:false*/ function f() { b++; } ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true, - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "nativeReassign", + "data": { + "name": "b" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5226,36 +5072,28 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-native-reassign > invalid ```js -/* implied strict mode */ var foo = (function() { console.log(this); z(x => console.log(x, this)); }).bar(obj); /* should error */ +/*global b*/ b = 1; ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "nativeReassign", + "data": { + "name": "b" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5263,147 +5101,142 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +### `no-new-wrappers` + +Pass: 10 / 11 (90.9%) +Fail: 1 / 11 (9.1%) +Skip: 0 / 11 (0.0%) + +#### no-new-wrappers > valid ```js -/* implied strict mode */ var obj = {foo: function() { function foo() { console.log(this); z(x => console.log(x, this)); } foo(); }}; /* should error */ + + /* global Boolean:off */ + assert(new Boolean); + ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-new-wrappers', + message: 'Do not use Boolean as a constructor.', + messageId: 'noConstructor', + severity: 1, + nodeType: 'NewExpression', + line: 3, + column: 15, + endLine: 3, + endColumn: 26, + suggestions: null + } +] -0 !== 2 +1 !== 0 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +### `no-obj-calls` + +Pass: 101 / 107 (94.4%) +Fail: 6 / 107 (5.6%) +Skip: 0 / 107 (0.0%) + +#### no-obj-calls > valid ```js -/* implied strict mode */ var obj = {foo() { function foo() { console.log(this); z(x => console.log(x, this)); } foo(); }}; /* should error */ +/*globals Math: off*/ Math(); ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-obj-calls', + message: "'Math' is not a function.", + messageId: 'unexpectedCall', + severity: 1, + nodeType: 'Identifier', + line: 1, + column: 22, + endLine: 1, + endColumn: 28, + suggestions: null + } +] -0 !== 2 +1 !== 0 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-obj-calls > valid ```js -/* implied strict mode */ var obj = {foo: function() { return function() { console.log(this); z(x => console.log(x, this)); }; }}; /* should error */ +/*globals Math: off*/ new Math(); ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-obj-calls', + message: "'Math' is not a function.", + messageId: 'unexpectedCall', + severity: 1, + nodeType: 'NewExpression', + line: 1, + column: 22, + endLine: 1, + endColumn: 32, + suggestions: null + } +] -0 !== 2 +1 !== 0 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-obj-calls > invalid ```js -/* implied strict mode */ obj.foo = function() { return function() { console.log(this); z(x => console.log(x, this)); }; }; /* should error */ +/*globals Reflect: true*/ Reflect(); ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "unexpectedCall", + "data": { + "name": "Reflect" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5411,36 +5244,28 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-obj-calls > invalid ```js -/* implied strict mode */ obj.foo = (function() { return () => { console.log(this); z(x => console.log(x, this)); }; })(); /* should error */ +/*globals Reflect: true*/ new Reflect(); ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "unexpectedCall", + "data": { + "name": "Reflect" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5448,73 +5273,28 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-obj-calls > invalid ```js -/* implied strict mode */ var foo = function() { console.log(this); z(x => console.log(x, this)); }.bind(null); /* should error */ +/*globals Intl: true*/ Intl(); ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ (function() { console.log(this); z(x => console.log(x, this)); }).call(undefined); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true + "messageId": "unexpectedCall", + "data": { + "name": "Intl" } } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5522,36 +5302,28 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-obj-calls > invalid ```js -/* implied strict mode */ (function() { console.log(this); z(x => console.log(x, this)); }).apply(void 0); /* should error */ +/*globals Intl: true*/ new Intl(); ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "messageId": "unexpectedCall", + "data": { + "name": "Intl" + } } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5559,147 +5331,75 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid - -```js -/* implied strict mode */ Array.from([], function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js +### `no-promise-executor-return` +Pass: 123 / 124 (99.2%) +Fail: 1 / 124 (0.8%) +Skip: 0 / 124 (0.0%) -#### no-invalid-this > invalid +#### no-promise-executor-return > valid ```js -/* implied strict mode */ foo.every(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ +/* globals Promise:off */ new Promise(function (resolve, reject) { return 1; }); ``` ```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} +{} ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-promise-executor-return', + message: 'Return values from promise executor functions cannot be read.', + messageId: 'returnsValue', + severity: 1, + nodeType: 'ReturnStatement', + line: 1, + column: 67, + endLine: 1, + endColumn: 76, + suggestions: null + } +] -0 !== 2 +1 !== 0 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.filter(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js +### `no-redeclare` +Pass: 50 / 75 (66.7%) +Fail: 25 / 75 (33.3%) +Skip: 0 / 75 (0.0%) -#### no-invalid-this > invalid +#### no-redeclare > invalid ```js -/* implied strict mode */ foo.find(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ +var Object = 0; ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } + "options": [ + { + "builtinGlobals": true } - }, + ], "errors": [ { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" + "message": "'Object' is already defined as a built-in global variable." } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -0 !== 2 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -5707,4210 +5407,1195 @@ AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] at apps/oxlint/dist/index.js -#### no-invalid-this > invalid +#### no-redeclare > invalid ```js -/* implied strict mode */ foo.findIndex(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ +var top = 0; ``` ```json { - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, + "options": [ { - "messageId": "unexpectedThis" + "builtinGlobals": true } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.findLast(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.findLastIndex(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.flatMap(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.forEach(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.map(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.some(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ foo.forEach(function() { console.log(this); z(x => console.log(x, this)); }, null); /* should error */ -``` - -```json -{ + ], "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ /** @returns {void} */ function foo() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ /** @this Obj */ foo(function() { console.log(this); z(x => console.log(x, this)); }); /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ var Ctor = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "options": [ - { - "capIsConstructor": false - } - ], - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ var func = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ var func = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "options": [ - { - "capIsConstructor": false - } - ], - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ Ctor = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "options": [ - { - "capIsConstructor": false - } - ], - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ func = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ func = function() { console.log(this); z(x => console.log(x, this)); } /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "options": [ - { - "capIsConstructor": false - } - ], - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ function foo(func = function() { console.log(this); z(x => console.log(x, this)); }) {} /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > invalid - -```js -/* implied strict mode */ [func = function() { console.log(this); z(x => console.log(x, this)); }] = a /* should error */ -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - }, - "errors": [ - { - "messageId": "unexpectedThis" - }, - { - "messageId": "unexpectedThis" - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 0: [] - -0 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-invalid-this > valid - -```js - - z(function (x, this: context) { - console.log(x, this); - }); - -``` - -```json -{} -``` - -Error: Parsing failed - at parse (apps/oxlint/dist/index.js) - at lint (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - - -### `no-irregular-whitespace` - -Pass: 279 / 280 (99.6%) -Fail: 1 / 280 (0.4%) -Skip: 0 / 280 (0.0%) - -#### no-irregular-whitespace > valid - -```js -console.log('hello BOM'); -``` - -```json -{} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-irregular-whitespace', - message: 'Irregular whitespace not allowed.', - messageId: 'noIrregularWhitespace', - severity: 1, - nodeType: null, - line: 1, - column: 0, - endLine: 1, - endColumn: 1, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-lone-blocks` - -Pass: 47 / 50 (94.0%) -Fail: 1 / 50 (2.0%) -Skip: 2 / 50 (4.0%) - -#### no-lone-blocks > valid - -```js -{ function bar() {} } -``` - -```json -{ - "languageOptions": { - "ecmaVersion": 6, - "parserOptions": { - "ecmaFeatures": { - "impliedStrict": true - } - } - } -} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-lone-blocks', - message: 'Block is redundant.', - messageId: 'redundantBlock', - severity: 1, - nodeType: 'BlockStatement', - line: 1, - column: 0, - endLine: 1, - endColumn: 21, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-multiple-empty-lines` - -Pass: 45 / 46 (97.8%) -Fail: 1 / 46 (2.2%) -Skip: 0 / 46 (0.0%) - -#### no-multiple-empty-lines > invalid - -```js -foo - -``` - -```json -{ - "output": "foo\n", - "options": [ - { - "max": 1, - "maxEOF": 0 - } - ], - "errors": [ - { - "messageId": "blankEndOfFile", - "data": { - "max": 0 - }, - "column": 1 - } - ] -} -``` - -RangeError: Line number out of range (line 3 requested). Line numbers should be 1-based, and less than or equal to number of lines in file (2). - at getOffsetFromLineColumn (apps/oxlint/dist/lint.js) - at report (apps/oxlint/dist/lint.js) - at Object.report (apps/oxlint/dist/lint.js) - at apps/oxlint/conformance/submodules/eslint/lib/rules/no-multiple-empty-lines.js:157:17 - - -### `no-native-reassign` - -Pass: 15 / 18 (83.3%) -Fail: 3 / 18 (16.7%) -Skip: 0 / 18 (0.0%) - -#### no-native-reassign > invalid - -```js -/*global b:false*/ function f() { b = 1; } -``` - -```json -{ - "errors": [ - { - "messageId": "nativeReassign", - "data": { - "name": "b" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-native-reassign > invalid - -```js -/*global b:false*/ function f() { b++; } -``` - -```json -{ - "errors": [ - { - "messageId": "nativeReassign", - "data": { - "name": "b" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-native-reassign > invalid - -```js -/*global b*/ b = 1; -``` - -```json -{ - "errors": [ - { - "messageId": "nativeReassign", - "data": { - "name": "b" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-new-wrappers` - -Pass: 10 / 11 (90.9%) -Fail: 1 / 11 (9.1%) -Skip: 0 / 11 (0.0%) - -#### no-new-wrappers > valid - -```js - - /* global Boolean:off */ - assert(new Boolean); - -``` - -```json -{} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-new-wrappers', - message: 'Do not use Boolean as a constructor.', - messageId: 'noConstructor', - severity: 1, - nodeType: 'NewExpression', - line: 3, - column: 15, - endLine: 3, - endColumn: 26, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-obj-calls` - -Pass: 101 / 107 (94.4%) -Fail: 6 / 107 (5.6%) -Skip: 0 / 107 (0.0%) - -#### no-obj-calls > valid - -```js -/*globals Math: off*/ Math(); -``` - -```json -{} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-obj-calls', - message: "'Math' is not a function.", - messageId: 'unexpectedCall', - severity: 1, - nodeType: 'Identifier', - line: 1, - column: 22, - endLine: 1, - endColumn: 28, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-obj-calls > valid - -```js -/*globals Math: off*/ new Math(); -``` - -```json -{} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-obj-calls', - message: "'Math' is not a function.", - messageId: 'unexpectedCall', - severity: 1, - nodeType: 'NewExpression', - line: 1, - column: 22, - endLine: 1, - endColumn: 32, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-obj-calls > invalid - -```js -/*globals Reflect: true*/ Reflect(); -``` - -```json -{ - "errors": [ - { - "messageId": "unexpectedCall", - "data": { - "name": "Reflect" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-obj-calls > invalid - -```js -/*globals Reflect: true*/ new Reflect(); -``` - -```json -{ - "errors": [ - { - "messageId": "unexpectedCall", - "data": { - "name": "Reflect" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-obj-calls > invalid - -```js -/*globals Intl: true*/ Intl(); -``` - -```json -{ - "errors": [ - { - "messageId": "unexpectedCall", - "data": { - "name": "Intl" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-obj-calls > invalid - -```js -/*globals Intl: true*/ new Intl(); -``` - -```json -{ - "errors": [ - { - "messageId": "unexpectedCall", - "data": { - "name": "Intl" - } - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-promise-executor-return` - -Pass: 123 / 124 (99.2%) -Fail: 1 / 124 (0.8%) -Skip: 0 / 124 (0.0%) - -#### no-promise-executor-return > valid - -```js -/* globals Promise:off */ new Promise(function (resolve, reject) { return 1; }); -``` - -```json -{} -``` - -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-promise-executor-return', - message: 'Return values from promise executor functions cannot be read.', - messageId: 'returnsValue', - severity: 1, - nodeType: 'ReturnStatement', - line: 1, - column: 67, - endLine: 1, - endColumn: 76, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-redeclare` - -Pass: 50 / 75 (66.7%) -Fail: 25 / 75 (33.3%) -Skip: 0 / 75 (0.0%) - -#### no-redeclare > invalid - -```js -var Object = 0; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Object' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var top = 0; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "languageOptions": { - "globals": { - "AbortController": false, - "AbortSignal": false, - "AbsoluteOrientationSensor": false, - "AbstractRange": false, - "Accelerometer": false, - "addEventListener": false, - "ai": false, - "AI": false, - "AICreateMonitor": false, - "AITextSession": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffect": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "AsyncDisposableStack": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioData": false, - "AudioDecoder": false, - "AudioDestinationNode": false, - "AudioEncoder": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioParamMap": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioSinkInfo": false, - "AudioWorklet": false, - "AudioWorkletGlobalScope": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "AuthenticatorAssertionResponse": false, - "AuthenticatorAttestationResponse": false, - "AuthenticatorResponse": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "BarcodeDetector": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "Bluetooth": false, - "BluetoothCharacteristicProperties": false, - "BluetoothDevice": false, - "BluetoothRemoteGATTCharacteristic": false, - "BluetoothRemoteGATTDescriptor": false, - "BluetoothRemoteGATTServer": false, - "BluetoothRemoteGATTService": false, - "BluetoothUUID": false, - "blur": false, - "BroadcastChannel": false, - "BrowserCaptureMediaStreamTrack": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStream": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "CaptureController": false, - "CaretPosition": false, - "CDATASection": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "ChapterInformation": false, - "CharacterBoundsUpdateEvent": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "Clipboard": false, - "ClipboardChangeEvent": false, - "ClipboardEvent": false, - "ClipboardItem": false, - "close": false, - "closed": false, - "CloseEvent": false, - "CloseWatcher": false, - "CommandEvent": false, - "Comment": false, - "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ContentVisibilityAutoStateChangeEvent": false, - "ConvolverNode": false, - "CookieChangeEvent": false, - "CookieDeprecationLabel": false, - "cookieStore": false, - "CookieStore": false, - "CookieStoreManager": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "CreateMonitor": false, - "Credential": false, - "credentialless": false, - "CredentialsContainer": false, - "CropTarget": false, - "crossOriginIsolated": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSPViolationReportBody": false, - "CSS": false, - "CSSAnimation": false, - "CSSConditionRule": false, - "CSSContainerRule": false, - "CSSCounterStyleRule": false, - "CSSFontFaceRule": false, - "CSSFontFeatureValuesRule": false, - "CSSFontPaletteValuesRule": false, - "CSSFunctionDeclarations": false, - "CSSFunctionDescriptors": false, - "CSSFunctionRule": false, - "CSSGroupingRule": false, - "CSSImageValue": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSKeywordValue": false, - "CSSLayerBlockRule": false, - "CSSLayerStatementRule": false, - "CSSMarginRule": false, - "CSSMathClamp": false, - "CSSMathInvert": false, - "CSSMathMax": false, - "CSSMathMin": false, - "CSSMathNegate": false, - "CSSMathProduct": false, - "CSSMathSum": false, - "CSSMathValue": false, - "CSSMatrixComponent": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSNestedDeclarations": false, - "CSSNumericArray": false, - "CSSNumericValue": false, - "CSSPageDescriptors": false, - "CSSPageRule": false, - "CSSPerspective": false, - "CSSPositionTryDescriptors": false, - "CSSPositionTryRule": false, - "CSSPositionValue": false, - "CSSPropertyRule": false, - "CSSRotate": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSScale": false, - "CSSScopeRule": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CSSStartingStyleRule": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSStyleValue": false, - "CSSSupportsRule": false, - "CSSTransformComponent": false, - "CSSTransformValue": false, - "CSSTransition": false, - "CSSTranslate": false, - "CSSUnitValue": false, - "CSSUnparsedValue": false, - "CSSVariableReferenceValue": false, - "CSSViewTransitionRule": false, - "currentFrame": false, - "currentTime": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "CustomStateSet": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DecompressionStream": false, - "DelayNode": false, - "DelegatedInkTrailPresenter": false, - "DeviceMotionEvent": false, - "DeviceMotionEventAcceleration": false, - "DeviceMotionEventRotationRate": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "DevicePosture": false, - "DigitalCredential": false, - "dispatchEvent": false, - "DisposableStack": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "documentPictureInPicture": false, - "DocumentPictureInPicture": false, - "DocumentPictureInPictureEvent": false, - "DocumentTimeline": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "EditContext": false, - "Element": false, - "ElementInternals": false, - "EncodedAudioChunk": false, - "EncodedVideoChunk": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventCounts": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "External": false, - "EyeDropper": false, - "FeaturePolicy": false, - "FederatedCredential": false, - "fence": false, - "Fence": false, - "FencedFrameConfig": false, - "fetch": false, - "fetchLater": false, - "FetchLaterResult": false, - "File": false, - "FileList": false, - "FileReader": false, - "FileSystem": false, - "FileSystemDirectoryEntry": false, - "FileSystemDirectoryHandle": false, - "FileSystemDirectoryReader": false, - "FileSystemEntry": false, - "FileSystemFileEntry": false, - "FileSystemFileHandle": false, - "FileSystemHandle": false, - "FileSystemObserver": false, - "FileSystemWritableFileStream": false, - "find": false, - "focus": false, - "FocusEvent": false, - "FontData": false, - "FontFace": false, - "FontFaceSet": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "FormDataEvent": false, - "FragmentDirective": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadAxisMoveEvent": false, - "GamepadButton": false, - "GamepadButtonEvent": false, - "GamepadEvent": false, - "GamepadHapticActuator": false, - "GamepadPose": false, - "Geolocation": false, - "GeolocationCoordinates": false, - "GeolocationPosition": false, - "GeolocationPositionError": false, - "getComputedStyle": false, - "getScreenDetails": false, - "getSelection": false, - "GPU": false, - "GPUAdapter": false, - "GPUAdapterInfo": false, - "GPUBindGroup": false, - "GPUBindGroupLayout": false, - "GPUBuffer": false, - "GPUBufferUsage": false, - "GPUCanvasContext": false, - "GPUColorWrite": false, - "GPUCommandBuffer": false, - "GPUCommandEncoder": false, - "GPUCompilationInfo": false, - "GPUCompilationMessage": false, - "GPUComputePassEncoder": false, - "GPUComputePipeline": false, - "GPUDevice": false, - "GPUDeviceLostInfo": false, - "GPUError": false, - "GPUExternalTexture": false, - "GPUInternalError": false, - "GPUMapMode": false, - "GPUOutOfMemoryError": false, - "GPUPipelineError": false, - "GPUPipelineLayout": false, - "GPUQuerySet": false, - "GPUQueue": false, - "GPURenderBundle": false, - "GPURenderBundleEncoder": false, - "GPURenderPassEncoder": false, - "GPURenderPipeline": false, - "GPUSampler": false, - "GPUShaderModule": false, - "GPUShaderStage": false, - "GPUSupportedFeatures": false, - "GPUSupportedLimits": false, - "GPUTexture": false, - "GPUTextureUsage": false, - "GPUTextureView": false, - "GPUUncapturedErrorEvent": false, - "GPUValidationError": false, - "GravitySensor": false, - "Gyroscope": false, - "HashChangeEvent": false, - "Headers": false, - "HID": false, - "HIDConnectionEvent": false, - "HIDDevice": false, - "HIDInputReportEvent": false, - "Highlight": false, - "HighlightRegistry": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFencedFrameElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectedContentElement": false, - "HTMLSelectElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRecord": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdentityCredential": false, - "IdentityCredentialError": false, - "IdentityProvider": false, - "IdleDeadline": false, - "IdleDetector": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "ImageDecoder": false, - "ImageTrack": false, - "ImageTrackList": false, - "indexedDB": false, - "Ink": false, - "innerHeight": false, - "innerWidth": false, - "InputDeviceCapabilities": false, - "InputDeviceInfo": false, - "InputEvent": false, - "IntegrityViolationReportBody": false, - "InterestEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "isSecureContext": false, - "Keyboard": false, - "KeyboardEvent": false, - "KeyboardLayoutMap": false, - "KeyframeEffect": false, - "LanguageDetector": false, - "LargestContentfulPaint": false, - "LaunchParams": false, - "launchQueue": false, - "LaunchQueue": false, - "LayoutShift": false, - "LayoutShiftAttribution": false, - "length": false, - "LinearAccelerationSensor": false, - "localStorage": false, - "location": true, - "Location": false, - "locationbar": false, - "Lock": false, - "LockManager": false, - "matchMedia": false, - "MathMLElement": false, - "MediaCapabilities": false, - "MediaCapabilitiesInfo": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyError": false, - "MediaKeyMessageEvent": false, - "MediaKeys": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaRecorderErrorEvent": false, - "MediaSession": false, - "MediaSource": false, - "MediaSourceHandle": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackAudioSourceNode": false, - "MediaStreamTrackAudioStats": false, - "MediaStreamTrackEvent": false, - "MediaStreamTrackGenerator": false, - "MediaStreamTrackProcessor": false, - "MediaStreamTrackVideoStats": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "model": false, - "ModelGenericSession": false, - "ModelManager": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigateEvent": false, - "navigation": false, - "Navigation": false, - "NavigationActivation": false, - "NavigationCurrentEntryChangeEvent": false, - "NavigationDestination": false, - "NavigationHistoryEntry": false, - "NavigationPrecommitController": false, - "NavigationPreloadManager": false, - "NavigationTransition": false, - "navigator": false, - "Navigator": false, - "NavigatorLogin": false, - "NavigatorManagedData": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "NotifyPaintEvent": false, - "NotRestoredReasonDetails": false, - "NotRestoredReasons": false, - "Observable": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationcancel": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinput": true, - "onbeforeinstallprompt": true, - "onbeforematch": true, - "onbeforeprint": true, - "onbeforetoggle": true, - "onbeforeunload": true, - "onbeforexrselect": true, - "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncommand": true, - "oncontentvisibilityautostatechange": true, - "oncontextlost": true, - "oncontextmenu": true, - "oncontextrestored": true, - "oncopy": true, - "oncuechange": true, - "oncut": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "onerror": true, - "onfocus": true, - "onformdata": true, - "ongamepadconnected": true, - "ongamepaddisconnected": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpagereveal": true, - "onpageshow": true, - "onpageswap": true, - "onpaste": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerrawupdate": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onscrollend": true, - "onscrollsnapchange": true, - "onscrollsnapchanging": true, - "onsearch": true, - "onsecuritypolicyviolation": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onselectionchange": true, - "onselectstart": true, - "onslotchange": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitioncancel": true, - "ontransitionend": true, - "ontransitionrun": true, - "ontransitionstart": true, - "onunhandledrejection": true, - "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwheel": true, - "open": false, - "opener": false, - "Option": false, - "OrientationSensor": false, - "origin": false, - "originAgentCluster": false, - "OscillatorNode": false, - "OTPCredential": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageRevealEvent": false, - "PageSwapEvent": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "PasswordCredential": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentManager": false, - "PaymentMethodChangeEvent": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceElementTiming": false, - "PerformanceEntry": false, - "PerformanceEventTiming": false, - "PerformanceLongAnimationFrameTiming": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceScriptTiming": false, - "PerformanceServerTiming": false, - "PerformanceTiming": false, - "PeriodicSyncManager": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "PERSISTENT": false, - "personalbar": false, - "PictureInPictureEvent": false, - "PictureInPictureWindow": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "PressureObserver": false, - "PressureRecord": false, - "print": false, - "ProcessingInstruction": false, - "Profiler": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "ProtectedAudience": false, - "PublicKeyCredential": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queryLocalFonts": false, - "queueMicrotask": false, - "QuotaExceededError": false, - "RadioNodeList": false, - "Range": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registerProcessor": false, - "RelativeOrientationSensor": false, - "RemotePlayback": false, - "removeEventListener": false, - "ReportBody": false, - "reportError": false, - "ReportingObserver": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "ResizeObserverSize": false, - "resizeTo": false, - "Response": false, - "RestrictionTarget": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCDTMFSender": false, - "RTCDTMFToneChangeEvent": false, - "RTCEncodedAudioFrame": false, - "RTCEncodedVideoFrame": false, - "RTCError": false, - "RTCErrorEvent": false, - "RTCIceCandidate": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceErrorEvent": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpReceiver": false, - "RTCRtpScriptTransform": false, - "RTCRtpSender": false, - "RTCRtpTransceiver": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "sampleRate": false, - "scheduler": false, - "Scheduler": false, - "Scheduling": false, - "screen": false, - "Screen": false, - "ScreenDetailed": false, - "ScreenDetails": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "ScrollTimeline": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "Sensor": false, - "SensorErrorEvent": false, - "Serial": false, - "SerialPort": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "sharedStorage": false, - "SharedStorage": false, - "SharedStorageAppendMethod": false, - "SharedStorageClearMethod": false, - "SharedStorageDeleteMethod": false, - "SharedStorageModifierMethod": false, - "SharedStorageSetMethod": false, - "SharedStorageWorklet": false, - "SharedWorker": false, - "showDirectoryPicker": false, - "showOpenFilePicker": false, - "showSaveFilePicker": false, - "SnapEvent": false, - "SourceBuffer": false, - "SourceBufferList": false, - "SpeechGrammar": false, - "SpeechGrammarList": false, - "SpeechRecognition": false, - "SpeechRecognitionErrorEvent": false, - "SpeechRecognitionEvent": false, - "SpeechRecognitionPhrase": false, - "speechSynthesis": false, - "SpeechSynthesis": false, - "SpeechSynthesisErrorEvent": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "SpeechSynthesisVoice": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageBucket": false, - "StorageBucketManager": false, - "StorageEvent": false, - "StorageManager": false, - "structuredClone": false, - "styleMedia": false, - "StylePropertyMap": false, - "StylePropertyMapReadOnly": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "Subscriber": false, - "SubtleCrypto": false, - "Summarizer": false, - "SuppressedError": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "SyncManager": false, - "TaskAttributionTiming": false, - "TaskController": false, - "TaskPriorityChangeEvent": false, - "TaskSignal": false, - "TEMPORARY": false, - "Text": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextFormat": false, - "TextFormatUpdateEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TextUpdateEvent": false, - "TimeEvent": false, - "TimeRanges": false, - "ToggleEvent": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TransitionEvent": false, - "Translator": false, - "TreeWalker": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "UIEvent": false, - "URL": false, - "URLPattern": false, - "URLSearchParams": false, - "USB": false, - "USBAlternateInterface": false, - "USBConfiguration": false, - "USBConnectionEvent": false, - "USBDevice": false, - "USBEndpoint": false, - "USBInterface": false, - "USBInTransferResult": false, - "USBIsochronousInTransferPacket": false, - "USBIsochronousInTransferResult": false, - "USBIsochronousOutTransferPacket": false, - "USBIsochronousOutTransferResult": false, - "USBOutTransferResult": false, - "UserActivation": false, - "ValidityState": false, - "VideoColorSpace": false, - "VideoDecoder": false, - "VideoEncoder": false, - "VideoFrame": false, - "VideoPlaybackQuality": false, - "viewport": false, - "Viewport": false, - "ViewTimeline": false, - "ViewTransition": false, - "ViewTransitionTypeSet": false, - "VirtualKeyboard": false, - "VirtualKeyboardGeometryChangeEvent": false, - "VisibilityStateEntry": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "VTTRegion": false, - "WakeLock": false, - "WakeLockSentinel": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLObject": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WebSocketError": false, - "WebSocketStream": false, - "WebTransport": false, - "WebTransportBidirectionalStream": false, - "WebTransportDatagramDuplexStream": false, - "WebTransportError": false, - "WebTransportReceiveStream": false, - "WebTransportSendStream": false, - "WGSLLanguageFeatures": false, - "WheelEvent": false, - "when": false, - "window": false, - "Window": false, - "WindowControlsOverlay": false, - "WindowControlsOverlayGeometryChangeEvent": false, - "Worker": false, - "Worklet": false, - "WorkletGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XRAnchor": false, - "XRAnchorSet": false, - "XRBoundedReferenceSpace": false, - "XRCamera": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRDOMOverlayState": false, - "XRFrame": false, - "XRHand": false, - "XRHitTestResult": false, - "XRHitTestSource": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRJointPose": false, - "XRJointSpace": false, - "XRLayer": false, - "XRLightEstimate": false, - "XRLightProbe": false, - "XRPose": false, - "XRRay": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRTransientInputHitTestResult": false, - "XRTransientInputHitTestSource": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, - "XSLTProcessor": false - } - }, - "errors": [ - { - "message": "'top' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var a; var {a = 0, b: Object = 0} = {}; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "languageOptions": { - "ecmaVersion": 6 - }, - "errors": [ - { - "message": "'a' is already defined." - }, - { - "message": "'Object' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 1: [ - { - ruleId: 'rule-to-test/no-redeclare', - message: "'a' is already defined.", - messageId: 'redeclared', - severity: 1, - nodeType: 'Identifier', - line: 1, - column: 12, - endLine: 1, - endColumn: 13, - suggestions: null - } -] - -1 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var globalThis = 0; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "languageOptions": { - "ecmaVersion": 2020 - }, - "errors": [ - { - "message": "'globalThis' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var a; var {a = 0, b: globalThis = 0} = {}; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "languageOptions": { - "ecmaVersion": 2020 - }, - "errors": [ - { - "message": "'a' is already defined." - }, - { - "message": "'globalThis' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 2 errors but had 1: [ - { - ruleId: 'rule-to-test/no-redeclare', - message: "'a' is already defined.", - messageId: 'redeclared', - severity: 1, - nodeType: 'Identifier', - line: 1, - column: 12, - endLine: 1, - endColumn: 13, - suggestions: null - } -] - -1 !== 2 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*global b:false*/ var b = 1; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'b' is already defined by a variable declaration.", - "line": 1, - "column": 10, - "endLine": 1, - "endColumn": 11 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*global b:true*/ var b = 1; -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'b' is already defined by a variable declaration.", - "line": 1, - "column": 10, - "endLine": 1, - "endColumn": 11 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var Object = 0; -``` - -```json -{ - "errors": [ - { - "message": "'Object' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -var top = 0; -``` - -```json -{ - "languageOptions": { - "globals": { - "AbortController": false, - "AbortSignal": false, - "AbsoluteOrientationSensor": false, - "AbstractRange": false, - "Accelerometer": false, - "addEventListener": false, - "ai": false, - "AI": false, - "AICreateMonitor": false, - "AITextSession": false, - "alert": false, - "AnalyserNode": false, - "Animation": false, - "AnimationEffect": false, - "AnimationEvent": false, - "AnimationPlaybackEvent": false, - "AnimationTimeline": false, - "AsyncDisposableStack": false, - "atob": false, - "Attr": false, - "Audio": false, - "AudioBuffer": false, - "AudioBufferSourceNode": false, - "AudioContext": false, - "AudioData": false, - "AudioDecoder": false, - "AudioDestinationNode": false, - "AudioEncoder": false, - "AudioListener": false, - "AudioNode": false, - "AudioParam": false, - "AudioParamMap": false, - "AudioProcessingEvent": false, - "AudioScheduledSourceNode": false, - "AudioSinkInfo": false, - "AudioWorklet": false, - "AudioWorkletGlobalScope": false, - "AudioWorkletNode": false, - "AudioWorkletProcessor": false, - "AuthenticatorAssertionResponse": false, - "AuthenticatorAttestationResponse": false, - "AuthenticatorResponse": false, - "BackgroundFetchManager": false, - "BackgroundFetchRecord": false, - "BackgroundFetchRegistration": false, - "BarcodeDetector": false, - "BarProp": false, - "BaseAudioContext": false, - "BatteryManager": false, - "BeforeUnloadEvent": false, - "BiquadFilterNode": false, - "Blob": false, - "BlobEvent": false, - "Bluetooth": false, - "BluetoothCharacteristicProperties": false, - "BluetoothDevice": false, - "BluetoothRemoteGATTCharacteristic": false, - "BluetoothRemoteGATTDescriptor": false, - "BluetoothRemoteGATTServer": false, - "BluetoothRemoteGATTService": false, - "BluetoothUUID": false, - "blur": false, - "BroadcastChannel": false, - "BrowserCaptureMediaStreamTrack": false, - "btoa": false, - "ByteLengthQueuingStrategy": false, - "Cache": false, - "caches": false, - "CacheStorage": false, - "cancelAnimationFrame": false, - "cancelIdleCallback": false, - "CanvasCaptureMediaStream": false, - "CanvasCaptureMediaStreamTrack": false, - "CanvasGradient": false, - "CanvasPattern": false, - "CanvasRenderingContext2D": false, - "CaptureController": false, - "CaretPosition": false, - "CDATASection": false, - "ChannelMergerNode": false, - "ChannelSplitterNode": false, - "ChapterInformation": false, - "CharacterBoundsUpdateEvent": false, - "CharacterData": false, - "clearInterval": false, - "clearTimeout": false, - "clientInformation": false, - "Clipboard": false, - "ClipboardChangeEvent": false, - "ClipboardEvent": false, - "ClipboardItem": false, - "close": false, - "closed": false, - "CloseEvent": false, - "CloseWatcher": false, - "CommandEvent": false, - "Comment": false, - "CompositionEvent": false, - "CompressionStream": false, - "confirm": false, - "console": false, - "ConstantSourceNode": false, - "ContentVisibilityAutoStateChangeEvent": false, - "ConvolverNode": false, - "CookieChangeEvent": false, - "CookieDeprecationLabel": false, - "cookieStore": false, - "CookieStore": false, - "CookieStoreManager": false, - "CountQueuingStrategy": false, - "createImageBitmap": false, - "CreateMonitor": false, - "Credential": false, - "credentialless": false, - "CredentialsContainer": false, - "CropTarget": false, - "crossOriginIsolated": false, - "crypto": false, - "Crypto": false, - "CryptoKey": false, - "CSPViolationReportBody": false, - "CSS": false, - "CSSAnimation": false, - "CSSConditionRule": false, - "CSSContainerRule": false, - "CSSCounterStyleRule": false, - "CSSFontFaceRule": false, - "CSSFontFeatureValuesRule": false, - "CSSFontPaletteValuesRule": false, - "CSSFunctionDeclarations": false, - "CSSFunctionDescriptors": false, - "CSSFunctionRule": false, - "CSSGroupingRule": false, - "CSSImageValue": false, - "CSSImportRule": false, - "CSSKeyframeRule": false, - "CSSKeyframesRule": false, - "CSSKeywordValue": false, - "CSSLayerBlockRule": false, - "CSSLayerStatementRule": false, - "CSSMarginRule": false, - "CSSMathClamp": false, - "CSSMathInvert": false, - "CSSMathMax": false, - "CSSMathMin": false, - "CSSMathNegate": false, - "CSSMathProduct": false, - "CSSMathSum": false, - "CSSMathValue": false, - "CSSMatrixComponent": false, - "CSSMediaRule": false, - "CSSNamespaceRule": false, - "CSSNestedDeclarations": false, - "CSSNumericArray": false, - "CSSNumericValue": false, - "CSSPageDescriptors": false, - "CSSPageRule": false, - "CSSPerspective": false, - "CSSPositionTryDescriptors": false, - "CSSPositionTryRule": false, - "CSSPositionValue": false, - "CSSPropertyRule": false, - "CSSRotate": false, - "CSSRule": false, - "CSSRuleList": false, - "CSSScale": false, - "CSSScopeRule": false, - "CSSSkew": false, - "CSSSkewX": false, - "CSSSkewY": false, - "CSSStartingStyleRule": false, - "CSSStyleDeclaration": false, - "CSSStyleRule": false, - "CSSStyleSheet": false, - "CSSStyleValue": false, - "CSSSupportsRule": false, - "CSSTransformComponent": false, - "CSSTransformValue": false, - "CSSTransition": false, - "CSSTranslate": false, - "CSSUnitValue": false, - "CSSUnparsedValue": false, - "CSSVariableReferenceValue": false, - "CSSViewTransitionRule": false, - "currentFrame": false, - "currentTime": false, - "CustomElementRegistry": false, - "customElements": false, - "CustomEvent": false, - "CustomStateSet": false, - "DataTransfer": false, - "DataTransferItem": false, - "DataTransferItemList": false, - "DecompressionStream": false, - "DelayNode": false, - "DelegatedInkTrailPresenter": false, - "DeviceMotionEvent": false, - "DeviceMotionEventAcceleration": false, - "DeviceMotionEventRotationRate": false, - "DeviceOrientationEvent": false, - "devicePixelRatio": false, - "DevicePosture": false, - "DigitalCredential": false, - "dispatchEvent": false, - "DisposableStack": false, - "document": false, - "Document": false, - "DocumentFragment": false, - "documentPictureInPicture": false, - "DocumentPictureInPicture": false, - "DocumentPictureInPictureEvent": false, - "DocumentTimeline": false, - "DocumentType": false, - "DOMError": false, - "DOMException": false, - "DOMImplementation": false, - "DOMMatrix": false, - "DOMMatrixReadOnly": false, - "DOMParser": false, - "DOMPoint": false, - "DOMPointReadOnly": false, - "DOMQuad": false, - "DOMRect": false, - "DOMRectList": false, - "DOMRectReadOnly": false, - "DOMStringList": false, - "DOMStringMap": false, - "DOMTokenList": false, - "DragEvent": false, - "DynamicsCompressorNode": false, - "EditContext": false, - "Element": false, - "ElementInternals": false, - "EncodedAudioChunk": false, - "EncodedVideoChunk": false, - "ErrorEvent": false, - "event": false, - "Event": false, - "EventCounts": false, - "EventSource": false, - "EventTarget": false, - "external": false, - "External": false, - "EyeDropper": false, - "FeaturePolicy": false, - "FederatedCredential": false, - "fence": false, - "Fence": false, - "FencedFrameConfig": false, - "fetch": false, - "fetchLater": false, - "FetchLaterResult": false, - "File": false, - "FileList": false, - "FileReader": false, - "FileSystem": false, - "FileSystemDirectoryEntry": false, - "FileSystemDirectoryHandle": false, - "FileSystemDirectoryReader": false, - "FileSystemEntry": false, - "FileSystemFileEntry": false, - "FileSystemFileHandle": false, - "FileSystemHandle": false, - "FileSystemObserver": false, - "FileSystemWritableFileStream": false, - "find": false, - "focus": false, - "FocusEvent": false, - "FontData": false, - "FontFace": false, - "FontFaceSet": false, - "FontFaceSetLoadEvent": false, - "FormData": false, - "FormDataEvent": false, - "FragmentDirective": false, - "frameElement": false, - "frames": false, - "GainNode": false, - "Gamepad": false, - "GamepadAxisMoveEvent": false, - "GamepadButton": false, - "GamepadButtonEvent": false, - "GamepadEvent": false, - "GamepadHapticActuator": false, - "GamepadPose": false, - "Geolocation": false, - "GeolocationCoordinates": false, - "GeolocationPosition": false, - "GeolocationPositionError": false, - "getComputedStyle": false, - "getScreenDetails": false, - "getSelection": false, - "GPU": false, - "GPUAdapter": false, - "GPUAdapterInfo": false, - "GPUBindGroup": false, - "GPUBindGroupLayout": false, - "GPUBuffer": false, - "GPUBufferUsage": false, - "GPUCanvasContext": false, - "GPUColorWrite": false, - "GPUCommandBuffer": false, - "GPUCommandEncoder": false, - "GPUCompilationInfo": false, - "GPUCompilationMessage": false, - "GPUComputePassEncoder": false, - "GPUComputePipeline": false, - "GPUDevice": false, - "GPUDeviceLostInfo": false, - "GPUError": false, - "GPUExternalTexture": false, - "GPUInternalError": false, - "GPUMapMode": false, - "GPUOutOfMemoryError": false, - "GPUPipelineError": false, - "GPUPipelineLayout": false, - "GPUQuerySet": false, - "GPUQueue": false, - "GPURenderBundle": false, - "GPURenderBundleEncoder": false, - "GPURenderPassEncoder": false, - "GPURenderPipeline": false, - "GPUSampler": false, - "GPUShaderModule": false, - "GPUShaderStage": false, - "GPUSupportedFeatures": false, - "GPUSupportedLimits": false, - "GPUTexture": false, - "GPUTextureUsage": false, - "GPUTextureView": false, - "GPUUncapturedErrorEvent": false, - "GPUValidationError": false, - "GravitySensor": false, - "Gyroscope": false, - "HashChangeEvent": false, - "Headers": false, - "HID": false, - "HIDConnectionEvent": false, - "HIDDevice": false, - "HIDInputReportEvent": false, - "Highlight": false, - "HighlightRegistry": false, - "history": false, - "History": false, - "HTMLAllCollection": false, - "HTMLAnchorElement": false, - "HTMLAreaElement": false, - "HTMLAudioElement": false, - "HTMLBaseElement": false, - "HTMLBodyElement": false, - "HTMLBRElement": false, - "HTMLButtonElement": false, - "HTMLCanvasElement": false, - "HTMLCollection": false, - "HTMLDataElement": false, - "HTMLDataListElement": false, - "HTMLDetailsElement": false, - "HTMLDialogElement": false, - "HTMLDirectoryElement": false, - "HTMLDivElement": false, - "HTMLDListElement": false, - "HTMLDocument": false, - "HTMLElement": false, - "HTMLEmbedElement": false, - "HTMLFencedFrameElement": false, - "HTMLFieldSetElement": false, - "HTMLFontElement": false, - "HTMLFormControlsCollection": false, - "HTMLFormElement": false, - "HTMLFrameElement": false, - "HTMLFrameSetElement": false, - "HTMLHeadElement": false, - "HTMLHeadingElement": false, - "HTMLHRElement": false, - "HTMLHtmlElement": false, - "HTMLIFrameElement": false, - "HTMLImageElement": false, - "HTMLInputElement": false, - "HTMLLabelElement": false, - "HTMLLegendElement": false, - "HTMLLIElement": false, - "HTMLLinkElement": false, - "HTMLMapElement": false, - "HTMLMarqueeElement": false, - "HTMLMediaElement": false, - "HTMLMenuElement": false, - "HTMLMetaElement": false, - "HTMLMeterElement": false, - "HTMLModElement": false, - "HTMLObjectElement": false, - "HTMLOListElement": false, - "HTMLOptGroupElement": false, - "HTMLOptionElement": false, - "HTMLOptionsCollection": false, - "HTMLOutputElement": false, - "HTMLParagraphElement": false, - "HTMLParamElement": false, - "HTMLPictureElement": false, - "HTMLPreElement": false, - "HTMLProgressElement": false, - "HTMLQuoteElement": false, - "HTMLScriptElement": false, - "HTMLSelectedContentElement": false, - "HTMLSelectElement": false, - "HTMLSlotElement": false, - "HTMLSourceElement": false, - "HTMLSpanElement": false, - "HTMLStyleElement": false, - "HTMLTableCaptionElement": false, - "HTMLTableCellElement": false, - "HTMLTableColElement": false, - "HTMLTableElement": false, - "HTMLTableRowElement": false, - "HTMLTableSectionElement": false, - "HTMLTemplateElement": false, - "HTMLTextAreaElement": false, - "HTMLTimeElement": false, - "HTMLTitleElement": false, - "HTMLTrackElement": false, - "HTMLUListElement": false, - "HTMLUnknownElement": false, - "HTMLVideoElement": false, - "IDBCursor": false, - "IDBCursorWithValue": false, - "IDBDatabase": false, - "IDBFactory": false, - "IDBIndex": false, - "IDBKeyRange": false, - "IDBObjectStore": false, - "IDBOpenDBRequest": false, - "IDBRecord": false, - "IDBRequest": false, - "IDBTransaction": false, - "IDBVersionChangeEvent": false, - "IdentityCredential": false, - "IdentityCredentialError": false, - "IdentityProvider": false, - "IdleDeadline": false, - "IdleDetector": false, - "IIRFilterNode": false, - "Image": false, - "ImageBitmap": false, - "ImageBitmapRenderingContext": false, - "ImageCapture": false, - "ImageData": false, - "ImageDecoder": false, - "ImageTrack": false, - "ImageTrackList": false, - "indexedDB": false, - "Ink": false, - "innerHeight": false, - "innerWidth": false, - "InputDeviceCapabilities": false, - "InputDeviceInfo": false, - "InputEvent": false, - "IntegrityViolationReportBody": false, - "InterestEvent": false, - "IntersectionObserver": false, - "IntersectionObserverEntry": false, - "isSecureContext": false, - "Keyboard": false, - "KeyboardEvent": false, - "KeyboardLayoutMap": false, - "KeyframeEffect": false, - "LanguageDetector": false, - "LargestContentfulPaint": false, - "LaunchParams": false, - "launchQueue": false, - "LaunchQueue": false, - "LayoutShift": false, - "LayoutShiftAttribution": false, - "length": false, - "LinearAccelerationSensor": false, - "localStorage": false, - "location": true, - "Location": false, - "locationbar": false, - "Lock": false, - "LockManager": false, - "matchMedia": false, - "MathMLElement": false, - "MediaCapabilities": false, - "MediaCapabilitiesInfo": false, - "MediaDeviceInfo": false, - "MediaDevices": false, - "MediaElementAudioSourceNode": false, - "MediaEncryptedEvent": false, - "MediaError": false, - "MediaKeyError": false, - "MediaKeyMessageEvent": false, - "MediaKeys": false, - "MediaKeySession": false, - "MediaKeyStatusMap": false, - "MediaKeySystemAccess": false, - "MediaList": false, - "MediaMetadata": false, - "MediaQueryList": false, - "MediaQueryListEvent": false, - "MediaRecorder": false, - "MediaRecorderErrorEvent": false, - "MediaSession": false, - "MediaSource": false, - "MediaSourceHandle": false, - "MediaStream": false, - "MediaStreamAudioDestinationNode": false, - "MediaStreamAudioSourceNode": false, - "MediaStreamEvent": false, - "MediaStreamTrack": false, - "MediaStreamTrackAudioSourceNode": false, - "MediaStreamTrackAudioStats": false, - "MediaStreamTrackEvent": false, - "MediaStreamTrackGenerator": false, - "MediaStreamTrackProcessor": false, - "MediaStreamTrackVideoStats": false, - "menubar": false, - "MessageChannel": false, - "MessageEvent": false, - "MessagePort": false, - "MIDIAccess": false, - "MIDIConnectionEvent": false, - "MIDIInput": false, - "MIDIInputMap": false, - "MIDIMessageEvent": false, - "MIDIOutput": false, - "MIDIOutputMap": false, - "MIDIPort": false, - "MimeType": false, - "MimeTypeArray": false, - "model": false, - "ModelGenericSession": false, - "ModelManager": false, - "MouseEvent": false, - "moveBy": false, - "moveTo": false, - "MutationEvent": false, - "MutationObserver": false, - "MutationRecord": false, - "name": false, - "NamedNodeMap": false, - "NavigateEvent": false, - "navigation": false, - "Navigation": false, - "NavigationActivation": false, - "NavigationCurrentEntryChangeEvent": false, - "NavigationDestination": false, - "NavigationHistoryEntry": false, - "NavigationPrecommitController": false, - "NavigationPreloadManager": false, - "NavigationTransition": false, - "navigator": false, - "Navigator": false, - "NavigatorLogin": false, - "NavigatorManagedData": false, - "NavigatorUAData": false, - "NetworkInformation": false, - "Node": false, - "NodeFilter": false, - "NodeIterator": false, - "NodeList": false, - "Notification": false, - "NotifyPaintEvent": false, - "NotRestoredReasonDetails": false, - "NotRestoredReasons": false, - "Observable": false, - "OfflineAudioCompletionEvent": false, - "OfflineAudioContext": false, - "offscreenBuffering": false, - "OffscreenCanvas": false, - "OffscreenCanvasRenderingContext2D": false, - "onabort": true, - "onafterprint": true, - "onanimationcancel": true, - "onanimationend": true, - "onanimationiteration": true, - "onanimationstart": true, - "onappinstalled": true, - "onauxclick": true, - "onbeforeinput": true, - "onbeforeinstallprompt": true, - "onbeforematch": true, - "onbeforeprint": true, - "onbeforetoggle": true, - "onbeforeunload": true, - "onbeforexrselect": true, - "onblur": true, - "oncancel": true, - "oncanplay": true, - "oncanplaythrough": true, - "onchange": true, - "onclick": true, - "onclose": true, - "oncommand": true, - "oncontentvisibilityautostatechange": true, - "oncontextlost": true, - "oncontextmenu": true, - "oncontextrestored": true, - "oncopy": true, - "oncuechange": true, - "oncut": true, - "ondblclick": true, - "ondevicemotion": true, - "ondeviceorientation": true, - "ondeviceorientationabsolute": true, - "ondrag": true, - "ondragend": true, - "ondragenter": true, - "ondragleave": true, - "ondragover": true, - "ondragstart": true, - "ondrop": true, - "ondurationchange": true, - "onemptied": true, - "onended": true, - "onerror": true, - "onfocus": true, - "onformdata": true, - "ongamepadconnected": true, - "ongamepaddisconnected": true, - "ongotpointercapture": true, - "onhashchange": true, - "oninput": true, - "oninvalid": true, - "onkeydown": true, - "onkeypress": true, - "onkeyup": true, - "onlanguagechange": true, - "onload": true, - "onloadeddata": true, - "onloadedmetadata": true, - "onloadstart": true, - "onlostpointercapture": true, - "onmessage": true, - "onmessageerror": true, - "onmousedown": true, - "onmouseenter": true, - "onmouseleave": true, - "onmousemove": true, - "onmouseout": true, - "onmouseover": true, - "onmouseup": true, - "onmousewheel": true, - "onoffline": true, - "ononline": true, - "onpagehide": true, - "onpagereveal": true, - "onpageshow": true, - "onpageswap": true, - "onpaste": true, - "onpause": true, - "onplay": true, - "onplaying": true, - "onpointercancel": true, - "onpointerdown": true, - "onpointerenter": true, - "onpointerleave": true, - "onpointermove": true, - "onpointerout": true, - "onpointerover": true, - "onpointerrawupdate": true, - "onpointerup": true, - "onpopstate": true, - "onprogress": true, - "onratechange": true, - "onrejectionhandled": true, - "onreset": true, - "onresize": true, - "onscroll": true, - "onscrollend": true, - "onscrollsnapchange": true, - "onscrollsnapchanging": true, - "onsearch": true, - "onsecuritypolicyviolation": true, - "onseeked": true, - "onseeking": true, - "onselect": true, - "onselectionchange": true, - "onselectstart": true, - "onslotchange": true, - "onstalled": true, - "onstorage": true, - "onsubmit": true, - "onsuspend": true, - "ontimeupdate": true, - "ontoggle": true, - "ontransitioncancel": true, - "ontransitionend": true, - "ontransitionrun": true, - "ontransitionstart": true, - "onunhandledrejection": true, - "onunload": true, - "onvolumechange": true, - "onwaiting": true, - "onwheel": true, - "open": false, - "opener": false, - "Option": false, - "OrientationSensor": false, - "origin": false, - "originAgentCluster": false, - "OscillatorNode": false, - "OTPCredential": false, - "outerHeight": false, - "outerWidth": false, - "OverconstrainedError": false, - "PageRevealEvent": false, - "PageSwapEvent": false, - "PageTransitionEvent": false, - "pageXOffset": false, - "pageYOffset": false, - "PannerNode": false, - "parent": false, - "PasswordCredential": false, - "Path2D": false, - "PaymentAddress": false, - "PaymentManager": false, - "PaymentMethodChangeEvent": false, - "PaymentRequest": false, - "PaymentRequestUpdateEvent": false, - "PaymentResponse": false, - "performance": false, - "Performance": false, - "PerformanceElementTiming": false, - "PerformanceEntry": false, - "PerformanceEventTiming": false, - "PerformanceLongAnimationFrameTiming": false, - "PerformanceLongTaskTiming": false, - "PerformanceMark": false, - "PerformanceMeasure": false, - "PerformanceNavigation": false, - "PerformanceNavigationTiming": false, - "PerformanceObserver": false, - "PerformanceObserverEntryList": false, - "PerformancePaintTiming": false, - "PerformanceResourceTiming": false, - "PerformanceScriptTiming": false, - "PerformanceServerTiming": false, - "PerformanceTiming": false, - "PeriodicSyncManager": false, - "PeriodicWave": false, - "Permissions": false, - "PermissionStatus": false, - "PERSISTENT": false, - "personalbar": false, - "PictureInPictureEvent": false, - "PictureInPictureWindow": false, - "Plugin": false, - "PluginArray": false, - "PointerEvent": false, - "PopStateEvent": false, - "postMessage": false, - "Presentation": false, - "PresentationAvailability": false, - "PresentationConnection": false, - "PresentationConnectionAvailableEvent": false, - "PresentationConnectionCloseEvent": false, - "PresentationConnectionList": false, - "PresentationReceiver": false, - "PresentationRequest": false, - "PressureObserver": false, - "PressureRecord": false, - "print": false, - "ProcessingInstruction": false, - "Profiler": false, - "ProgressEvent": false, - "PromiseRejectionEvent": false, - "prompt": false, - "ProtectedAudience": false, - "PublicKeyCredential": false, - "PushManager": false, - "PushSubscription": false, - "PushSubscriptionOptions": false, - "queryLocalFonts": false, - "queueMicrotask": false, - "QuotaExceededError": false, - "RadioNodeList": false, - "Range": false, - "ReadableByteStreamController": false, - "ReadableStream": false, - "ReadableStreamBYOBReader": false, - "ReadableStreamBYOBRequest": false, - "ReadableStreamDefaultController": false, - "ReadableStreamDefaultReader": false, - "registerProcessor": false, - "RelativeOrientationSensor": false, - "RemotePlayback": false, - "removeEventListener": false, - "ReportBody": false, - "reportError": false, - "ReportingObserver": false, - "Request": false, - "requestAnimationFrame": false, - "requestIdleCallback": false, - "resizeBy": false, - "ResizeObserver": false, - "ResizeObserverEntry": false, - "ResizeObserverSize": false, - "resizeTo": false, - "Response": false, - "RestrictionTarget": false, - "RTCCertificate": false, - "RTCDataChannel": false, - "RTCDataChannelEvent": false, - "RTCDtlsTransport": false, - "RTCDTMFSender": false, - "RTCDTMFToneChangeEvent": false, - "RTCEncodedAudioFrame": false, - "RTCEncodedVideoFrame": false, - "RTCError": false, - "RTCErrorEvent": false, - "RTCIceCandidate": false, - "RTCIceTransport": false, - "RTCPeerConnection": false, - "RTCPeerConnectionIceErrorEvent": false, - "RTCPeerConnectionIceEvent": false, - "RTCRtpReceiver": false, - "RTCRtpScriptTransform": false, - "RTCRtpSender": false, - "RTCRtpTransceiver": false, - "RTCSctpTransport": false, - "RTCSessionDescription": false, - "RTCStatsReport": false, - "RTCTrackEvent": false, - "sampleRate": false, - "scheduler": false, - "Scheduler": false, - "Scheduling": false, - "screen": false, - "Screen": false, - "ScreenDetailed": false, - "ScreenDetails": false, - "screenLeft": false, - "ScreenOrientation": false, - "screenTop": false, - "screenX": false, - "screenY": false, - "ScriptProcessorNode": false, - "scroll": false, - "scrollbars": false, - "scrollBy": false, - "ScrollTimeline": false, - "scrollTo": false, - "scrollX": false, - "scrollY": false, - "SecurityPolicyViolationEvent": false, - "Selection": false, - "self": false, - "Sensor": false, - "SensorErrorEvent": false, - "Serial": false, - "SerialPort": false, - "ServiceWorker": false, - "ServiceWorkerContainer": false, - "ServiceWorkerRegistration": false, - "sessionStorage": false, - "setInterval": false, - "setTimeout": false, - "ShadowRoot": false, - "sharedStorage": false, - "SharedStorage": false, - "SharedStorageAppendMethod": false, - "SharedStorageClearMethod": false, - "SharedStorageDeleteMethod": false, - "SharedStorageModifierMethod": false, - "SharedStorageSetMethod": false, - "SharedStorageWorklet": false, - "SharedWorker": false, - "showDirectoryPicker": false, - "showOpenFilePicker": false, - "showSaveFilePicker": false, - "SnapEvent": false, - "SourceBuffer": false, - "SourceBufferList": false, - "SpeechGrammar": false, - "SpeechGrammarList": false, - "SpeechRecognition": false, - "SpeechRecognitionErrorEvent": false, - "SpeechRecognitionEvent": false, - "SpeechRecognitionPhrase": false, - "speechSynthesis": false, - "SpeechSynthesis": false, - "SpeechSynthesisErrorEvent": false, - "SpeechSynthesisEvent": false, - "SpeechSynthesisUtterance": false, - "SpeechSynthesisVoice": false, - "StaticRange": false, - "status": false, - "statusbar": false, - "StereoPannerNode": false, - "stop": false, - "Storage": false, - "StorageBucket": false, - "StorageBucketManager": false, - "StorageEvent": false, - "StorageManager": false, - "structuredClone": false, - "styleMedia": false, - "StylePropertyMap": false, - "StylePropertyMapReadOnly": false, - "StyleSheet": false, - "StyleSheetList": false, - "SubmitEvent": false, - "Subscriber": false, - "SubtleCrypto": false, - "Summarizer": false, - "SuppressedError": false, - "SVGAElement": false, - "SVGAngle": false, - "SVGAnimatedAngle": false, - "SVGAnimatedBoolean": false, - "SVGAnimatedEnumeration": false, - "SVGAnimatedInteger": false, - "SVGAnimatedLength": false, - "SVGAnimatedLengthList": false, - "SVGAnimatedNumber": false, - "SVGAnimatedNumberList": false, - "SVGAnimatedPreserveAspectRatio": false, - "SVGAnimatedRect": false, - "SVGAnimatedString": false, - "SVGAnimatedTransformList": false, - "SVGAnimateElement": false, - "SVGAnimateMotionElement": false, - "SVGAnimateTransformElement": false, - "SVGAnimationElement": false, - "SVGCircleElement": false, - "SVGClipPathElement": false, - "SVGComponentTransferFunctionElement": false, - "SVGDefsElement": false, - "SVGDescElement": false, - "SVGElement": false, - "SVGEllipseElement": false, - "SVGFEBlendElement": false, - "SVGFEColorMatrixElement": false, - "SVGFEComponentTransferElement": false, - "SVGFECompositeElement": false, - "SVGFEConvolveMatrixElement": false, - "SVGFEDiffuseLightingElement": false, - "SVGFEDisplacementMapElement": false, - "SVGFEDistantLightElement": false, - "SVGFEDropShadowElement": false, - "SVGFEFloodElement": false, - "SVGFEFuncAElement": false, - "SVGFEFuncBElement": false, - "SVGFEFuncGElement": false, - "SVGFEFuncRElement": false, - "SVGFEGaussianBlurElement": false, - "SVGFEImageElement": false, - "SVGFEMergeElement": false, - "SVGFEMergeNodeElement": false, - "SVGFEMorphologyElement": false, - "SVGFEOffsetElement": false, - "SVGFEPointLightElement": false, - "SVGFESpecularLightingElement": false, - "SVGFESpotLightElement": false, - "SVGFETileElement": false, - "SVGFETurbulenceElement": false, - "SVGFilterElement": false, - "SVGForeignObjectElement": false, - "SVGGElement": false, - "SVGGeometryElement": false, - "SVGGradientElement": false, - "SVGGraphicsElement": false, - "SVGImageElement": false, - "SVGLength": false, - "SVGLengthList": false, - "SVGLinearGradientElement": false, - "SVGLineElement": false, - "SVGMarkerElement": false, - "SVGMaskElement": false, - "SVGMatrix": false, - "SVGMetadataElement": false, - "SVGMPathElement": false, - "SVGNumber": false, - "SVGNumberList": false, - "SVGPathElement": false, - "SVGPatternElement": false, - "SVGPoint": false, - "SVGPointList": false, - "SVGPolygonElement": false, - "SVGPolylineElement": false, - "SVGPreserveAspectRatio": false, - "SVGRadialGradientElement": false, - "SVGRect": false, - "SVGRectElement": false, - "SVGScriptElement": false, - "SVGSetElement": false, - "SVGStopElement": false, - "SVGStringList": false, - "SVGStyleElement": false, - "SVGSVGElement": false, - "SVGSwitchElement": false, - "SVGSymbolElement": false, - "SVGTextContentElement": false, - "SVGTextElement": false, - "SVGTextPathElement": false, - "SVGTextPositioningElement": false, - "SVGTitleElement": false, - "SVGTransform": false, - "SVGTransformList": false, - "SVGTSpanElement": false, - "SVGUnitTypes": false, - "SVGUseElement": false, - "SVGViewElement": false, - "SyncManager": false, - "TaskAttributionTiming": false, - "TaskController": false, - "TaskPriorityChangeEvent": false, - "TaskSignal": false, - "TEMPORARY": false, - "Text": false, - "TextDecoder": false, - "TextDecoderStream": false, - "TextEncoder": false, - "TextEncoderStream": false, - "TextEvent": false, - "TextFormat": false, - "TextFormatUpdateEvent": false, - "TextMetrics": false, - "TextTrack": false, - "TextTrackCue": false, - "TextTrackCueList": false, - "TextTrackList": false, - "TextUpdateEvent": false, - "TimeEvent": false, - "TimeRanges": false, - "ToggleEvent": false, - "toolbar": false, - "top": false, - "Touch": false, - "TouchEvent": false, - "TouchList": false, - "TrackEvent": false, - "TransformStream": false, - "TransformStreamDefaultController": false, - "TransitionEvent": false, - "Translator": false, - "TreeWalker": false, - "TrustedHTML": false, - "TrustedScript": false, - "TrustedScriptURL": false, - "TrustedTypePolicy": false, - "TrustedTypePolicyFactory": false, - "trustedTypes": false, - "UIEvent": false, - "URL": false, - "URLPattern": false, - "URLSearchParams": false, - "USB": false, - "USBAlternateInterface": false, - "USBConfiguration": false, - "USBConnectionEvent": false, - "USBDevice": false, - "USBEndpoint": false, - "USBInterface": false, - "USBInTransferResult": false, - "USBIsochronousInTransferPacket": false, - "USBIsochronousInTransferResult": false, - "USBIsochronousOutTransferPacket": false, - "USBIsochronousOutTransferResult": false, - "USBOutTransferResult": false, - "UserActivation": false, - "ValidityState": false, - "VideoColorSpace": false, - "VideoDecoder": false, - "VideoEncoder": false, - "VideoFrame": false, - "VideoPlaybackQuality": false, - "viewport": false, - "Viewport": false, - "ViewTimeline": false, - "ViewTransition": false, - "ViewTransitionTypeSet": false, - "VirtualKeyboard": false, - "VirtualKeyboardGeometryChangeEvent": false, - "VisibilityStateEntry": false, - "visualViewport": false, - "VisualViewport": false, - "VTTCue": false, - "VTTRegion": false, - "WakeLock": false, - "WakeLockSentinel": false, - "WaveShaperNode": false, - "WebAssembly": false, - "WebGL2RenderingContext": false, - "WebGLActiveInfo": false, - "WebGLBuffer": false, - "WebGLContextEvent": false, - "WebGLFramebuffer": false, - "WebGLObject": false, - "WebGLProgram": false, - "WebGLQuery": false, - "WebGLRenderbuffer": false, - "WebGLRenderingContext": false, - "WebGLSampler": false, - "WebGLShader": false, - "WebGLShaderPrecisionFormat": false, - "WebGLSync": false, - "WebGLTexture": false, - "WebGLTransformFeedback": false, - "WebGLUniformLocation": false, - "WebGLVertexArrayObject": false, - "WebSocket": false, - "WebSocketError": false, - "WebSocketStream": false, - "WebTransport": false, - "WebTransportBidirectionalStream": false, - "WebTransportDatagramDuplexStream": false, - "WebTransportError": false, - "WebTransportReceiveStream": false, - "WebTransportSendStream": false, - "WGSLLanguageFeatures": false, - "WheelEvent": false, - "when": false, - "window": false, - "Window": false, - "WindowControlsOverlay": false, - "WindowControlsOverlayGeometryChangeEvent": false, - "Worker": false, - "Worklet": false, - "WorkletGlobalScope": false, - "WritableStream": false, - "WritableStreamDefaultController": false, - "WritableStreamDefaultWriter": false, - "XMLDocument": false, - "XMLHttpRequest": false, - "XMLHttpRequestEventTarget": false, - "XMLHttpRequestUpload": false, - "XMLSerializer": false, - "XPathEvaluator": false, - "XPathExpression": false, - "XPathResult": false, - "XRAnchor": false, - "XRAnchorSet": false, - "XRBoundedReferenceSpace": false, - "XRCamera": false, - "XRCPUDepthInformation": false, - "XRDepthInformation": false, - "XRDOMOverlayState": false, - "XRFrame": false, - "XRHand": false, - "XRHitTestResult": false, - "XRHitTestSource": false, - "XRInputSource": false, - "XRInputSourceArray": false, - "XRInputSourceEvent": false, - "XRInputSourcesChangeEvent": false, - "XRJointPose": false, - "XRJointSpace": false, - "XRLayer": false, - "XRLightEstimate": false, - "XRLightProbe": false, - "XRPose": false, - "XRRay": false, - "XRReferenceSpace": false, - "XRReferenceSpaceEvent": false, - "XRRenderState": false, - "XRRigidTransform": false, - "XRSession": false, - "XRSessionEvent": false, - "XRSpace": false, - "XRSystem": false, - "XRTransientInputHitTestResult": false, - "XRTransientInputHitTestSource": false, - "XRView": false, - "XRViewerPose": false, - "XRViewport": false, - "XRWebGLBinding": false, - "XRWebGLDepthInformation": false, - "XRWebGLLayer": false, - "XSLTProcessor": false - } - }, - "errors": [ - { - "message": "'top' is already defined as a built-in global variable." - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals Array */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 11, - "endLine": 1, - "endColumn": 16 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals parseInt */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'parseInt' is already defined as a built-in global variable.", - "line": 1, - "column": 11, - "endLine": 1, - "endColumn": 19 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals foo, Array */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 16, - "endLine": 1, - "endColumn": 21 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/* globals foo, Array, baz */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 17, - "endLine": 1, - "endColumn": 22 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*global foo, Array, baz*/ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 15, - "endLine": 1, - "endColumn": 20 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*global array, Array*/ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 17, - "endLine": 1, - "endColumn": 22 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals a,Array*/ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 13, - "endLine": 1, - "endColumn": 18 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals a:readonly, Array:writable */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 1, - "column": 23, - "endLine": 1, - "endColumn": 28 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js - -/*globals Array */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ - { - "message": "'Array' is already defined as a built-in global variable.", - "line": 2, - "column": 11, - "endLine": 2, - "endColumn": 16 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals -Array */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true + "globals": { + "AbortController": false, + "AbortSignal": false, + "AbsoluteOrientationSensor": false, + "AbstractRange": false, + "Accelerometer": false, + "addEventListener": false, + "ai": false, + "AI": false, + "AICreateMonitor": false, + "AITextSession": false, + "alert": false, + "AnalyserNode": false, + "Animation": false, + "AnimationEffect": false, + "AnimationEvent": false, + "AnimationPlaybackEvent": false, + "AnimationTimeline": false, + "AsyncDisposableStack": false, + "atob": false, + "Attr": false, + "Audio": false, + "AudioBuffer": false, + "AudioBufferSourceNode": false, + "AudioContext": false, + "AudioData": false, + "AudioDecoder": false, + "AudioDestinationNode": false, + "AudioEncoder": false, + "AudioListener": false, + "AudioNode": false, + "AudioParam": false, + "AudioParamMap": false, + "AudioProcessingEvent": false, + "AudioScheduledSourceNode": false, + "AudioSinkInfo": false, + "AudioWorklet": false, + "AudioWorkletGlobalScope": false, + "AudioWorkletNode": false, + "AudioWorkletProcessor": false, + "AuthenticatorAssertionResponse": false, + "AuthenticatorAttestationResponse": false, + "AuthenticatorResponse": false, + "BackgroundFetchManager": false, + "BackgroundFetchRecord": false, + "BackgroundFetchRegistration": false, + "BarcodeDetector": false, + "BarProp": false, + "BaseAudioContext": false, + "BatteryManager": false, + "BeforeUnloadEvent": false, + "BiquadFilterNode": false, + "Blob": false, + "BlobEvent": false, + "Bluetooth": false, + "BluetoothCharacteristicProperties": false, + "BluetoothDevice": false, + "BluetoothRemoteGATTCharacteristic": false, + "BluetoothRemoteGATTDescriptor": false, + "BluetoothRemoteGATTServer": false, + "BluetoothRemoteGATTService": false, + "BluetoothUUID": false, + "blur": false, + "BroadcastChannel": false, + "BrowserCaptureMediaStreamTrack": false, + "btoa": false, + "ByteLengthQueuingStrategy": false, + "Cache": false, + "caches": false, + "CacheStorage": false, + "cancelAnimationFrame": false, + "cancelIdleCallback": false, + "CanvasCaptureMediaStream": false, + "CanvasCaptureMediaStreamTrack": false, + "CanvasGradient": false, + "CanvasPattern": false, + "CanvasRenderingContext2D": false, + "CaptureController": false, + "CaretPosition": false, + "CDATASection": false, + "ChannelMergerNode": false, + "ChannelSplitterNode": false, + "ChapterInformation": false, + "CharacterBoundsUpdateEvent": false, + "CharacterData": false, + "clearInterval": false, + "clearTimeout": false, + "clientInformation": false, + "Clipboard": false, + "ClipboardChangeEvent": false, + "ClipboardEvent": false, + "ClipboardItem": false, + "close": false, + "closed": false, + "CloseEvent": false, + "CloseWatcher": false, + "CommandEvent": false, + "Comment": false, + "CompositionEvent": false, + "CompressionStream": false, + "confirm": false, + "console": false, + "ConstantSourceNode": false, + "ContentVisibilityAutoStateChangeEvent": false, + "ConvolverNode": false, + "CookieChangeEvent": false, + "CookieDeprecationLabel": false, + "cookieStore": false, + "CookieStore": false, + "CookieStoreManager": false, + "CountQueuingStrategy": false, + "createImageBitmap": false, + "CreateMonitor": false, + "Credential": false, + "credentialless": false, + "CredentialsContainer": false, + "CropTarget": false, + "crossOriginIsolated": false, + "crypto": false, + "Crypto": false, + "CryptoKey": false, + "CSPViolationReportBody": false, + "CSS": false, + "CSSAnimation": false, + "CSSConditionRule": false, + "CSSContainerRule": false, + "CSSCounterStyleRule": false, + "CSSFontFaceRule": false, + "CSSFontFeatureValuesRule": false, + "CSSFontPaletteValuesRule": false, + "CSSFunctionDeclarations": false, + "CSSFunctionDescriptors": false, + "CSSFunctionRule": false, + "CSSGroupingRule": false, + "CSSImageValue": false, + "CSSImportRule": false, + "CSSKeyframeRule": false, + "CSSKeyframesRule": false, + "CSSKeywordValue": false, + "CSSLayerBlockRule": false, + "CSSLayerStatementRule": false, + "CSSMarginRule": false, + "CSSMathClamp": false, + "CSSMathInvert": false, + "CSSMathMax": false, + "CSSMathMin": false, + "CSSMathNegate": false, + "CSSMathProduct": false, + "CSSMathSum": false, + "CSSMathValue": false, + "CSSMatrixComponent": false, + "CSSMediaRule": false, + "CSSNamespaceRule": false, + "CSSNestedDeclarations": false, + "CSSNumericArray": false, + "CSSNumericValue": false, + "CSSPageDescriptors": false, + "CSSPageRule": false, + "CSSPerspective": false, + "CSSPositionTryDescriptors": false, + "CSSPositionTryRule": false, + "CSSPositionValue": false, + "CSSPropertyRule": false, + "CSSRotate": false, + "CSSRule": false, + "CSSRuleList": false, + "CSSScale": false, + "CSSScopeRule": false, + "CSSSkew": false, + "CSSSkewX": false, + "CSSSkewY": false, + "CSSStartingStyleRule": false, + "CSSStyleDeclaration": false, + "CSSStyleRule": false, + "CSSStyleSheet": false, + "CSSStyleValue": false, + "CSSSupportsRule": false, + "CSSTransformComponent": false, + "CSSTransformValue": false, + "CSSTransition": false, + "CSSTranslate": false, + "CSSUnitValue": false, + "CSSUnparsedValue": false, + "CSSVariableReferenceValue": false, + "CSSViewTransitionRule": false, + "currentFrame": false, + "currentTime": false, + "CustomElementRegistry": false, + "customElements": false, + "CustomEvent": false, + "CustomStateSet": false, + "DataTransfer": false, + "DataTransferItem": false, + "DataTransferItemList": false, + "DecompressionStream": false, + "DelayNode": false, + "DelegatedInkTrailPresenter": false, + "DeviceMotionEvent": false, + "DeviceMotionEventAcceleration": false, + "DeviceMotionEventRotationRate": false, + "DeviceOrientationEvent": false, + "devicePixelRatio": false, + "DevicePosture": false, + "DigitalCredential": false, + "dispatchEvent": false, + "DisposableStack": false, + "document": false, + "Document": false, + "DocumentFragment": false, + "documentPictureInPicture": false, + "DocumentPictureInPicture": false, + "DocumentPictureInPictureEvent": false, + "DocumentTimeline": false, + "DocumentType": false, + "DOMError": false, + "DOMException": false, + "DOMImplementation": false, + "DOMMatrix": false, + "DOMMatrixReadOnly": false, + "DOMParser": false, + "DOMPoint": false, + "DOMPointReadOnly": false, + "DOMQuad": false, + "DOMRect": false, + "DOMRectList": false, + "DOMRectReadOnly": false, + "DOMStringList": false, + "DOMStringMap": false, + "DOMTokenList": false, + "DragEvent": false, + "DynamicsCompressorNode": false, + "EditContext": false, + "Element": false, + "ElementInternals": false, + "EncodedAudioChunk": false, + "EncodedVideoChunk": false, + "ErrorEvent": false, + "event": false, + "Event": false, + "EventCounts": false, + "EventSource": false, + "EventTarget": false, + "external": false, + "External": false, + "EyeDropper": false, + "FeaturePolicy": false, + "FederatedCredential": false, + "fence": false, + "Fence": false, + "FencedFrameConfig": false, + "fetch": false, + "fetchLater": false, + "FetchLaterResult": false, + "File": false, + "FileList": false, + "FileReader": false, + "FileSystem": false, + "FileSystemDirectoryEntry": false, + "FileSystemDirectoryHandle": false, + "FileSystemDirectoryReader": false, + "FileSystemEntry": false, + "FileSystemFileEntry": false, + "FileSystemFileHandle": false, + "FileSystemHandle": false, + "FileSystemObserver": false, + "FileSystemWritableFileStream": false, + "find": false, + "focus": false, + "FocusEvent": false, + "FontData": false, + "FontFace": false, + "FontFaceSet": false, + "FontFaceSetLoadEvent": false, + "FormData": false, + "FormDataEvent": false, + "FragmentDirective": false, + "frameElement": false, + "frames": false, + "GainNode": false, + "Gamepad": false, + "GamepadAxisMoveEvent": false, + "GamepadButton": false, + "GamepadButtonEvent": false, + "GamepadEvent": false, + "GamepadHapticActuator": false, + "GamepadPose": false, + "Geolocation": false, + "GeolocationCoordinates": false, + "GeolocationPosition": false, + "GeolocationPositionError": false, + "getComputedStyle": false, + "getScreenDetails": false, + "getSelection": false, + "GPU": false, + "GPUAdapter": false, + "GPUAdapterInfo": false, + "GPUBindGroup": false, + "GPUBindGroupLayout": false, + "GPUBuffer": false, + "GPUBufferUsage": false, + "GPUCanvasContext": false, + "GPUColorWrite": false, + "GPUCommandBuffer": false, + "GPUCommandEncoder": false, + "GPUCompilationInfo": false, + "GPUCompilationMessage": false, + "GPUComputePassEncoder": false, + "GPUComputePipeline": false, + "GPUDevice": false, + "GPUDeviceLostInfo": false, + "GPUError": false, + "GPUExternalTexture": false, + "GPUInternalError": false, + "GPUMapMode": false, + "GPUOutOfMemoryError": false, + "GPUPipelineError": false, + "GPUPipelineLayout": false, + "GPUQuerySet": false, + "GPUQueue": false, + "GPURenderBundle": false, + "GPURenderBundleEncoder": false, + "GPURenderPassEncoder": false, + "GPURenderPipeline": false, + "GPUSampler": false, + "GPUShaderModule": false, + "GPUShaderStage": false, + "GPUSupportedFeatures": false, + "GPUSupportedLimits": false, + "GPUTexture": false, + "GPUTextureUsage": false, + "GPUTextureView": false, + "GPUUncapturedErrorEvent": false, + "GPUValidationError": false, + "GravitySensor": false, + "Gyroscope": false, + "HashChangeEvent": false, + "Headers": false, + "HID": false, + "HIDConnectionEvent": false, + "HIDDevice": false, + "HIDInputReportEvent": false, + "Highlight": false, + "HighlightRegistry": false, + "history": false, + "History": false, + "HTMLAllCollection": false, + "HTMLAnchorElement": false, + "HTMLAreaElement": false, + "HTMLAudioElement": false, + "HTMLBaseElement": false, + "HTMLBodyElement": false, + "HTMLBRElement": false, + "HTMLButtonElement": false, + "HTMLCanvasElement": false, + "HTMLCollection": false, + "HTMLDataElement": false, + "HTMLDataListElement": false, + "HTMLDetailsElement": false, + "HTMLDialogElement": false, + "HTMLDirectoryElement": false, + "HTMLDivElement": false, + "HTMLDListElement": false, + "HTMLDocument": false, + "HTMLElement": false, + "HTMLEmbedElement": false, + "HTMLFencedFrameElement": false, + "HTMLFieldSetElement": false, + "HTMLFontElement": false, + "HTMLFormControlsCollection": false, + "HTMLFormElement": false, + "HTMLFrameElement": false, + "HTMLFrameSetElement": false, + "HTMLHeadElement": false, + "HTMLHeadingElement": false, + "HTMLHRElement": false, + "HTMLHtmlElement": false, + "HTMLIFrameElement": false, + "HTMLImageElement": false, + "HTMLInputElement": false, + "HTMLLabelElement": false, + "HTMLLegendElement": false, + "HTMLLIElement": false, + "HTMLLinkElement": false, + "HTMLMapElement": false, + "HTMLMarqueeElement": false, + "HTMLMediaElement": false, + "HTMLMenuElement": false, + "HTMLMetaElement": false, + "HTMLMeterElement": false, + "HTMLModElement": false, + "HTMLObjectElement": false, + "HTMLOListElement": false, + "HTMLOptGroupElement": false, + "HTMLOptionElement": false, + "HTMLOptionsCollection": false, + "HTMLOutputElement": false, + "HTMLParagraphElement": false, + "HTMLParamElement": false, + "HTMLPictureElement": false, + "HTMLPreElement": false, + "HTMLProgressElement": false, + "HTMLQuoteElement": false, + "HTMLScriptElement": false, + "HTMLSelectedContentElement": false, + "HTMLSelectElement": false, + "HTMLSlotElement": false, + "HTMLSourceElement": false, + "HTMLSpanElement": false, + "HTMLStyleElement": false, + "HTMLTableCaptionElement": false, + "HTMLTableCellElement": false, + "HTMLTableColElement": false, + "HTMLTableElement": false, + "HTMLTableRowElement": false, + "HTMLTableSectionElement": false, + "HTMLTemplateElement": false, + "HTMLTextAreaElement": false, + "HTMLTimeElement": false, + "HTMLTitleElement": false, + "HTMLTrackElement": false, + "HTMLUListElement": false, + "HTMLUnknownElement": false, + "HTMLVideoElement": false, + "IDBCursor": false, + "IDBCursorWithValue": false, + "IDBDatabase": false, + "IDBFactory": false, + "IDBIndex": false, + "IDBKeyRange": false, + "IDBObjectStore": false, + "IDBOpenDBRequest": false, + "IDBRecord": false, + "IDBRequest": false, + "IDBTransaction": false, + "IDBVersionChangeEvent": false, + "IdentityCredential": false, + "IdentityCredentialError": false, + "IdentityProvider": false, + "IdleDeadline": false, + "IdleDetector": false, + "IIRFilterNode": false, + "Image": false, + "ImageBitmap": false, + "ImageBitmapRenderingContext": false, + "ImageCapture": false, + "ImageData": false, + "ImageDecoder": false, + "ImageTrack": false, + "ImageTrackList": false, + "indexedDB": false, + "Ink": false, + "innerHeight": false, + "innerWidth": false, + "InputDeviceCapabilities": false, + "InputDeviceInfo": false, + "InputEvent": false, + "IntegrityViolationReportBody": false, + "InterestEvent": false, + "IntersectionObserver": false, + "IntersectionObserverEntry": false, + "isSecureContext": false, + "Keyboard": false, + "KeyboardEvent": false, + "KeyboardLayoutMap": false, + "KeyframeEffect": false, + "LanguageDetector": false, + "LargestContentfulPaint": false, + "LaunchParams": false, + "launchQueue": false, + "LaunchQueue": false, + "LayoutShift": false, + "LayoutShiftAttribution": false, + "length": false, + "LinearAccelerationSensor": false, + "localStorage": false, + "location": true, + "Location": false, + "locationbar": false, + "Lock": false, + "LockManager": false, + "matchMedia": false, + "MathMLElement": false, + "MediaCapabilities": false, + "MediaCapabilitiesInfo": false, + "MediaDeviceInfo": false, + "MediaDevices": false, + "MediaElementAudioSourceNode": false, + "MediaEncryptedEvent": false, + "MediaError": false, + "MediaKeyError": false, + "MediaKeyMessageEvent": false, + "MediaKeys": false, + "MediaKeySession": false, + "MediaKeyStatusMap": false, + "MediaKeySystemAccess": false, + "MediaList": false, + "MediaMetadata": false, + "MediaQueryList": false, + "MediaQueryListEvent": false, + "MediaRecorder": false, + "MediaRecorderErrorEvent": false, + "MediaSession": false, + "MediaSource": false, + "MediaSourceHandle": false, + "MediaStream": false, + "MediaStreamAudioDestinationNode": false, + "MediaStreamAudioSourceNode": false, + "MediaStreamEvent": false, + "MediaStreamTrack": false, + "MediaStreamTrackAudioSourceNode": false, + "MediaStreamTrackAudioStats": false, + "MediaStreamTrackEvent": false, + "MediaStreamTrackGenerator": false, + "MediaStreamTrackProcessor": false, + "MediaStreamTrackVideoStats": false, + "menubar": false, + "MessageChannel": false, + "MessageEvent": false, + "MessagePort": false, + "MIDIAccess": false, + "MIDIConnectionEvent": false, + "MIDIInput": false, + "MIDIInputMap": false, + "MIDIMessageEvent": false, + "MIDIOutput": false, + "MIDIOutputMap": false, + "MIDIPort": false, + "MimeType": false, + "MimeTypeArray": false, + "model": false, + "ModelGenericSession": false, + "ModelManager": false, + "MouseEvent": false, + "moveBy": false, + "moveTo": false, + "MutationEvent": false, + "MutationObserver": false, + "MutationRecord": false, + "name": false, + "NamedNodeMap": false, + "NavigateEvent": false, + "navigation": false, + "Navigation": false, + "NavigationActivation": false, + "NavigationCurrentEntryChangeEvent": false, + "NavigationDestination": false, + "NavigationHistoryEntry": false, + "NavigationPrecommitController": false, + "NavigationPreloadManager": false, + "NavigationTransition": false, + "navigator": false, + "Navigator": false, + "NavigatorLogin": false, + "NavigatorManagedData": false, + "NavigatorUAData": false, + "NetworkInformation": false, + "Node": false, + "NodeFilter": false, + "NodeIterator": false, + "NodeList": false, + "Notification": false, + "NotifyPaintEvent": false, + "NotRestoredReasonDetails": false, + "NotRestoredReasons": false, + "Observable": false, + "OfflineAudioCompletionEvent": false, + "OfflineAudioContext": false, + "offscreenBuffering": false, + "OffscreenCanvas": false, + "OffscreenCanvasRenderingContext2D": false, + "onabort": true, + "onafterprint": true, + "onanimationcancel": true, + "onanimationend": true, + "onanimationiteration": true, + "onanimationstart": true, + "onappinstalled": true, + "onauxclick": true, + "onbeforeinput": true, + "onbeforeinstallprompt": true, + "onbeforematch": true, + "onbeforeprint": true, + "onbeforetoggle": true, + "onbeforeunload": true, + "onbeforexrselect": true, + "onblur": true, + "oncancel": true, + "oncanplay": true, + "oncanplaythrough": true, + "onchange": true, + "onclick": true, + "onclose": true, + "oncommand": true, + "oncontentvisibilityautostatechange": true, + "oncontextlost": true, + "oncontextmenu": true, + "oncontextrestored": true, + "oncopy": true, + "oncuechange": true, + "oncut": true, + "ondblclick": true, + "ondevicemotion": true, + "ondeviceorientation": true, + "ondeviceorientationabsolute": true, + "ondrag": true, + "ondragend": true, + "ondragenter": true, + "ondragleave": true, + "ondragover": true, + "ondragstart": true, + "ondrop": true, + "ondurationchange": true, + "onemptied": true, + "onended": true, + "onerror": true, + "onfocus": true, + "onformdata": true, + "ongamepadconnected": true, + "ongamepaddisconnected": true, + "ongotpointercapture": true, + "onhashchange": true, + "oninput": true, + "oninvalid": true, + "onkeydown": true, + "onkeypress": true, + "onkeyup": true, + "onlanguagechange": true, + "onload": true, + "onloadeddata": true, + "onloadedmetadata": true, + "onloadstart": true, + "onlostpointercapture": true, + "onmessage": true, + "onmessageerror": true, + "onmousedown": true, + "onmouseenter": true, + "onmouseleave": true, + "onmousemove": true, + "onmouseout": true, + "onmouseover": true, + "onmouseup": true, + "onmousewheel": true, + "onoffline": true, + "ononline": true, + "onpagehide": true, + "onpagereveal": true, + "onpageshow": true, + "onpageswap": true, + "onpaste": true, + "onpause": true, + "onplay": true, + "onplaying": true, + "onpointercancel": true, + "onpointerdown": true, + "onpointerenter": true, + "onpointerleave": true, + "onpointermove": true, + "onpointerout": true, + "onpointerover": true, + "onpointerrawupdate": true, + "onpointerup": true, + "onpopstate": true, + "onprogress": true, + "onratechange": true, + "onrejectionhandled": true, + "onreset": true, + "onresize": true, + "onscroll": true, + "onscrollend": true, + "onscrollsnapchange": true, + "onscrollsnapchanging": true, + "onsearch": true, + "onsecuritypolicyviolation": true, + "onseeked": true, + "onseeking": true, + "onselect": true, + "onselectionchange": true, + "onselectstart": true, + "onslotchange": true, + "onstalled": true, + "onstorage": true, + "onsubmit": true, + "onsuspend": true, + "ontimeupdate": true, + "ontoggle": true, + "ontransitioncancel": true, + "ontransitionend": true, + "ontransitionrun": true, + "ontransitionstart": true, + "onunhandledrejection": true, + "onunload": true, + "onvolumechange": true, + "onwaiting": true, + "onwheel": true, + "open": false, + "opener": false, + "Option": false, + "OrientationSensor": false, + "origin": false, + "originAgentCluster": false, + "OscillatorNode": false, + "OTPCredential": false, + "outerHeight": false, + "outerWidth": false, + "OverconstrainedError": false, + "PageRevealEvent": false, + "PageSwapEvent": false, + "PageTransitionEvent": false, + "pageXOffset": false, + "pageYOffset": false, + "PannerNode": false, + "parent": false, + "PasswordCredential": false, + "Path2D": false, + "PaymentAddress": false, + "PaymentManager": false, + "PaymentMethodChangeEvent": false, + "PaymentRequest": false, + "PaymentRequestUpdateEvent": false, + "PaymentResponse": false, + "performance": false, + "Performance": false, + "PerformanceElementTiming": false, + "PerformanceEntry": false, + "PerformanceEventTiming": false, + "PerformanceLongAnimationFrameTiming": false, + "PerformanceLongTaskTiming": false, + "PerformanceMark": false, + "PerformanceMeasure": false, + "PerformanceNavigation": false, + "PerformanceNavigationTiming": false, + "PerformanceObserver": false, + "PerformanceObserverEntryList": false, + "PerformancePaintTiming": false, + "PerformanceResourceTiming": false, + "PerformanceScriptTiming": false, + "PerformanceServerTiming": false, + "PerformanceTiming": false, + "PeriodicSyncManager": false, + "PeriodicWave": false, + "Permissions": false, + "PermissionStatus": false, + "PERSISTENT": false, + "personalbar": false, + "PictureInPictureEvent": false, + "PictureInPictureWindow": false, + "Plugin": false, + "PluginArray": false, + "PointerEvent": false, + "PopStateEvent": false, + "postMessage": false, + "Presentation": false, + "PresentationAvailability": false, + "PresentationConnection": false, + "PresentationConnectionAvailableEvent": false, + "PresentationConnectionCloseEvent": false, + "PresentationConnectionList": false, + "PresentationReceiver": false, + "PresentationRequest": false, + "PressureObserver": false, + "PressureRecord": false, + "print": false, + "ProcessingInstruction": false, + "Profiler": false, + "ProgressEvent": false, + "PromiseRejectionEvent": false, + "prompt": false, + "ProtectedAudience": false, + "PublicKeyCredential": false, + "PushManager": false, + "PushSubscription": false, + "PushSubscriptionOptions": false, + "queryLocalFonts": false, + "queueMicrotask": false, + "QuotaExceededError": false, + "RadioNodeList": false, + "Range": false, + "ReadableByteStreamController": false, + "ReadableStream": false, + "ReadableStreamBYOBReader": false, + "ReadableStreamBYOBRequest": false, + "ReadableStreamDefaultController": false, + "ReadableStreamDefaultReader": false, + "registerProcessor": false, + "RelativeOrientationSensor": false, + "RemotePlayback": false, + "removeEventListener": false, + "ReportBody": false, + "reportError": false, + "ReportingObserver": false, + "Request": false, + "requestAnimationFrame": false, + "requestIdleCallback": false, + "resizeBy": false, + "ResizeObserver": false, + "ResizeObserverEntry": false, + "ResizeObserverSize": false, + "resizeTo": false, + "Response": false, + "RestrictionTarget": false, + "RTCCertificate": false, + "RTCDataChannel": false, + "RTCDataChannelEvent": false, + "RTCDtlsTransport": false, + "RTCDTMFSender": false, + "RTCDTMFToneChangeEvent": false, + "RTCEncodedAudioFrame": false, + "RTCEncodedVideoFrame": false, + "RTCError": false, + "RTCErrorEvent": false, + "RTCIceCandidate": false, + "RTCIceTransport": false, + "RTCPeerConnection": false, + "RTCPeerConnectionIceErrorEvent": false, + "RTCPeerConnectionIceEvent": false, + "RTCRtpReceiver": false, + "RTCRtpScriptTransform": false, + "RTCRtpSender": false, + "RTCRtpTransceiver": false, + "RTCSctpTransport": false, + "RTCSessionDescription": false, + "RTCStatsReport": false, + "RTCTrackEvent": false, + "sampleRate": false, + "scheduler": false, + "Scheduler": false, + "Scheduling": false, + "screen": false, + "Screen": false, + "ScreenDetailed": false, + "ScreenDetails": false, + "screenLeft": false, + "ScreenOrientation": false, + "screenTop": false, + "screenX": false, + "screenY": false, + "ScriptProcessorNode": false, + "scroll": false, + "scrollbars": false, + "scrollBy": false, + "ScrollTimeline": false, + "scrollTo": false, + "scrollX": false, + "scrollY": false, + "SecurityPolicyViolationEvent": false, + "Selection": false, + "self": false, + "Sensor": false, + "SensorErrorEvent": false, + "Serial": false, + "SerialPort": false, + "ServiceWorker": false, + "ServiceWorkerContainer": false, + "ServiceWorkerRegistration": false, + "sessionStorage": false, + "setInterval": false, + "setTimeout": false, + "ShadowRoot": false, + "sharedStorage": false, + "SharedStorage": false, + "SharedStorageAppendMethod": false, + "SharedStorageClearMethod": false, + "SharedStorageDeleteMethod": false, + "SharedStorageModifierMethod": false, + "SharedStorageSetMethod": false, + "SharedStorageWorklet": false, + "SharedWorker": false, + "showDirectoryPicker": false, + "showOpenFilePicker": false, + "showSaveFilePicker": false, + "SnapEvent": false, + "SourceBuffer": false, + "SourceBufferList": false, + "SpeechGrammar": false, + "SpeechGrammarList": false, + "SpeechRecognition": false, + "SpeechRecognitionErrorEvent": false, + "SpeechRecognitionEvent": false, + "SpeechRecognitionPhrase": false, + "speechSynthesis": false, + "SpeechSynthesis": false, + "SpeechSynthesisErrorEvent": false, + "SpeechSynthesisEvent": false, + "SpeechSynthesisUtterance": false, + "SpeechSynthesisVoice": false, + "StaticRange": false, + "status": false, + "statusbar": false, + "StereoPannerNode": false, + "stop": false, + "Storage": false, + "StorageBucket": false, + "StorageBucketManager": false, + "StorageEvent": false, + "StorageManager": false, + "structuredClone": false, + "styleMedia": false, + "StylePropertyMap": false, + "StylePropertyMapReadOnly": false, + "StyleSheet": false, + "StyleSheetList": false, + "SubmitEvent": false, + "Subscriber": false, + "SubtleCrypto": false, + "Summarizer": false, + "SuppressedError": false, + "SVGAElement": false, + "SVGAngle": false, + "SVGAnimatedAngle": false, + "SVGAnimatedBoolean": false, + "SVGAnimatedEnumeration": false, + "SVGAnimatedInteger": false, + "SVGAnimatedLength": false, + "SVGAnimatedLengthList": false, + "SVGAnimatedNumber": false, + "SVGAnimatedNumberList": false, + "SVGAnimatedPreserveAspectRatio": false, + "SVGAnimatedRect": false, + "SVGAnimatedString": false, + "SVGAnimatedTransformList": false, + "SVGAnimateElement": false, + "SVGAnimateMotionElement": false, + "SVGAnimateTransformElement": false, + "SVGAnimationElement": false, + "SVGCircleElement": false, + "SVGClipPathElement": false, + "SVGComponentTransferFunctionElement": false, + "SVGDefsElement": false, + "SVGDescElement": false, + "SVGElement": false, + "SVGEllipseElement": false, + "SVGFEBlendElement": false, + "SVGFEColorMatrixElement": false, + "SVGFEComponentTransferElement": false, + "SVGFECompositeElement": false, + "SVGFEConvolveMatrixElement": false, + "SVGFEDiffuseLightingElement": false, + "SVGFEDisplacementMapElement": false, + "SVGFEDistantLightElement": false, + "SVGFEDropShadowElement": false, + "SVGFEFloodElement": false, + "SVGFEFuncAElement": false, + "SVGFEFuncBElement": false, + "SVGFEFuncGElement": false, + "SVGFEFuncRElement": false, + "SVGFEGaussianBlurElement": false, + "SVGFEImageElement": false, + "SVGFEMergeElement": false, + "SVGFEMergeNodeElement": false, + "SVGFEMorphologyElement": false, + "SVGFEOffsetElement": false, + "SVGFEPointLightElement": false, + "SVGFESpecularLightingElement": false, + "SVGFESpotLightElement": false, + "SVGFETileElement": false, + "SVGFETurbulenceElement": false, + "SVGFilterElement": false, + "SVGForeignObjectElement": false, + "SVGGElement": false, + "SVGGeometryElement": false, + "SVGGradientElement": false, + "SVGGraphicsElement": false, + "SVGImageElement": false, + "SVGLength": false, + "SVGLengthList": false, + "SVGLinearGradientElement": false, + "SVGLineElement": false, + "SVGMarkerElement": false, + "SVGMaskElement": false, + "SVGMatrix": false, + "SVGMetadataElement": false, + "SVGMPathElement": false, + "SVGNumber": false, + "SVGNumberList": false, + "SVGPathElement": false, + "SVGPatternElement": false, + "SVGPoint": false, + "SVGPointList": false, + "SVGPolygonElement": false, + "SVGPolylineElement": false, + "SVGPreserveAspectRatio": false, + "SVGRadialGradientElement": false, + "SVGRect": false, + "SVGRectElement": false, + "SVGScriptElement": false, + "SVGSetElement": false, + "SVGStopElement": false, + "SVGStringList": false, + "SVGStyleElement": false, + "SVGSVGElement": false, + "SVGSwitchElement": false, + "SVGSymbolElement": false, + "SVGTextContentElement": false, + "SVGTextElement": false, + "SVGTextPathElement": false, + "SVGTextPositioningElement": false, + "SVGTitleElement": false, + "SVGTransform": false, + "SVGTransformList": false, + "SVGTSpanElement": false, + "SVGUnitTypes": false, + "SVGUseElement": false, + "SVGViewElement": false, + "SyncManager": false, + "TaskAttributionTiming": false, + "TaskController": false, + "TaskPriorityChangeEvent": false, + "TaskSignal": false, + "TEMPORARY": false, + "Text": false, + "TextDecoder": false, + "TextDecoderStream": false, + "TextEncoder": false, + "TextEncoderStream": false, + "TextEvent": false, + "TextFormat": false, + "TextFormatUpdateEvent": false, + "TextMetrics": false, + "TextTrack": false, + "TextTrackCue": false, + "TextTrackCueList": false, + "TextTrackList": false, + "TextUpdateEvent": false, + "TimeEvent": false, + "TimeRanges": false, + "ToggleEvent": false, + "toolbar": false, + "top": false, + "Touch": false, + "TouchEvent": false, + "TouchList": false, + "TrackEvent": false, + "TransformStream": false, + "TransformStreamDefaultController": false, + "TransitionEvent": false, + "Translator": false, + "TreeWalker": false, + "TrustedHTML": false, + "TrustedScript": false, + "TrustedScriptURL": false, + "TrustedTypePolicy": false, + "TrustedTypePolicyFactory": false, + "trustedTypes": false, + "UIEvent": false, + "URL": false, + "URLPattern": false, + "URLSearchParams": false, + "USB": false, + "USBAlternateInterface": false, + "USBConfiguration": false, + "USBConnectionEvent": false, + "USBDevice": false, + "USBEndpoint": false, + "USBInterface": false, + "USBInTransferResult": false, + "USBIsochronousInTransferPacket": false, + "USBIsochronousInTransferResult": false, + "USBIsochronousOutTransferPacket": false, + "USBIsochronousOutTransferResult": false, + "USBOutTransferResult": false, + "UserActivation": false, + "ValidityState": false, + "VideoColorSpace": false, + "VideoDecoder": false, + "VideoEncoder": false, + "VideoFrame": false, + "VideoPlaybackQuality": false, + "viewport": false, + "Viewport": false, + "ViewTimeline": false, + "ViewTransition": false, + "ViewTransitionTypeSet": false, + "VirtualKeyboard": false, + "VirtualKeyboardGeometryChangeEvent": false, + "VisibilityStateEntry": false, + "visualViewport": false, + "VisualViewport": false, + "VTTCue": false, + "VTTRegion": false, + "WakeLock": false, + "WakeLockSentinel": false, + "WaveShaperNode": false, + "WebAssembly": false, + "WebGL2RenderingContext": false, + "WebGLActiveInfo": false, + "WebGLBuffer": false, + "WebGLContextEvent": false, + "WebGLFramebuffer": false, + "WebGLObject": false, + "WebGLProgram": false, + "WebGLQuery": false, + "WebGLRenderbuffer": false, + "WebGLRenderingContext": false, + "WebGLSampler": false, + "WebGLShader": false, + "WebGLShaderPrecisionFormat": false, + "WebGLSync": false, + "WebGLTexture": false, + "WebGLTransformFeedback": false, + "WebGLUniformLocation": false, + "WebGLVertexArrayObject": false, + "WebSocket": false, + "WebSocketError": false, + "WebSocketStream": false, + "WebTransport": false, + "WebTransportBidirectionalStream": false, + "WebTransportDatagramDuplexStream": false, + "WebTransportError": false, + "WebTransportReceiveStream": false, + "WebTransportSendStream": false, + "WGSLLanguageFeatures": false, + "WheelEvent": false, + "when": false, + "window": false, + "Window": false, + "WindowControlsOverlay": false, + "WindowControlsOverlayGeometryChangeEvent": false, + "Worker": false, + "Worklet": false, + "WorkletGlobalScope": false, + "WritableStream": false, + "WritableStreamDefaultController": false, + "WritableStreamDefaultWriter": false, + "XMLDocument": false, + "XMLHttpRequest": false, + "XMLHttpRequestEventTarget": false, + "XMLHttpRequestUpload": false, + "XMLSerializer": false, + "XPathEvaluator": false, + "XPathExpression": false, + "XPathResult": false, + "XRAnchor": false, + "XRAnchorSet": false, + "XRBoundedReferenceSpace": false, + "XRCamera": false, + "XRCPUDepthInformation": false, + "XRDepthInformation": false, + "XRDOMOverlayState": false, + "XRFrame": false, + "XRHand": false, + "XRHitTestResult": false, + "XRHitTestSource": false, + "XRInputSource": false, + "XRInputSourceArray": false, + "XRInputSourceEvent": false, + "XRInputSourcesChangeEvent": false, + "XRJointPose": false, + "XRJointSpace": false, + "XRLayer": false, + "XRLightEstimate": false, + "XRLightProbe": false, + "XRPose": false, + "XRRay": false, + "XRReferenceSpace": false, + "XRReferenceSpaceEvent": false, + "XRRenderState": false, + "XRRigidTransform": false, + "XRSession": false, + "XRSessionEvent": false, + "XRSpace": false, + "XRSystem": false, + "XRTransientInputHitTestResult": false, + "XRTransientInputHitTestSource": false, + "XRView": false, + "XRViewerPose": false, + "XRViewport": false, + "XRWebGLBinding": false, + "XRWebGLDepthInformation": false, + "XRWebGLLayer": false, + "XSLTProcessor": false } - ], + }, "errors": [ { - "message": "'Array' is already defined as a built-in global variable.", - "line": 2, - "column": 1, - "endLine": 2, - "endColumn": 6 + "message": "'top' is already defined as a built-in global variable." } ] } @@ -9929,10 +6614,7 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] #### no-redeclare > invalid ```js - -/*globals - -Array*/ +var a; var {a = 0, b: Object = 0} = {}; ``` ```json @@ -9942,57 +6624,36 @@ Array*/ "builtinGlobals": true } ], + "languageOptions": { + "ecmaVersion": 6 + }, "errors": [ { - "message": "'Array' is already defined as a built-in global variable.", - "line": 4, - "column": 1, - "endLine": 4, - "endColumn": 6 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals foo, - Array */ -``` - -```json -{ - "options": [ - { - "builtinGlobals": true - } - ], - "errors": [ + "message": "'a' is already defined." + }, { - "message": "'Array' is already defined as a built-in global variable.", - "line": 2, - "column": 5, - "endLine": 2, - "endColumn": 10 + "message": "'Object' is already defined as a built-in global variable." } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 2 errors but had 1: [ + { + ruleId: 'rule-to-test/no-redeclare', + message: "'a' is already defined.", + messageId: 'redeclared', + severity: 1, + nodeType: 'Identifier', + line: 1, + column: 12, + endLine: 1, + endColumn: 13, + suggestions: null + } +] -0 !== 1 +1 !== 2 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -10003,7 +6664,7 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] #### no-redeclare > invalid ```js -/*globals a */ +var globalThis = 0; ``` ```json @@ -10014,17 +6675,11 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] } ], "languageOptions": { - "globals": { - "a": "readonly" - } + "ecmaVersion": 2020 }, "errors": [ { - "message": "'a' is already defined as a built-in global variable.", - "line": 1, - "column": 11, - "endLine": 1, - "endColumn": 12 + "message": "'globalThis' is already defined as a built-in global variable." } ] } @@ -10043,7 +6698,7 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] #### no-redeclare > invalid ```js -/*globals a */ +var a; var {a = 0, b: globalThis = 0} = {}; ``` ```json @@ -10054,55 +6709,35 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] } ], "languageOptions": { - "globals": { - "a": "writable" - } + "ecmaVersion": 2020 }, "errors": [ { - "message": "'a' is already defined as a built-in global variable.", - "line": 1, - "column": 11, - "endLine": 1, - "endColumn": 12 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] - -0 !== 1 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -#### no-redeclare > invalid - -```js -/*globals a */ /*globals a */ -``` - -```json -{ - "errors": [ + "message": "'a' is already defined." + }, { - "message": "'a' is already defined.", - "line": 1, - "column": 26, - "endLine": 1, - "endColumn": 27 + "message": "'globalThis' is already defined as a built-in global variable." } ] } ``` -AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] +AssertionError [ERR_ASSERTION]: Should have 2 errors but had 1: [ + { + ruleId: 'rule-to-test/no-redeclare', + message: "'a' is already defined.", + messageId: 'redeclared', + severity: 1, + nodeType: 'Identifier', + line: 1, + column: 12, + endLine: 1, + endColumn: 13, + suggestions: null + } +] -0 !== 1 +1 !== 2 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) @@ -10113,7 +6748,7 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] #### no-redeclare > invalid ```js -/*globals a */ /*globals a */ var a = 0 +/*global b:false*/ var b = 1; ``` ```json @@ -10123,148 +6758,64 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] "builtinGlobals": true } ], - "languageOptions": { - "globals": { - "a": "writable" - } - }, "errors": [ { - "message": "'a' is already defined as a built-in global variable.", - "line": 1, - "column": 11, - "endLine": 1, - "endColumn": 12 - }, - { - "message": "'a' is already defined as a built-in global variable.", - "line": 1, - "column": 26, - "endLine": 1, - "endColumn": 27 - }, - { - "message": "'a' is already defined as a built-in global variable.", + "message": "'b' is already defined by a variable declaration.", "line": 1, - "column": 35, + "column": 10, "endLine": 1, - "endColumn": 36 - } - ] -} -``` - -AssertionError [ERR_ASSERTION]: Should have 3 errors but had 0: [] - -0 !== 3 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) - at runInvalidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js - - -### `no-restricted-imports` - -Pass: 253 / 254 (99.6%) -Fail: 1 / 254 (0.4%) -Skip: 0 / 254 (0.0%) - -#### no-restricted-imports > valid - -```js -import { -AllowedObject, -DisallowedObject, // eslint-disable-line -} from "foo"; -``` - -```json -{ - "options": [ - { - "paths": [ - { - "name": "foo", - "importNames": [ - "DisallowedObject" - ] - } - ] + "endColumn": 11 } ] } ``` -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-restricted-imports', - message: "'DisallowedObject' import from 'foo' is restricted.", - messageId: 'importName', - severity: 1, - nodeType: 'Identifier', - line: 3, - column: 0, - endLine: 3, - endColumn: 16, - suggestions: null - } -] - -1 !== 0 - - at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) - at apps/oxlint/dist/index.js +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] +0 !== 1 -### `no-setter-return` + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js -Pass: 163 / 164 (99.4%) -Fail: 1 / 164 (0.6%) -Skip: 0 / 164 (0.0%) -#### no-setter-return > valid +#### no-redeclare > invalid ```js -/* globals Object:off */ Object.defineProperty(foo, 'bar', { set(val) { return 1; } }) +/*global b:true*/ var b = 1; ``` ```json -{} +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'b' is already defined by a variable declaration.", + "line": 1, + "column": 10, + "endLine": 1, + "endColumn": 11 + } + ] +} ``` -AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ - { - ruleId: 'rule-to-test/no-setter-return', - message: 'Setter cannot return a value.', - messageId: 'returnsValue', - severity: 1, - nodeType: 'ReturnStatement', - line: 1, - column: 72, - endLine: 1, - endColumn: 81, - suggestions: null - } -] +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] -1 !== 0 +0 !== 1 at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) - at assertValidTestCasePasses (apps/oxlint/dist/index.js) - at runValidTestCase (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) at apps/oxlint/dist/index.js -### `no-shadow` - -Pass: 306 / 308 (99.4%) -Fail: 2 / 308 (0.6%) -Skip: 0 / 308 (0.0%) - -#### no-shadow > invalid +#### no-redeclare > invalid ```js var Object = 0; @@ -10272,24 +6823,9 @@ var Object = 0; ```json { - "options": [ - { - "builtinGlobals": true - } - ], - "languageOptions": { - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true - } - } - }, "errors": [ { - "messageId": "noShadowGlobal", - "data": { - "name": "Object" - } + "message": "'Object' is already defined as a built-in global variable." } ] } @@ -10305,7 +6841,7 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] at apps/oxlint/dist/index.js -#### no-shadow > invalid +#### no-redeclare > invalid ```js var top = 0; @@ -10313,17 +6849,7 @@ var top = 0; ```json { - "options": [ - { - "builtinGlobals": true - } - ], "languageOptions": { - "parserOptions": { - "ecmaFeatures": { - "globalReturn": true - } - }, "globals": { "AbortController": false, "AbortSignal": false, @@ -11498,10 +8024,543 @@ var top = 0; }, "errors": [ { - "messageId": "noShadowGlobal", - "data": { - "name": "top" - } + "message": "'top' is already defined as a built-in global variable." + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals Array */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 11, + "endLine": 1, + "endColumn": 16 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals parseInt */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'parseInt' is already defined as a built-in global variable.", + "line": 1, + "column": 11, + "endLine": 1, + "endColumn": 19 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals foo, Array */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 16, + "endLine": 1, + "endColumn": 21 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/* globals foo, Array, baz */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 17, + "endLine": 1, + "endColumn": 22 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*global foo, Array, baz*/ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 15, + "endLine": 1, + "endColumn": 20 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*global array, Array*/ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 17, + "endLine": 1, + "endColumn": 22 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals a,Array*/ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 13, + "endLine": 1, + "endColumn": 18 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals a:readonly, Array:writable */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 1, + "column": 23, + "endLine": 1, + "endColumn": 28 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js + +/*globals Array */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 2, + "column": 11, + "endLine": 2, + "endColumn": 16 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals +Array */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 2, + "column": 1, + "endLine": 2, + "endColumn": 6 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js + +/*globals + +Array*/ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 4, + "column": 1, + "endLine": 4, + "endColumn": 6 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals foo, + Array */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "errors": [ + { + "message": "'Array' is already defined as a built-in global variable.", + "line": 2, + "column": 5, + "endLine": 2, + "endColumn": 10 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals a */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "languageOptions": { + "globals": { + "a": "readonly" + } + }, + "errors": [ + { + "message": "'a' is already defined as a built-in global variable.", + "line": 1, + "column": 11, + "endLine": 1, + "endColumn": 12 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals a */ +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "languageOptions": { + "globals": { + "a": "writable" + } + }, + "errors": [ + { + "message": "'a' is already defined as a built-in global variable.", + "line": 1, + "column": 11, + "endLine": 1, + "endColumn": 12 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] + +0 !== 1 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +#### no-redeclare > invalid + +```js +/*globals a */ /*globals a */ +``` + +```json +{ + "errors": [ + { + "message": "'a' is already defined.", + "line": 1, + "column": 26, + "endLine": 1, + "endColumn": 27 } ] } @@ -11517,6 +8576,154 @@ AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: [] at apps/oxlint/dist/index.js +#### no-redeclare > invalid + +```js +/*globals a */ /*globals a */ var a = 0 +``` + +```json +{ + "options": [ + { + "builtinGlobals": true + } + ], + "languageOptions": { + "globals": { + "a": "writable" + } + }, + "errors": [ + { + "message": "'a' is already defined as a built-in global variable.", + "line": 1, + "column": 11, + "endLine": 1, + "endColumn": 12 + }, + { + "message": "'a' is already defined as a built-in global variable.", + "line": 1, + "column": 26, + "endLine": 1, + "endColumn": 27 + }, + { + "message": "'a' is already defined as a built-in global variable.", + "line": 1, + "column": 35, + "endLine": 1, + "endColumn": 36 + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have 3 errors but had 0: [] + +0 !== 3 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertInvalidTestCasePasses (apps/oxlint/dist/index.js) + at runInvalidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +### `no-restricted-imports` + +Pass: 253 / 254 (99.6%) +Fail: 1 / 254 (0.4%) +Skip: 0 / 254 (0.0%) + +#### no-restricted-imports > valid + +```js +import { +AllowedObject, +DisallowedObject, // eslint-disable-line +} from "foo"; +``` + +```json +{ + "options": [ + { + "paths": [ + { + "name": "foo", + "importNames": [ + "DisallowedObject" + ] + } + ] + } + ] +} +``` + +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-restricted-imports', + message: "'DisallowedObject' import from 'foo' is restricted.", + messageId: 'importName', + severity: 1, + nodeType: 'Identifier', + line: 3, + column: 0, + endLine: 3, + endColumn: 16, + suggestions: null + } +] + +1 !== 0 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + +### `no-setter-return` + +Pass: 163 / 164 (99.4%) +Fail: 1 / 164 (0.6%) +Skip: 0 / 164 (0.0%) + +#### no-setter-return > valid + +```js +/* globals Object:off */ Object.defineProperty(foo, 'bar', { set(val) { return 1; } }) +``` + +```json +{} +``` + +AssertionError [ERR_ASSERTION]: Should have no errors but had 1: [ + { + ruleId: 'rule-to-test/no-setter-return', + message: 'Setter cannot return a value.', + messageId: 'returnsValue', + severity: 1, + nodeType: 'ReturnStatement', + line: 1, + column: 72, + endLine: 1, + endColumn: 81, + suggestions: null + } +] + +1 !== 0 + + at assertErrorCountIsCorrect (apps/oxlint/dist/index.js) + at assertValidTestCasePasses (apps/oxlint/dist/index.js) + at runValidTestCase (apps/oxlint/dist/index.js) + at apps/oxlint/dist/index.js + + ### `no-undef` Pass: 88 / 94 (93.6%) diff --git a/apps/oxlint/conformance/tester.ts b/apps/oxlint/conformance/tester.ts index 61098b0a16069..6709ee049b5dc 100644 --- a/apps/oxlint/conformance/tester.ts +++ b/apps/oxlint/conformance/tester.ts @@ -19,8 +19,20 @@ import type { RuleTester as OxlintRuleTesterTypes } from "#oxlint"; type ValidTestCase = OxlintRuleTesterTypes.ValidTestCase; type InvalidTestCase = OxlintRuleTesterTypes.InvalidTestCase; -type ValidTestCaseWithoutCode = Omit & { code?: string }; -type InvalidTestCaseWithoutCode = Omit & { code?: string }; +type ExtraCaseProps = { + code?: string; + languageOptions?: { + parserOptions?: { + ecmaFeatures?: { + globalReturn?: boolean; + impliedStrict?: boolean; + }; + }; + }; +}; + +type ValidTestCaseWithoutCode = Omit & ExtraCaseProps; +type InvalidTestCaseWithoutCode = Omit & ExtraCaseProps; type TestCaseWithoutCode = ValidTestCaseWithoutCode | InvalidTestCaseWithoutCode; // Reset `describe` + `it` to simple pass-through functions. diff --git a/apps/oxlint/src-js/package/rule_tester.ts b/apps/oxlint/src-js/package/rule_tester.ts index d3da5493c3c19..699ce1695e2e4 100644 --- a/apps/oxlint/src-js/package/rule_tester.ts +++ b/apps/oxlint/src-js/package/rule_tester.ts @@ -16,6 +16,7 @@ import { lintFileImpl, resetStateAfterError } from "../plugins/lint.ts"; import { getLineColumnFromOffset, getNodeByRangeIndex } from "../plugins/location.ts"; import { allOptions, setOptions, DEFAULT_OPTIONS_ID } from "../plugins/options.ts"; import { diagnostics, replacePlaceholders, PLACEHOLDER_REGEX } from "../plugins/report.ts"; +import { analyzeOptionsOverride } from "../plugins/scope.ts"; import { parse } from "./parse.ts"; import type { RequireAtLeastOne } from "type-fest"; @@ -197,6 +198,23 @@ interface EcmaFeatures { jsx?: boolean; } +/** + * ECMA features config, with `globalReturn` and `impliedStrict` properties. + * These properties should not be present in `ecmaFeatures` config, + * but could be if test cases are ported from ESLint. + * For internal use only. + */ +interface EcmaFeaturesInternal extends EcmaFeatures { + /** + * `true` if file is parsed with top-level `return` statements allowed. + */ + globalReturn?: boolean; + /** + * `true` if file is parsed as strict mode code. + */ + impliedStrict?: boolean; +} + /** * Parser language. */ @@ -980,7 +998,7 @@ function lint(test: TestCase, plugin: Plugin): Diagnostic[] { // In conformance tests, set `context.languageOptions.ecmaVersion`. // This is not supported outside of conformance tests. - if (CONFORMANCE) setEcmaVersionContext(test); + if (CONFORMANCE) setEcmaVersionAndFeatures(test); // Get globals and settings const globalsJSON: string = getGlobalsJson(test); @@ -1208,14 +1226,19 @@ function setupOptions(test: TestCase): number { } /** - * Inject `context.languageOptions.ecmaVersion` into `context.languageOptions`. + * Inject: + * - `languageOptions.ecmaVersion` into `context.languageOptions`. + * - `languageOptions.parserOptions.ecmaFeatures.globalReturn` into scope analyzer options. + * - `languageOptions.parserOptions.ecmaFeatures.impliedStrict` into scope analyzer options. + * * This is only supported in conformance tests, where it's necessary to pass some tests. - * Oxlint doesn't support any version except latest. + * Oxlint doesn't support any ECMA version except latest, or the `globalReturn` or `impliedStrict` ECMA features. * @param test - Test case */ -function setEcmaVersionContext(test: TestCase) { +function setEcmaVersionAndFeatures(test: TestCase) { if (!CONFORMANCE) throw new Error("Should be unreachable outside of conformance tests"); + // Set `ecmaVersion`. // Same logic as ESLint's `normalizeEcmaVersionForLanguageOptions` function. // https://github.com/eslint/eslint/blob/54bf0a3646265060f5f22faef71ec840d630c701/lib/languages/js/index.js#L71-L100 // Only difference is that we default to `ECMA_VERSION` not `5` if `ecmaVersion` is undefined. @@ -1228,8 +1251,14 @@ function setEcmaVersionContext(test: TestCase) { if (typeof ecmaVersion === "number") { version = ecmaVersion >= 2015 ? ecmaVersion : ecmaVersion + 2009; } - setEcmaVersion(version); + + // Set `globalReturn` and `impliedStrict` in scope analyzer options + const ecmaFeatures = languageOptions?.parserOptions?.ecmaFeatures as + | EcmaFeaturesInternal + | undefined; + analyzeOptionsOverride.globalReturn = ecmaFeatures?.globalReturn ?? null; + analyzeOptionsOverride.impliedStrict = ecmaFeatures?.impliedStrict ?? null; } // Regex to match other control characters (except tab, newline, carriage return) diff --git a/apps/oxlint/src-js/plugins/scope.ts b/apps/oxlint/src-js/plugins/scope.ts index 2dc639fce0496..1d328b186e8f8 100644 --- a/apps/oxlint/src-js/plugins/scope.ts +++ b/apps/oxlint/src-js/plugins/scope.ts @@ -110,6 +110,15 @@ const analyzeOptions: AnalyzeOptions = { emitDecoratorMetadata: false, }; +// In conformance build, setting these properties to `true` or `false` overrides the defaults +export const analyzeOptionsOverride: { + globalReturn: boolean | null; + impliedStrict: boolean | null; +} = { + globalReturn: null, + impliedStrict: null, +}; + /** * Initialize TS-ESLint `ScopeManager` for current file. */ @@ -122,6 +131,13 @@ function initTsScopeManager() { analyzeOptions.globalReturn = sourceType === "commonjs"; analyzeOptions.impliedStrict = sourceType === "module"; + // Override `globalReturn` and `impliedStrict` if in conformance build + if (CONFORMANCE) { + const { globalReturn, impliedStrict } = analyzeOptionsOverride; + if (globalReturn !== null) analyzeOptions.globalReturn = globalReturn; + if (impliedStrict !== null) analyzeOptions.impliedStrict = impliedStrict; + } + // @ts-expect-error - TODO: Our types don't quite align yet tsScopeManager = analyze(ast, analyzeOptions);