Skip to content

Commit a5968dd

Browse files
authored
[chore] adjust @typescript-eslint/no-unused-vars lint config (#6798)
1 parent 55130be commit a5968dd

File tree

201 files changed

+214
-214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+214
-214
lines changed

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"@rollup/plugin-sucrase": "^3.1.0",
112112
"@rollup/plugin-typescript": "^2.0.1",
113113
"@rollup/plugin-virtual": "^2.0.0",
114-
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.7.0",
114+
"@sveltejs/eslint-config": "github:sveltejs/eslint-config#v5.8.0",
115115
"@types/mocha": "^7.0.0",
116116
"@types/node": "^8.10.53",
117117
"@typescript-eslint/eslint-plugin": "^4.31.2",

test/runtime/samples/$$slot/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
<div><span slot="b">hello world</span></div>
1212
`,
1313

14-
async test({ assert, target, component }) {
14+
async test({ assert, component }) {
1515
assert.equal(component.getA(), '');
1616
assert.equal(component.getB(), 'foo');
1717
}

test/runtime/samples/action-custom-event-handler-node-context/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33

44
html: '<button>10</button>',
55

6-
async test({ assert, component, target, window }) {
6+
async test({ assert, target, window }) {
77
const event = new window.MouseEvent('click');
88

99
const button = target.querySelector('button');

test/runtime/samples/action-custom-event-handler-this/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
html: '<input>',
33

4-
test({ assert, component, target, window }) {
4+
test({ assert, target, window }) {
55
const input = target.querySelector('input');
66
const event = new window.KeyboardEvent('keydown', {
77
key: 'Enter'

test/runtime/samples/action-custom-event-handler-with-context/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
html: '<button>???</button>',
33

4-
async test({ assert, component, target, window }) {
4+
async test({ assert, target, window }) {
55
const event = new window.MouseEvent('click', {
66
clientX: 42,
77
clientY: 42

test/runtime/samples/action-function/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
<button>action</button>
44
`,
55

6-
async test({ assert, component, target, window }) {
6+
async test({ assert, target, window }) {
77
const button = target.querySelector('button');
88
const eventEnter = new window.MouseEvent('mouseenter');
99
const eventLeave = new window.MouseEvent('mouseleave');

test/runtime/samples/action-object-deep/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
html: `
33
<button>action</button>
44
`,
5-
async test({ assert, target, window }) {
5+
async test({ assert, target }) {
66
assert.equal(target.querySelector('button').foo, 'bar1337');
77
}
88
};

test/runtime/samples/action-object/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
html: `
33
<button>action</button>
44
`,
5-
async test({ assert, target, window }) {
5+
async test({ assert, target }) {
66
assert.equal(target.querySelector('button').foo, 'bar1337');
77
}
88
};

test/runtime/samples/action-receives-element-mounted/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const result = {};
22

33
export default {
44
props: { result },
5-
async test({ assert, component, target, window }) {
5+
async test({ assert }) {
66
assert.notEqual(result.parentElement, null);
77
}
88
};

test/runtime/samples/action-ternary-template/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
<h1></h1>
99
`,
1010

11-
async test({ assert, component, target, window }) {
11+
async test({ assert, target, window }) {
1212
const header = target.querySelector('h1');
1313
const click = new window.MouseEvent('click');
1414

test/runtime/samples/action-this/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
async test({ assert, component, target, window }) {
2+
async test({ assert, target, window }) {
33
const button = target.querySelector('button');
44
const click = new window.MouseEvent('click');
55

test/runtime/samples/animation-js-delay/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
<div>e</div>
1818
`,
1919

20-
test({ assert, component, target, window, raf }) {
20+
test({ assert, component, window, raf }) {
2121
let divs = window.document.querySelectorAll('div');
2222
divs.forEach(div => {
2323
div.getBoundingClientRect = function() {

test/runtime/samples/animation-js-easing/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
<div>e</div>
1818
`,
1919

20-
test({ assert, component, target, window, raf }) {
20+
test({ assert, component, raf }) {
2121
let divs = document.querySelectorAll('div');
2222
divs.forEach(div => {
2323
div.getBoundingClientRect = function() {

test/runtime/samples/animation-js/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
<div>e</div>
1818
`,
1919

20-
test({ assert, component, target, window, raf }) {
20+
test({ assert, component, raf }) {
2121
let divs = document.querySelectorAll('div');
2222
divs.forEach(div => {
2323
div.getBoundingClientRect = function() {

test/runtime/samples/apply-directives-in-order-2/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
value
55
},
66

7-
async test({ assert, component, target, window }) {
7+
async test({ assert, target, window }) {
88
const inputs = target.querySelectorAll('input');
99

1010
const event = new window.Event('input');

test/runtime/samples/apply-directives-in-order/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
<p></p>
1414
`,
1515

16-
async test({ assert, component, target, window }) {
16+
async test({ assert, target, window }) {
1717
const input = target.querySelector('input');
1818

1919
const event = new window.Event('input');

test/runtime/samples/attribute-boolean-false/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
html: '<textarea></textarea>',
3-
test({ assert, component, target }) {
3+
test({ assert, target }) {
44
const textarea = target.querySelector('textarea');
55
assert.ok(textarea.readOnly === false);
66
}

test/runtime/samples/attribute-boolean-true/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
html: '<textarea readonly></textarea>',
3-
test({ assert, component, target }) {
3+
test({ assert, target }) {
44
const textarea = target.querySelector('textarea');
55
assert.ok(textarea.readOnly);
66
}

test/runtime/samples/attribute-namespaced/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
</svg>
88
`,
99

10-
test({ assert, component, target }) {
10+
test({ assert, target }) {
1111
const use = target.querySelector( 'use' );
1212
assert.equal( use.getAttributeNS( 'http://www.w3.org/1999/xlink', 'href' ), '#bar' );
1313
}

test/runtime/samples/attribute-static-boolean/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
html: '<textarea readonly=""></textarea>',
3-
test({ assert, component, target }) {
3+
test({ assert, target }) {
44
const textarea = target.querySelector( 'textarea' );
55
assert.ok( textarea.readOnly );
66
}

test/runtime/samples/await-conservative-update/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
<p>loading...</p>
66
`,
77

8-
test({ assert, component, target }) {
8+
test({ assert, target }) {
99
return sleep(50).then(() => {
1010
assert.htmlEqual(target.innerHTML, `
1111
<p>the answer is 42</p>

test/runtime/samples/await-in-each/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
<p>a title: loading...</p>
1919
`,
2020

21-
test({ assert, component, target }) {
21+
test({ assert, target }) {
2222
fulfil(42);
2323

2424
return thePromise

test/runtime/samples/await-then-catch-order/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
<p>loading...</p><p>true!</p>
1414
`,
1515

16-
test({ assert, component, target }) {
16+
test({ assert, target }) {
1717
fulfil(42);
1818

1919
return thePromise

test/runtime/samples/await-then-catch-static/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
<p>loaded</p>
2323
`);
2424

25-
promise = new Promise((f, r) => {
25+
promise = new Promise((f, _) => {
2626
fulfil = f;
2727
});
2828

test/runtime/samples/await-then-destruct-array/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
props: {
3-
thePromise: new Promise(resolve => {})
3+
thePromise: new Promise(_ => {})
44
},
55

66
html: `

test/runtime/samples/await-then-destruct-default/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
async test({ assert, component, target }) {
2+
async test({ assert, target }) {
33
await Promise.resolve();
44

55
assert.htmlEqual(

test/runtime/samples/await-then-destruct-object/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
props: {
3-
thePromise: new Promise(resolve => {})
3+
thePromise: new Promise(_ => {})
44
},
55

66
html: `

test/runtime/samples/await-then-destruct-rest/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
async test({ assert, component, target }) {
2+
async test({ assert, target }) {
33
await Promise.resolve();
44

55
assert.htmlEqual(

test/runtime/samples/await-then-if/_config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export default {
1313
loading...
1414
`,
1515

16-
async test({ assert, component, target }) {
16+
async test({ assert, target }) {
1717
fulfil([]);
1818

1919
await thePromise;
20-
20+
2121
assert.htmlEqual(target.innerHTML, `
2222
<p>promise array is empty</p>
2323
`);

test/runtime/samples/binding-input-group-duplicate-value/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
<input type='checkbox' value='d'>d<br>
1818
`,
1919

20-
async test({ assert, component, target, window }) {
20+
async test({ assert, target, window }) {
2121
const inputs = target.querySelectorAll('input');
2222
const p = target.querySelector('p');
2323

test/runtime/samples/binding-input-group-each-6/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
<label><input type="checkbox" value="z"> z</label>
1414
<p></p>
1515
`,
16-
async test({ assert, component, target, window }) {
16+
async test({ assert, target, window }) {
1717
const inputs = target.querySelectorAll('input');
1818
assert.equal(inputs[0].checked, false);
1919
assert.equal(inputs[1].checked, false);

test/runtime/samples/binding-input-group-each-7/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
<input type="checkbox" value="c" data-index="z-2">
2121
`,
2222

23-
async test({ assert, component, target, window }) {
23+
async test({ assert, target, window }) {
2424
const inputs = target.querySelectorAll('input');
2525
const checked = new Set();
2626
const checkInbox = async (i) => {

test/runtime/samples/binding-input-text-undefined/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
<input>
88
`,
99

10-
async test({ assert, component, target, window }) {
10+
async test({ assert, component, target }) {
1111
const input = target.querySelector('input');
1212
assert.equal(input.value, '');
1313

test/runtime/samples/binding-select-initial-value/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
selected: 'b'
1616
},
1717

18-
test({ assert, component, target }) {
18+
test({ assert, target }) {
1919
const select = target.querySelector('select');
2020
const options = [...target.querySelectorAll('option')];
2121

test/runtime/samples/bitmask-overflow-if/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
<button></button>
77
`,
88

9-
async test({ assert, component, target, window }) {
9+
async test({ assert, target, window }) {
1010
const button = target.querySelector('button');
1111
await button.dispatchEvent(new window.MouseEvent('click'));
1212

test/runtime/samples/bitmask-overflow-slot-6/_config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ export default {
77
<button>Toggle outside</button>
88
`,
99

10-
async test({ assert, component, target, window }) {
10+
async test({ assert, target, window }) {
1111
const button = target.querySelectorAll('button')[1];
1212
const div = target.querySelector('div');
1313
await div.dispatchEvent(new window.MouseEvent('click'));
14-
14+
1515
assert.htmlEqual(target.innerHTML, `
1616
<div>
1717
<button slot="target">Toggle inside 1</button>
1818
<div slot="content">Open</div>
1919
</div>
2020
<button>Toggle outside</button>
2121
`);
22-
22+
2323
await button.dispatchEvent(new window.MouseEvent('click'));
2424
assert.htmlEqual(target.innerHTML, `
2525
<div>

test/runtime/samples/class-shortcut-with-class/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77

88
html: '<div class="one two foo bar"></div>',
99

10-
test({ assert, component, target, window }) {
10+
test({ assert, component, target }) {
1111
component.foo = false;
1212

1313
assert.htmlEqual(target.innerHTML, `

test/runtime/samples/class-shortcut/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66

77
html: '<div class="foo bar"></div>',
88

9-
test({ assert, component, target, window }) {
9+
test({ assert, component, target }) {
1010
component.foo = false;
1111

1212
assert.htmlEqual(target.innerHTML, `

test/runtime/samples/class-with-dynamic-attribute-and-spread/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88

99
html: '<div class="one two three" role="button"></div>',
1010

11-
test({ assert, component, target, window }) {
11+
test({ assert, component, target }) {
1212
component.myClass = 'one';
1313
component.attributes = {
1414
'aria-label': 'Test'

test/runtime/samples/class-with-dynamic-attribute/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55

66
html: '<div class="one two three"></div>',
77

8-
test({ assert, component, target, window }) {
8+
test({ assert, component, target }) {
99
component.myClass = 'one';
1010

1111
assert.htmlEqual(target.innerHTML, `

0 commit comments

Comments
 (0)