-
-
Notifications
You must be signed in to change notification settings - Fork 337
/
max_params.snap
74 lines (65 loc) · 3.27 KB
/
max_params.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
source: crates/oxc_linter/src/tester.rs
expression: max_params
---
⚠ eslint(max-params): "Function 'test' has too many parameters (3). Maximum allowed is 2."
╭─[max_params.tsx:1:14]
1 │ function test(a, b, c) {}
· ─────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (4). Maximum allowed is 3."
╭─[max_params.tsx:1:14]
1 │ function test(a, b, c, d) {}
· ────────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function has too many parameters (4). Maximum allowed is 3."
╭─[max_params.tsx:1:20]
1 │ var test = function(a, b, c, d) {};
· ────────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Arrow function has too many parameters (4). Maximum allowed is 3."
╭─[max_params.tsx:1:12]
1 │ var test = (a, b, c, d) => {};
· ────────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function has too many parameters (4). Maximum allowed is 3."
╭─[max_params.tsx:1:10]
1 │ (function(a, b, c, d) {});
· ────────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (3). Maximum allowed is 1."
╭─[max_params.tsx:1:25]
1 │ var test = function test(a, b, c) {};
· ─────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (3). Maximum allowed is 2."
╭─[max_params.tsx:1:14]
1 │ function test(a, b, c) {}
· ─────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (4). Maximum allowed is 3."
╭─[max_params.tsx:1:14]
1 │ function test(a, b, c, d) {}
· ────────────
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (1). Maximum allowed is 0."
╭─[max_params.tsx:1:14]
1 │ function test(a) {}
· ───
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.
⚠ eslint(max-params): "Function 'test' has too many parameters (3). Maximum allowed is 2."
╭─[max_params.tsx:1:14]
1 │ function test(a, b, c) {
· ─────────
2 │ // Just to make it longer
╰────
help: This rule enforces a maximum number of parameters allowed in function definitions.