Skip to content

Commit d491eae

Browse files
authored
Release v2.0.4 (#26)
- dep(eslint): upgrade to v9
1 parent 2984999 commit d491eae

9 files changed

+50
-27
lines changed

.codeclimate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
engines:
22
eslint:
33
enabled: true
4-
channel: 'eslint-8'
4+
channel: 'eslint-9'
55
config:
6-
config: '.eslintrc.yaml'
6+
config: 'eslint.config.mjs'
77

88
ratings:
99
paths:

.eslintrc.yaml

-11
This file was deleted.

.prettierrc

-2
This file was deleted.

CHANGELOG.md

+6-1
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.4] - 2025-01-26
8+
9+
- dep(eslint): upgrade to v9
10+
711
### [2.0.3] - 2023-12-13
812

913
- ci: use shared ci workflows
@@ -71,4 +75,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
7175
[2.0.0]: https://github.com/haraka/haraka-plugin-asn/releases/tag/v2.0.0
7276
[2.0.1]: https://github.com/haraka/haraka-plugin-asn/releases/tag/2.0.1
7377
[2.0.2]: https://github.com/haraka/haraka-plugin-asn/releases/tag/v2.0.2
74-
[2.0.3]: https://github.com/haraka/haraka-plugin-asn/releases/tag/2.0.3
78+
[2.0.3]: https://github.com/haraka/haraka-plugin-asn/releases/tag/v2.0.3
79+
[2.0.4]: https://github.com/haraka/haraka-plugin-asn/releases/tag/v2.0.4

CONTRIBUTORS.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
This handcrafted artisinal 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-plugin-asn/commits?author=msimerson">26</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/934254?v=4"><br><a href="https://github.com/analogic">analogic</a> (<a href="https://github.com/haraka/haraka-plugin-asn/commits?author=analogic">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-asn/commits?author=lnedry">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-plugin-asn/commits?author=msimerson">27</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/934254?v=4"><br><a href="https://github.com/analogic">analogic</a> (<a href="https://github.com/haraka/haraka-plugin-asn/commits?author=analogic">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/haraka-plugin-asn/commits?author=lnedry">1</a>) |
66
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

8-
<sub>this file is maintained by [.release](https://github.com/msimerson/.release)</sub>
8+
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
9+
Contribute to this project to get your GitHub profile included here.</sub>

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[![Build Status][ci-img]][ci-url]
22
[![Code Climate][clim-img]][clim-url]
3-
[![NPM][npm-img]][npm-url]
43

54
# haraka-plugin-asn
65

@@ -22,5 +21,3 @@ PS: Run something like [maxmind-geolite-mirror](https://www.npmjs.com/package/ma
2221
[ci-url]: https://github.com/haraka/haraka-plugin-asn/actions/workflows/ci.yml
2322
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-asn/badges/gpa.svg
2423
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-asn
25-
[npm-img]: https://nodei.co/npm/haraka-plugin-asn.png
26-
[npm-url]: https://www.npmjs.com/package/haraka-plugin-asn

eslint.config.mjs

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
6+
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all,
13+
})
14+
15+
export default [
16+
...compat.extends('@haraka'),
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.node,
21+
...globals.mocha,
22+
},
23+
},
24+
25+
rules: {
26+
'no-unused-vars': 1,
27+
},
28+
},
29+
]

package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "haraka-plugin-asn",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "look up ASN of remote MTA",
55
"main": "index.js",
66
"files": [
@@ -9,11 +9,11 @@
99
],
1010
"scripts": {
1111
"format": "npm run prettier:fix && npm run lint:fix",
12-
"lint": "npx eslint@^8 *.js test",
13-
"lint:fix": "npx eslint@^8 *.js test --fix",
12+
"lint": "npx eslint@^9 *.js test",
13+
"lint:fix": "npx eslint@^9 *.js test --fix",
1414
"prettier": "npx prettier . --check",
1515
"prettier:fix": "npx prettier . --write --log-level=warn",
16-
"test": "npx mocha@^10 --exit",
16+
"test": "npx mocha@^11 --exit",
1717
"versions": "npx dependency-version-checker check",
1818
"versions:fix": "npx dependency-version-checker update"
1919
},
@@ -37,7 +37,11 @@
3737
"maxmind": "^4.3.19"
3838
},
3939
"devDependencies": {
40-
"@haraka/eslint-config": "^1.1.5",
40+
"@haraka/eslint-config": "^2.0.2",
4141
"haraka-test-fixtures": "^1.3.7"
42+
},
43+
"prettier": {
44+
"singleQuote": true,
45+
"semi": false
4246
}
4347
}

0 commit comments

Comments
 (0)