nodebb-plugin-web-push 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ import serverConfig from 'eslint-config-nodebb';
4
+ import publicConfig from 'eslint-config-nodebb/public';
5
+
6
+ export default [
7
+ ...publicConfig,
8
+ ...serverConfig,
9
+ ];
10
+
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "nodebb-plugin-web-push",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "A starter kit for quickly creating NodeBB plugins",
5
5
  "main": "library.js",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/nodebb/nodebb-plugin-web-push"
9
9
  },
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "lint": "eslint ."
13
+ },
10
14
  "keywords": [
11
15
  "nodebb",
12
16
  "plugin",
@@ -34,13 +38,13 @@
34
38
  "compatibility": "^4.0.0"
35
39
  },
36
40
  "devDependencies": {
37
- "@commitlint/cli": "19.7.1",
38
- "@commitlint/config-angular": "19.7.1",
39
- "eslint": "8.x",
40
- "eslint-config-nodebb": "0.2.1",
41
- "eslint-plugin-import": "2.x",
41
+ "@commitlint/cli": "19.8.0",
42
+ "@commitlint/config-angular": "19.8.0",
43
+ "eslint": "^9.25.1",
44
+ "eslint-config-nodebb": "^1.1.4",
45
+ "eslint-plugin-import": "^2.31.0",
42
46
  "husky": "9.1.7",
43
- "lint-staged": "15.4.3"
47
+ "lint-staged": "15.5.1"
44
48
  },
45
49
  "dependencies": {
46
50
  "validator": "^13.12.0",
@@ -3,7 +3,7 @@
3
3
  'use strict';
4
4
 
5
5
  (async () => {
6
- const [hooks, api] = await app.require(['hooks', 'api']);
6
+ const [hooks] = await app.require(['hooks']);
7
7
 
8
8
  hooks.on('action:app.load', async () => {
9
9
  // ...
@@ -1,11 +1,9 @@
1
- /* eslint-disable import/no-unresolved */
2
1
 
3
2
  'use strict';
4
3
 
5
4
  import { post, del } from 'api';
6
5
  import { success, warning } from 'alerts';
7
6
 
8
- // eslint-disable-next-line import/prefer-default-export
9
7
  export async function init() {
10
8
  const containerEl = document.querySelector('.account');
11
9
  const registration = await navigator.serviceWorker.ready;
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-undef */
2
1
 
3
2
  'use strict';
4
3
 
@@ -39,7 +38,6 @@ self.addEventListener('notificationclick', (event) => {
39
38
  self.clients
40
39
  .matchAll({ type: 'window' })
41
40
  .then((clientList) => {
42
- // eslint-disable-next-line no-restricted-syntax
43
41
  for (const client of clientList) {
44
42
  const { hostname } = new URL(client.url);
45
43
  if (target && hostname === target.hostname && 'focus' in client) {
package/.eslintrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "nodebb"
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "nodebb/public"
3
- }