Rename linter used to check for unsafe

This commit is contained in:
Jonathan Kingston 2017-03-15 06:34:31 +00:00
parent 93a12df19b
commit 651b2948af
3 changed files with 6 additions and 6 deletions

View file

@ -16,7 +16,7 @@ module.exports = {
},
"plugins": [
"promise",
"unsafe-property-assignment"
"no-unescaped"
],
"root": true,
"rules": {
@ -29,8 +29,8 @@ module.exports = {
"promise/no-promise-in-callback": "warn",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"unsafe-property-assignment/no-key-assignment": ["error"],
"unsafe-property-assignment/enforce-tagged-template-protection": ["error"],
"no-unescaped/no-key-assignment": "error",
"no-unescaped/enforce": "error",
"eqeqeq": "error",
"indent": ["error", 2],

View file

@ -12,8 +12,8 @@
"addons-linter": "^0.15.14",
"deploy-txp": "^1.0.7",
"eslint": "^3.17.1",
"eslint-plugin-no-unescaped": "^1.1.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-unsafe-property-assignment": "^1.0.2",
"htmllint-cli": "^0.0.5",
"jpm": "^1.2.2",
"npm-run-all": "^4.0.0",

View file

@ -555,7 +555,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
const colorRadioFieldset = document.getElementById("edit-container-panel-choose-color");
colors.forEach((containerColor) => {
const templateInstance = document.createElement("span");
// eslint-disable-next-line unsafe-property-assignment/enforce-tagged-template-protection
// eslint-disable-next-line no-unescaped/enforce
templateInstance.innerHTML = colorRadioTemplate(containerColor);
colorRadioFieldset.appendChild(templateInstance);
});
@ -568,7 +568,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
const iconRadioFieldset = document.getElementById("edit-container-panel-choose-icon");
icons.forEach((containerIcon) => {
const templateInstance = document.createElement("span");
// eslint-disable-next-line unsafe-property-assignment/enforce-tagged-template-protection
// eslint-disable-next-line no-unescaped/enforce
templateInstance.innerHTML = iconRadioTemplate(containerIcon);
iconRadioFieldset.appendChild(templateInstance);
});