mirror of
https://github.com/Polymer/polymer.git
synced 2024-07-07 04:43:03 -05:00
* 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
47 lines
914 B
JSON
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
|
|
}
|
|
}
|