Commit 587ac30
fix(eslint-plugin): [no-unused-vars] check if any variable definition is exported (#6873)
* fix #6188
* optimize
* add tests
* nit: simplify to .some
---------
Co-authored-by: Josh Goldberg <[email protected]>1 parent c8abb09 commit 587ac30
File tree
2 files changed
+34
-5
lines changed- packages/eslint-plugin
- src/util
- tests/rules/no-unused-vars
2 files changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
431 | | - | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
441 | | - | |
442 | | - | |
| 439 | + | |
443 | 440 | | |
444 | 441 | | |
445 | 442 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1083 | 1095 | | |
1084 | 1096 | | |
1085 | 1097 | | |
| |||
1805 | 1817 | | |
1806 | 1818 | | |
1807 | 1819 | | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
1808 | 1840 | | |
1809 | 1841 | | |
0 commit comments