update eslint plugins

This commit is contained in:
43081j 2019-07-31 22:34:45 +01:00
parent 79c7fd3902
commit 4682f2aa14
4 changed files with 9 additions and 6 deletions

View File

@ -13,6 +13,9 @@ plugins:
parserOptions:
ecmaVersion: 2017
sourceType: module
settings:
wc:
elementBaseClasses: ["BaseElement"]
rules:
indent: [warn, 2]
max-len: [warn, 120]

6
package-lock.json generated
View File

@ -6540,9 +6540,9 @@
}
},
"eslint-plugin-wc": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-wc/-/eslint-plugin-wc-1.1.1.tgz",
"integrity": "sha512-9qwM/jXSDQ0ip14D49Ip0uQmZtsLive9VqF5tmRnmzpSI4CvAmaSIK0oYXihBA5ssIG4u4S8G3eb3HaK+7qveQ==",
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-wc/-/eslint-plugin-wc-1.2.0.tgz",
"integrity": "sha512-p1Vv8GkiTS8ZNfsmWvNJfKsGwsfCDteo2QsFE53x5DuHN7YDVf36II46DauP3mBCQ9pZnYD8lZyl/uz3qBtwQw==",
"dev": true,
"requires": {
"js-levenshtein-esm": "^1.2.0",

View File

@ -42,7 +42,7 @@
"eslint": "^5.16.0",
"eslint-config-google": "^0.13.0",
"eslint-plugin-mocha": "^5.3.0",
"eslint-plugin-wc": "^1.1.1",
"eslint-plugin-wc": "^1.2.0",
"glob": "^7.1.1",
"karma": "^4.0.1",
"karma-chai": "^0.1.0",

View File

@ -88,8 +88,8 @@ export class TabBase extends BaseElement {
static styles = style;
constructor() {
super();
firstUpdated() {
super.firstUpdated();
// create an unique id
this.id = this.id || `mdc-tab-${++tabIdCounter}`;
}