fregante/indent-textarea

import {enableTabToIndent} from 'indent-textarea';
enableTabToIndent('textarea');

Press tab or shift+tab to test it on real code: