mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Enable the eslint-plugin-no-unsanitized
ESLint plugin to disallow unsafe usage of e.g. innerHTML
See https://github.com/mozilla/eslint-plugin-no-unsanitized Since we've generally never allowed e.g. `innerHTML`, which is enforced during review, there's only one linting failure with this patch. (Which is white-listed, according to the existing comment and the fact that it's test-only code.)
This commit is contained in:
parent
1c9a69db82
commit
5bb5e7741d
3 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* eslint-disable no-unsanitized/method */
|
||||
|
||||
import { assert, ImageKind, OPS } from '../shared/util';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue