@modernpoacher/halacious 7.0.204 → 7.0.206

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,20 @@
1
+ # Publish to NPM
2
+
3
+ For CircleCI or the shell
4
+
5
+ If you need an _authentication token_ to publish then you should resolve that before executing this script
6
+
7
+ ```bash
8
+ echo ".publish/publish.sh" >> .npmignore
9
+ git clone https://github.com/modernpoacher/publish.git .publish
10
+ .publish/publish.sh
11
+ ```
12
+
13
+ A Gist with the same content as `publish.sh` may need an additional step
14
+
15
+ ```bash
16
+ echo ".publish/publish.sh" >> .npmignore
17
+ git clone https://gist.github.com/efd85e2b8da1ee830dd637f134994a9d.git .publish
18
+ chmod +x .publish/publish.sh
19
+ .publish/publish.sh
20
+ ```
@@ -0,0 +1,66 @@
1
+ import globals from 'globals'
2
+ import standard from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
3
+ import typescript from '@sequencemedia/eslint-config-typescript/configs/recommended/merge'
4
+
5
+ export default [
6
+ /**
7
+ * Standard config
8
+ */
9
+ standard({
10
+ files: [
11
+ '**/*.{mjs,cjs,mts,cts}'
12
+ ],
13
+ ignores: [
14
+ 'src',
15
+ 'test'
16
+ ],
17
+ languageOptions: {
18
+ globals: {
19
+ ...globals.node
20
+ }
21
+ }
22
+ }),
23
+ /**
24
+ * Standard config for `mjs` and `mts` files
25
+ */
26
+ standard({
27
+ files: [
28
+ 'src/**/*.{mjs,cjs,mts,cts}'
29
+ ],
30
+ languageOptions: {
31
+ globals: {
32
+ ...globals.node
33
+ }
34
+ }
35
+ }),
36
+ /**
37
+ * Standard config for `mjs` and `mts` files
38
+ */
39
+ standard({
40
+ files: [
41
+ 'test/**/*.{mjs,cjs,mts,cts}'
42
+ ],
43
+ languageOptions: {
44
+ globals: {
45
+ ...globals.node,
46
+ ...globals.mocha
47
+ }
48
+ }
49
+ }),
50
+ /**
51
+ * TypeScript config
52
+ */
53
+ typescript({
54
+ files: [
55
+ '**/*.{mts,cts}'
56
+ ],
57
+ languageOptions: {
58
+ globals: {
59
+ ...globals.node
60
+ }
61
+ },
62
+ rules: {
63
+ 'no-use-before-define': 'off'
64
+ }
65
+ })
66
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/halacious",
3
- "version": "7.0.204",
3
+ "version": "7.0.206",
4
4
  "description": "A HAL processor for Hapi",
5
5
  "keywords": [
6
6
  "HAL",
@@ -32,7 +32,7 @@
32
32
  "url": "https://github.com/modernpoacher/halacious/issues"
33
33
  },
34
34
  "scripts": {
35
- "lint": "eslint . --ext .mjs,.cjs,.mts,.cts",
35
+ "lint": "eslint .",
36
36
  "lint:fix": "npm run lint -- --fix",
37
37
  "prepare": "husky",
38
38
  "test": "cross-env NODE_ENV=test mocha test"
@@ -51,21 +51,16 @@
51
51
  "url-template": "^3.1.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/core": "^7.26.10",
55
- "@babel/eslint-parser": "^7.26.10",
56
- "@babel/plugin-syntax-import-assertions": "^7.26.0",
57
- "@babel/preset-env": "^7.26.9",
58
54
  "@hapi/hapi": "^21.4.0",
59
55
  "@hapi/vision": "^7.0.3",
56
+ "@sequencemedia/eslint-config-standard": "^0.2.44",
57
+ "@sequencemedia/eslint-config-typescript": "^0.1.65",
60
58
  "@sequencemedia/sinon-chai": "^0.0.136",
61
59
  "@types/negotiator": "^0.6.3",
62
- "@typescript-eslint/eslint-plugin": "7.18.0",
63
- "@typescript-eslint/parser": "7.18.0",
64
60
  "chai": "^5.2.0",
65
61
  "cross-env": "^7.0.3",
66
- "eslint": "8.57.1",
67
- "eslint-config-love": "47.0.0",
68
- "eslint-config-standard": "^17.1.0",
62
+ "eslint": "^9.23.0",
63
+ "globals": "^16.0.0",
69
64
  "husky": "^9.1.7",
70
65
  "mocha": "^11.1.0",
71
66
  "sinon": "^19.0.4"