diff --git a/.eslintrc b/.eslintrc index d5be84ab0..56161a346 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,6 +7,7 @@ "plugins": [ "import", "mozilla", + "no-unsanitized", "unicorn", ], @@ -28,6 +29,8 @@ "import/no-unresolved": "error", "mozilla/avoid-removeChild": "error", "mozilla/use-includes-instead-of-indexOf": "error", + "no-unsanitized/method": "error", + "no-unsanitized/property": "error", "unicorn/no-array-instanceof": "error", // Possible errors diff --git a/src/core/operator_list.js b/src/core/operator_list.js index bdb3ba84f..ad50c2fd2 100644 --- a/src/core/operator_list.js +++ b/src/core/operator_list.js @@ -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'; diff --git a/test/driver.js b/test/driver.js index 464f01e15..745f71167 100644 --- a/test/driver.js +++ b/test/driver.js @@ -627,6 +627,7 @@ var Driver = (function DriverClosure() { // eslint-disable-line no-unused-vars // Using insertAdjacentHTML yields a large performance gain and // reduces runtime significantly. if (this.output.insertAdjacentHTML) { + // eslint-disable-next-line no-unsanitized/method this.output.insertAdjacentHTML('BeforeEnd', message); } else { this.output.textContent += message;