■ ■ ■ ■ ■ ■
packages/react-dom/src/client/ReactDOMSelect.js
| skipped 195 lines |
196 | 196 | | } |
197 | 197 | | } |
198 | 198 | | |
| 199 | + | /** |
| 200 | + | * This is a test function demonstrating ESLint reporting |
| 201 | + | */ |
| 202 | + | function sumAbsolutes(num1, num2) { |
| 203 | + | var anUnusedVar = 100; |
| 204 | + | |
| 205 | + | if (num1 < 0) |
| 206 | + | num1 = -1*num1; |
| 207 | + | if (num2 < 0) |
| 208 | + | num2 = -1*num2; |
| 209 | + | |
| 210 | + | var result = num1 + num2; |
| 211 | + | return result; |
| 212 | + | } |
| 213 | + | |
199 | 214 | | export function restoreControlledState(element: Element, props: Object) { |
200 | 215 | | const node = ((element: any): SelectWithWrapperState); |
201 | 216 | | const value = props.value; |
| skipped 6 lines |