When the cursor is on it which option is responsible to make underline such variables?
The TypeScript plugin is to blame. Can be disabled by adding
"Preference > Package Settings > TypeScript > Plugin Settings - User"
"typescript_highlight_occurrences": false