Skip to content
Snippets Groups Projects
Commit 5c61519a authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

provider: add eslint support

parent ba4a69cc
No related branches found
No related tags found
No related merge requests found
/vendor/**
/dist/**
/*.js
\ No newline at end of file
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"no-unused-vars": ["error", { "args": "none" }],
"semi": [2, "always"],
"jsdoc/require-jsdoc": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns": 0,
"jsdoc/require-param-type": 0
}
}
\ No newline at end of file
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
"rollup-plugin-serve": "^1.0.1", "rollup-plugin-serve": "^1.0.1",
"rollup-plugin-terser": "^7.0.2" "rollup-plugin-terser": "^7.0.2",
"eslint": "^7.3.1",
"eslint-plugin-jsdoc": "^30.6.4"
}, },
"dependencies": { "dependencies": {
"@dbp-toolkit/auth": "^0.1.0", "@dbp-toolkit/auth": "^0.1.0",
...@@ -47,6 +49,7 @@ ...@@ -47,6 +49,7 @@
"watch": "rollup -c --watch", "watch": "rollup -c --watch",
"watch-local": "yarn run watch", "watch-local": "yarn run watch",
"watch-dev": "rollup -c --watch --environment BUILD:development", "watch-dev": "rollup -c --watch --environment BUILD:development",
"test": "rollup -c --environment BUILD:test && karma start --singleRun" "test": "rollup -c --environment BUILD:test && karma start --singleRun",
"lint": "eslint ."
} }
} }
...@@ -72,7 +72,7 @@ export class Provider extends HTMLElement { ...@@ -72,7 +72,7 @@ export class Provider extends HTMLElement {
if (item.sender === sender && item.name === name) { if (item.sender === sender && item.name === name) {
const index = that.callbackStore.indexOf(item); const index = that.callbackStore.indexOf(item);
that.callbackStore.splice(index, 1); that.callbackStore.splice(index, 1);
console.log('Provider(' + that.id() + ') eventListener for name "' + name + '" removed.') console.log('Provider(' + that.id() + ') eventListener for name "' + name + '" removed.');
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment