@haraka/eslint-config 1.1.5 → 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 +8 -0
- package/README.md +0 -4
- package/index.js +11 -7
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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
|
+
|
|
7
14
|
### [1.1.5] - 2024-04-22
|
|
8
15
|
|
|
9
16
|
- add env.es2022=true
|
|
@@ -113,3 +120,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
113
120
|
[1.1.3]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
|
|
114
121
|
[1.1.4]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.4
|
|
115
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,19 +5,23 @@ module.exports = {
|
|
|
5
5
|
node: true,
|
|
6
6
|
es6: true,
|
|
7
7
|
mocha: true,
|
|
8
|
-
|
|
8
|
+
es2024: true,
|
|
9
9
|
// es2023: true, /* enable with mocha 9 */
|
|
10
10
|
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
|
|
11
11
|
},
|
|
12
12
|
root: true,
|
|
13
13
|
extends: ["eslint:recommended"],
|
|
14
14
|
globals: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DENY:
|
|
18
|
-
DENYSOFT:
|
|
19
|
-
DENYDISCONNECT:
|
|
20
|
-
|
|
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,
|
|
21
25
|
},
|
|
22
26
|
parserOptions: {
|
|
23
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",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"format": "npm run prettier:fix && npm run lint:fix",
|
|
19
19
|
"format:check": "npm run prettier && npm run lint",
|
|
20
|
-
"lint": "npx eslint
|
|
21
|
-
"lint:fix": "npx eslint
|
|
20
|
+
"lint": "npx eslint *.js",
|
|
21
|
+
"lint:fix": "npx eslint *.js --fix",
|
|
22
22
|
"prettier": "npx prettier . --check",
|
|
23
23
|
"prettier:fix": "npx prettier . --write --log-level=warn",
|
|
24
24
|
"test": "node index.js",
|
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"homepage": "https://github.com/haraka/haraka-eslint#readme",
|
|
38
38
|
"devDependencies": {},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^9.x",
|
|
41
|
+
"@eslint/js": "^10.0.0",
|
|
42
|
+
"@eslint/eslintrc": "3.2.0"
|
|
41
43
|
}
|
|
42
44
|
}
|