@haraka/eslint-config 1.1.2 → 1.1.3

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,18 @@ 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.3] - 2024-04-07
8
+
9
+ - add env.es2020=true
10
+ - add parserOptions.ecmaVersion = latest
11
+
12
+ #### [1.1.1] - 2024-04-06
8
13
 
9
14
  - remove rule no-newline-no-curly-if
10
15
  - remove haraka:recommended
11
16
  - remove rules included in eslint:recommended
12
17
 
13
- #### 1.1.0 - 2024-04-06
18
+ #### [1.1.0] - 2024-04-06
14
19
 
15
20
  - chore: update to eslint 8 standards
16
21
  - publish as @haraka/eslint-config
@@ -92,4 +97,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
92
97
  [1.0.11]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.11
93
98
  [1.0.15]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.15
94
99
  [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
100
+ [1.1.0]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.0
101
+ [1.1.1]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.1
102
+ [1.1.3]: https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
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,10 @@ module.exports = {
5
5
  node: true,
6
6
  es6: true,
7
7
  mocha: true,
8
+ es2022: true,
8
9
  },
9
10
  root: true,
10
- extends: "eslint:recommended",
11
+ extends: ["eslint:recommended"],
11
12
  globals: {
12
13
  OK: true,
13
14
  CONT: true,
@@ -16,6 +17,9 @@ module.exports = {
16
17
  DENYDISCONNECT: true,
17
18
  DENYSOFTDISCONNECT: true,
18
19
  },
20
+ parserOptions: {
21
+ ecmaVersion: "latest",
22
+ },
19
23
  rules: {
20
24
  // 0 = off // 1 = warn // 2 = error
21
25
  "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.3",
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 @msimerson/dependency-version-checker check",
25
+ "versions:fix": "npx @msimerson/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": {