Olá, eu costumo fazer assim:
<textarea id='resposta" + item.HistoricoId + "' name='resposta" + item.HistoricoId + "' data-rule-required='true' data-msg-required='Campo obrigatório.' data-rule-minlength='10' data-msg-minlength='A pergunta deve conter 10 caracteres.' >...</textarea>
Facilita bastante!
Espero ter te ajudado.
Segue o link com referência a este tipo de atributo : https://johnnycode.com/2014/03/27/using-jquery-validate-plugin-html5-data-attribute-rules/