@haraka/eslint-config 1.1.4 → 2.0.0
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 +14 -0
- package/README.md +0 -4
- package/index.js +12 -7
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
4
4
|
|
|
5
5
|
### Unreleased
|
|
6
6
|
|
|
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
|
+
|
|
14
|
+
### [1.1.5] - 2024-04-22
|
|
15
|
+
|
|
16
|
+
- add env.es2022=true
|
|
17
|
+
- remove env.es2023, not supported by all eslint 8 versions
|
|
18
|
+
|
|
7
19
|
### [1.1.4] - 2024-04-22
|
|
8
20
|
|
|
9
21
|
- doc(CONTRIBUTORS): added
|
|
@@ -107,3 +119,5 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
107
119
|
[1.1.1]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.1
|
|
108
120
|
[1.1.3]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
|
|
109
121
|
[1.1.4]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.4
|
|
122
|
+
[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
|
package/README.md
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
[![Build Status][ci-img]][ci-url]
|
|
4
4
|
[![Code Climate][clim-img]][clim-url]
|
|
5
5
|
|
|
6
|
-
[![NPM][npm-img]][npm-url]
|
|
7
|
-
|
|
8
6
|
## Install
|
|
9
7
|
|
|
10
8
|
In your Haraka module:
|
|
@@ -54,5 +52,3 @@ Custom rules can be added to the .eslintrc file.
|
|
|
54
52
|
[ci-url]: https://github.com/haraka/haraka-eslint/actions/workflows/ci.yml
|
|
55
53
|
[clim-img]: https://codeclimate.com/github/haraka/haraka-eslint/badges/gpa.svg
|
|
56
54
|
[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
|
package/index.js
CHANGED
|
@@ -5,18 +5,23 @@ module.exports = {
|
|
|
5
5
|
node: true,
|
|
6
6
|
es6: true,
|
|
7
7
|
mocha: true,
|
|
8
|
-
|
|
8
|
+
es2024: true,
|
|
9
|
+
// es2023: true, /* enable with mocha 9 */
|
|
9
10
|
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
|
|
10
11
|
},
|
|
11
12
|
root: true,
|
|
12
13
|
extends: ["eslint:recommended"],
|
|
13
14
|
globals: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
DENY:
|
|
17
|
-
DENYSOFT:
|
|
18
|
-
DENYDISCONNECT:
|
|
19
|
-
|
|
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,
|
|
20
25
|
},
|
|
21
26
|
parserOptions: {
|
|
22
27
|
ecmaVersion: "latest",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haraka/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "eslint config for Haraka projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"haraka",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"format": "npm run prettier:fix && npm run lint:fix",
|
|
19
|
-
"
|
|
20
|
-
"lint
|
|
19
|
+
"format:check": "npm run prettier && npm run lint",
|
|
20
|
+
"lint": "npx eslint *.js",
|
|
21
|
+
"lint:fix": "npx eslint *.js --fix",
|
|
21
22
|
"prettier": "npx prettier . --check",
|
|
22
23
|
"prettier:fix": "npx prettier . --write --log-level=warn",
|
|
23
24
|
"test": "node index.js",
|
|
@@ -36,6 +37,8 @@
|
|
|
36
37
|
"homepage": "https://github.com/haraka/haraka-eslint#readme",
|
|
37
38
|
"devDependencies": {},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^9.x",
|
|
41
|
+
"@eslint/js": "^10.0.0",
|
|
42
|
+
"@eslint/eslintrc": "3.2.0"
|
|
40
43
|
}
|
|
41
44
|
}
|