@haraka/eslint-config 1.1.2 → 1.1.4

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 CHANGED
@@ -4,13 +4,24 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4
4
 
5
5
  ### Unreleased
6
6
 
7
- #### [1.1.2] - 2024-04-06
7
+ ### [1.1.4] - 2024-04-22
8
+
9
+ - doc(CONTRIBUTORS): added
10
+ - add env.es2023=true
11
+ - add rule: no-unused-vars: 1
12
+
13
+ ### [1.1.3] - 2024-04-07
14
+
15
+ - add env.es2020=true
16
+ - add parserOptions.ecmaVersion = latest
17
+
18
+ #### [1.1.1] - 2024-04-06
8
19
 
9
20
  - remove rule no-newline-no-curly-if
10
21
  - remove haraka:recommended
11
22
  - remove rules included in eslint:recommended
12
23
 
13
- #### 1.1.0 - 2024-04-06
24
+ #### [1.1.0] - 2024-04-06
14
25
 
15
26
  - chore: update to eslint 8 standards
16
27
  - publish as @haraka/eslint-config
@@ -92,4 +103,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
92
103
  [1.0.11]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.11
93
104
  [1.0.15]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.15
94
105
  [1.0.16]: https://github.com/haraka/haraka-eslint/releases/tag/v1.0.16
95
- [1.1.2]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.2
106
+ [1.1.0]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.0
107
+ [1.1.1]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.1
108
+ [1.1.3]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
109
+ [1.1.4]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.4
package/README.md CHANGED
@@ -16,7 +16,13 @@ In your Haraka module:
16
16
  2. Configure eslint:
17
17
 
18
18
  ```sh
19
- echo 'extends: "@haraka"' > .eslintrc.yaml
19
+ cat <<EOLINT > .eslintrc.yaml
20
+ env:
21
+ node: true
22
+ es6: true
23
+ es2022: true
24
+ extends: "@haraka"
25
+ EOLINT
20
26
  ```
21
27
 
22
28
  3. Add to the "scripts" section of `package.json`:
package/index.js CHANGED
@@ -5,9 +5,11 @@ module.exports = {
5
5
  node: true,
6
6
  es6: true,
7
7
  mocha: true,
8
+ es2023: true,
9
+ // es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
8
10
  },
9
11
  root: true,
10
- extends: "eslint:recommended",
12
+ extends: ["eslint:recommended"],
11
13
  globals: {
12
14
  OK: true,
13
15
  CONT: true,
@@ -16,6 +18,9 @@ module.exports = {
16
18
  DENYDISCONNECT: true,
17
19
  DENYSOFTDISCONNECT: true,
18
20
  },
21
+ parserOptions: {
22
+ ecmaVersion: "latest",
23
+ },
19
24
  rules: {
20
25
  // 0 = off // 1 = warn // 2 = error
21
26
  "no-empty": ["error", { allowEmptyCatch: true }],
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@haraka/eslint-config",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "eslint config for Haraka projects",
5
5
  "keywords": [
6
+ "haraka",
7
+ "lint",
6
8
  "eslint",
7
- "eslintconfig"
9
+ "eslintconfig",
10
+ "test"
8
11
  ],
9
12
  "main": "index.js",
10
13
  "files": [
@@ -13,22 +16,18 @@
13
16
  ],
14
17
  "scripts": {
15
18
  "format": "npm run prettier:fix && npm run lint:fix",
16
- "lint": "npx eslint@8 *.js **/*.js",
17
- "lint:fix": "npm run lint -- --fix",
19
+ "lint": "npx eslint@^8 *.js",
20
+ "lint:fix": "npx eslint@^8 *.js --fix",
18
21
  "prettier": "npx prettier . --check",
19
- "prettier:fix": "npx prettier . --write",
20
- "test": "node index.js"
22
+ "prettier:fix": "npx prettier . --write --log-level=warn",
23
+ "test": "node index.js",
24
+ "versions": "npx dependency-version-checker check",
25
+ "versions:fix": "npx dependency-version-checker update"
21
26
  },
22
27
  "repository": {
23
28
  "type": "git",
24
29
  "url": "git+https://github.com/haraka/haraka-eslint.git"
25
30
  },
26
- "keywords": [
27
- "haraka",
28
- "lint",
29
- "eslint",
30
- "test"
31
- ],
32
31
  "author": "Matt Simerson <matt@tnpi.net>",
33
32
  "license": "MIT",
34
33
  "bugs": {