Skip to content

Commit

Permalink
Merge pull request #84 from foretagsplatsen/dependabot/npm_and_yarn/p…
Browse files Browse the repository at this point in the history
…rettier-3.0.1
  • Loading branch information
DamienCassou committed Aug 3, 2023
2 parents 9b3a868 + fdb9562 commit 7a0bbff
Show file tree
Hide file tree
Showing 4 changed files with 290 additions and 34 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -14,18 +14,18 @@
"electron": "^25.0.1",
"eslint": "^8.43.0",
"eslint-config-ftgp": "^2.1.1",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-webpack": "^0.13.2",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-sort-class-members": "^1.18.0",
"jasmine": "^4.5.0",
"karma": "^6.4.2",
"karma-electron": "^7.3.0",
"karma-electron-launcher": "^0.3.0",
"karma-jasmine": "^5.1.0",
"karma-webpack": "^5.0.0",
"prettier": "^2.8.8",
"prettier": "^3.0.1",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
Expand Down
10 changes: 5 additions & 5 deletions src/event.js
Expand Up @@ -13,7 +13,7 @@ export default function event(spec, my) {
function that(callback) {
// eslint-disable-next-line no-console
console.warn(
"Using an event as a function is deprecated. Send register() to the event instead."
"Using an event as a function is deprecated. Send register() to the event instead.",
);

return that.register(callback);
Expand All @@ -33,7 +33,7 @@ export default function event(spec, my) {
that.on = function (callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending on() to an event is deprecated. Send register() instead."
"Sending on() to an event is deprecated. Send register() instead.",
);

return that.register(callback);
Expand Down Expand Up @@ -128,7 +128,7 @@ export default function event(spec, my) {
that.onceOn = function (callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending onceOn() to an event is deprecated. Send registerOnce() instead."
"Sending onceOn() to an event is deprecated. Send registerOnce() instead.",
);

return that.registerOnce(callback);
Expand Down Expand Up @@ -161,7 +161,7 @@ export default function event(spec, my) {
that.off = function (binding) {
// eslint-disable-next-line no-console
console.warn(
"Sending off() to an event is deprecated. Send unregister() instead."
"Sending off() to an event is deprecated. Send unregister() instead.",
);

that.unregister(binding);
Expand Down Expand Up @@ -222,7 +222,7 @@ export default function event(spec, my) {
*/
function bindCallback(callback) {
let binding = bindings.filter((binding) =>
binding.isForCallback(callback)
binding.isForCallback(callback),
)[0];

// Don't register the same callback twice:
Expand Down
6 changes: 3 additions & 3 deletions src/eventCategory.js
Expand Up @@ -43,7 +43,7 @@ export default function eventCategory() {
that.on = function (name, callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending on() to a category is deprecated. Send register() instead."
"Sending on() to a category is deprecated. Send register() instead.",
);

return that.register(name, callback);
Expand All @@ -68,7 +68,7 @@ export default function eventCategory() {
that.off = function (name, binding) {
// eslint-disable-next-line no-console
console.warn(
"Sending off() to a category is deprecated. Send unregister() instead."
"Sending off() to a category is deprecated. Send unregister() instead.",
);

return that.unregister(name, binding);
Expand All @@ -94,7 +94,7 @@ export default function eventCategory() {
that.onceOn = function (name, callback) {
// eslint-disable-next-line no-console
console.warn(
"Sending onceOn() to a category is deprecated. Send registerOnce() instead."
"Sending onceOn() to a category is deprecated. Send registerOnce() instead.",
);

return that.registerOnce(name, callback);
Expand Down

0 comments on commit 7a0bbff

Please sign in to comment.