@haraka/eslint-config 2.0.2 → 2.0.3
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.
- package/CHANGELOG.md +5 -0
- package/README.md +5 -5
- package/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
4
4
|
|
|
5
5
|
### Unreleased
|
|
6
6
|
|
|
7
|
+
### [2.0.3] - 2025-07-01
|
|
8
|
+
|
|
9
|
+
- no-unused-vars": add { "caughtErrorsIgnorePattern": "ignore" }
|
|
10
|
+
|
|
7
11
|
### [2.0.2] - 2025-01-07
|
|
8
12
|
|
|
9
13
|
- index: specify eslint globals as "readonly" (changed in v9)
|
|
@@ -132,3 +136,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
132
136
|
[2.0.0]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.0
|
|
133
137
|
[2.0.1]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.1
|
|
134
138
|
[2.0.2]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.2
|
|
139
|
+
[2.0.3]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.3
|
package/README.md
CHANGED
|
@@ -14,11 +14,11 @@ In your Haraka module:
|
|
|
14
14
|
2. Configure eslint:
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
cat <<EOLINT > .
|
|
17
|
+
cat <<EOLINT > eslint.config.mjs
|
|
18
18
|
env:
|
|
19
19
|
node: true
|
|
20
20
|
es6: true
|
|
21
|
-
|
|
21
|
+
es2024: true
|
|
22
22
|
extends: "@haraka"
|
|
23
23
|
EOLINT
|
|
24
24
|
```
|
|
@@ -26,8 +26,8 @@ EOLINT
|
|
|
26
26
|
3. Add to the "scripts" section of `package.json`:
|
|
27
27
|
|
|
28
28
|
```json
|
|
29
|
-
"lint": "npx eslint
|
|
30
|
-
"lint:fix": "npx eslint
|
|
29
|
+
"lint": "npx eslint *.js test"
|
|
30
|
+
"lint:fix": "npx eslint --fix *.js test"
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
4. Within your CI workflow:
|
|
@@ -44,7 +44,7 @@ Step #4 above does this automatically when CI tests are set up.
|
|
|
44
44
|
|
|
45
45
|
If you agree with the lint suggestions, you can run `npm run lint:fix` and the changes will be made to your files automatically.
|
|
46
46
|
|
|
47
|
-
Custom rules can be added to the
|
|
47
|
+
Custom rules can be added to the eslint config file.
|
|
48
48
|
|
|
49
49
|
<!-- leave these buried at the bottom of the document -->
|
|
50
50
|
|
package/index.js
CHANGED