polymer/.eslintrc.json
Peter Burns 10220c9af1
Add support for TrustedTypes (#5692)
* Add support for TrustedTypes to html-tag.js

This avoids setting innerHTML to a string.

* Comment on why .slice() the  XMLSerializer output

* Handle data binding Trusted Types into attributes

Fixes #5648

* Lint clean
2021-08-26 12:37:17 -07:00

47 lines
914 B
JSON

{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"no-console": "off",
"no-var": "error",
"semi": "error",
"strict": "error",
"valid-jsdoc": ["error", {
"requireReturn": false,
"prefer": {
"arg": "param",
"argument": "param",
"returns": "return"
},
"preferType": {
"Boolean": "boolean",
"Number": "number",
"String": "string",
"object": "Object",
"array": "Array"
}
}],
"no-useless-escape": "off"
},
"env": {
"browser": true,
"es6": true
},
"plugins": [
"html"
],
"globals": {
"customElements": true,
"HTMLImports": true,
"Polymer": true,
"ShadyDOM": true,
"ShadyCSS": true,
"JSCompiler_renameProperty": true,
"trustedTypes": true
}
}