You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{code: "/*exported max*/ var max = 1, min = {min: 1}",errors: [{message: "min is defined but never used"}]},
152
-
{code: "/*exported x*/ var { x, y } = z",ecmaFeatures: {destructuring: true},errors: [{message: "y is defined but never used"}]}
159
+
{code: "/*exported x*/ var { x, y } = z",ecmaFeatures: {destructuring: true},errors: [{message: "y is defined but never used"}]},
160
+
161
+
// ignore pattern
162
+
{code: "var _a; var b;",options: [{vars: "all",varsIgnorePattern: "^_"}],errors: [{message: "b is defined but never used",line: 1,column: 13}]},
163
+
{code: "var a; function foo() { var _b; var c_; } foo();",options: [{vars: "local",varsIgnorePattern: "^_"}],errors: [{message: "c_ is defined but never used",line: 1,column: 37}]},
164
+
{code: "function foo(a, _b) { } foo();",options: [{args: "all",argsIgnorePattern: "^_"}],errors: [{message: "a is defined but never used",line: 1,column: 14}]},
165
+
{code: "function foo(a, _b, c) { return a; } foo();",options: [{args: "after-used",argsIgnorePattern: "^_"}],errors: [{message: "c is defined but never used",line: 1,column: 21}]},
166
+
{code: "var [ firstItemIgnored, secondItem ] = items;",ecmaFeatures: {destructuring: true},options: [{vars: "all",varsIgnorePattern: "[iI]gnored"}],errors: [{message: "secondItem is defined but never used",line: 1,column: 25}]}
0 commit comments