Skip to content

Commit 4e6bff3

Browse files
authored
Release v2.0.3 (#38)
- no-unused-vars": add { "caughtErrorsIgnorePattern": "ignore" }
1 parent 70b6a5b commit 4e6bff3

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
44

55
### Unreleased
66

7+
### [2.0.3] - 2025-07-01
8+
9+
- no-unused-vars": add { "caughtErrorsIgnorePattern": "ignore" }
10+
711
### [2.0.2] - 2025-01-07
812

913
- index: specify eslint globals as "readonly" (changed in v9)
@@ -132,3 +136,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
132136
[2.0.0]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.0
133137
[2.0.1]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.1
134138
[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

CONTRIBUTORS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Contributors
22

3-
This handcrafted artisinal software is brought to you by:
3+
This handcrafted artisanal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=msimerson">38</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=baudehlo">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/4670561?v=4"><br><a href="https://github.com/ztipnis">ztipnis</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=ztipnis">1</a>) |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=msimerson">39</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=baudehlo">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/4670561?v=4"><br><a href="https://github.com/ztipnis">ztipnis</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=ztipnis">1</a>) |
66
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is generated by [.release](https://github.com/msimerson/.release).

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ In your Haraka module:
1414
2. Configure eslint:
1515

1616
```sh
17-
cat <<EOLINT > .eslintrc.yaml
17+
cat <<EOLINT > eslint.config.mjs
1818
env:
1919
node: true
2020
es6: true
21-
es2022: true
21+
es2024: true
2222
extends: "@haraka"
2323
EOLINT
2424
```
2525

2626
3. Add to the "scripts" section of `package.json`:
2727

2828
```json
29-
"lint": "npx eslint@8 *.js test"
30-
"lint:fix": "npx eslint@8 --fix *.js test"
29+
"lint": "npx eslint *.js test"
30+
"lint:fix": "npx eslint --fix *.js test"
3131
```
3232

3333
4. Within your CI workflow:
@@ -44,7 +44,7 @@ Step #4 above does this automatically when CI tests are set up.
4444

4545
If you agree with the lint suggestions, you can run `npm run lint:fix` and the changes will be made to your files automatically.
4646

47-
Custom rules can be added to the .eslintrc file.
47+
Custom rules can be added to the eslint config file.
4848

4949
<!-- leave these buried at the bottom of the document -->
5050

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ module.exports = {
3333
"no-console": "off",
3434
"no-constant-condition": ["error", { checkLoops: false }],
3535
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
36+
"no-unused-vars": ["warn", { caughtErrorsIgnorePattern: "ignore" }],
3637
},
3738
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haraka/eslint-config",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "eslint config for Haraka projects",
55
"keywords": [
66
"haraka",

0 commit comments

Comments
 (0)