code-quality-tools icon indicating copy to clipboard operation
code-quality-tools copied to clipboard

Add eslint-plugin-xss

Open dannytce opened this issue 7 years ago • 2 comments

https://github.com/Rantanen/eslint-plugin-xss

dannytce avatar Oct 28 '18 18:10 dannytce

... but why? 😄 Is this something you are already using on React projects? 🤔

robertrossmann avatar Oct 29 '18 23:10 robertrossmann

@robertrossmann from time to time yes :) Especially when you get data from external API. Probably the most common usecase is anykind of CMS output, than you need to call https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml

dannytce avatar Oct 30 '18 09:10 dannytce