Skip to content

Commit b5e4909

Browse files
authored
Release v2.0.0 (#35)
- BREAKING: depend on eslint 9 - deps: declare peerDeps on @eslint/js and @eslint/eslintrc - index: globals reflect actual values (vs true) - index: bump es2022 -> es2024
1 parent 18acba6 commit b5e4909

File tree

8 files changed

+53
-24
lines changed

8 files changed

+53
-24
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.release

CHANGELOG.md

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

55
### Unreleased
66

7+
### [2.0.0] - 2025-01-07
8+
9+
- BREAKING: depend on eslint 9
10+
- deps: declare peerDeps on @eslint/js and @eslint/eslintrc
11+
- index: globals reflect actual values (vs true)
12+
- index: bump es2022 -> es2024
13+
714
### [1.1.5] - 2024-04-22
815

916
- add env.es2022=true
@@ -113,3 +120,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
113120
[1.1.3]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
114121
[1.1.4]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.4
115122
[1.1.5]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.5
123+
[2.0.0]: https://github.com/haraka/haraka-eslint/releases/tag/v2.0.0

CONTRIBUTORS.md

Lines changed: 3 additions & 2 deletions
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-eslint/commits?author=msimerson">35</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">36</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

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[![Build Status][ci-img]][ci-url]
44
[![Code Climate][clim-img]][clim-url]
55

6-
[![NPM][npm-img]][npm-url]
7-
86
## Install
97

108
In your Haraka module:
@@ -54,5 +52,3 @@ Custom rules can be added to the .eslintrc file.
5452
[ci-url]: https://github.com/haraka/haraka-eslint/actions/workflows/ci.yml
5553
[clim-img]: https://codeclimate.com/github/haraka/haraka-eslint/badges/gpa.svg
5654
[clim-url]: https://codeclimate.com/github/haraka/haraka-eslint
57-
[npm-img]: https://nodei.co/npm/@haraka/eslint-config.png
58-
[npm-url]: https://www.npmjs.com/package/@haraka/eslint-config

eslint.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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("eslint:recommended"),
17+
{
18+
languageOptions: {
19+
globals: {
20+
...globals.node,
21+
},
22+
},
23+
},
24+
];

index.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ module.exports = {
55
node: true,
66
es6: true,
77
mocha: true,
8-
es2022: true,
8+
es2024: true,
99
// es2023: true, /* enable with mocha 9 */
1010
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
1111
},
1212
root: true,
1313
extends: ["eslint:recommended"],
1414
globals: {
15-
OK: true,
16-
CONT: true,
17-
DENY: true,
18-
DENYSOFT: true,
19-
DENYDISCONNECT: true,
20-
DENYSOFTDISCONNECT: true,
15+
CONT: 900,
16+
STOP: 901,
17+
DENY: 902,
18+
DENYSOFT: 903,
19+
DENYDISCONNECT: 904,
20+
DISCONNECT: 905,
21+
OK: 906,
22+
NEXT_HOOK: 907,
23+
DELAY: 908,
24+
DENYSOFTDISCONNECT: 909,
2125
},
2226
parserOptions: {
2327
ecmaVersion: "latest",

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haraka/eslint-config",
3-
"version": "1.1.5",
3+
"version": "2.0.0",
44
"description": "eslint config for Haraka projects",
55
"keywords": [
66
"haraka",
@@ -17,8 +17,8 @@
1717
"scripts": {
1818
"format": "npm run prettier:fix && npm run lint:fix",
1919
"format:check": "npm run prettier && npm run lint",
20-
"lint": "npx eslint@^8 *.js",
21-
"lint:fix": "npx eslint@^8 *.js --fix",
20+
"lint": "npx eslint *.js",
21+
"lint:fix": "npx eslint *.js --fix",
2222
"prettier": "npx prettier . --check",
2323
"prettier:fix": "npx prettier . --write --log-level=warn",
2424
"test": "node index.js",
@@ -37,6 +37,8 @@
3737
"homepage": "https://github.com/haraka/haraka-eslint#readme",
3838
"devDependencies": {},
3939
"peerDependencies": {
40-
"eslint": "^8.0.0"
40+
"eslint": "^9.x",
41+
"@eslint/js": "^10.0.0",
42+
"@eslint/eslintrc": "3.2.0"
4143
}
4244
}

0 commit comments

Comments
 (0)