Skip to content

Commit a8d35d7

Browse files
authored
Release v1.1.3 (#32)
- add parserOptions.ecmaVersion = latest - add env.es2020=true
1 parent b2ce798 commit a8d35d7

5 files changed

Lines changed: 34 additions & 18 deletions

File tree

CHANGELOG.md

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

55
### Unreleased
66

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
813

914
- remove rule no-newline-no-curly-if
1015
- remove haraka:recommended
1116
- remove rules included in eslint:recommended
1217

13-
#### 1.1.0 - 2024-04-06
18+
#### [1.1.0] - 2024-04-06
1419

1520
- chore: update to eslint 8 standards
1621
- publish as @haraka/eslint-config
@@ -92,4 +97,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
9297
[1.0.11]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.11
9398
[1.0.15]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.15
9499
[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

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ In your Haraka module:
1616
2. Configure eslint:
1717

1818
```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
2026
```
2127

2228
3. Add to the "scripts" section of `package.json`:

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ module.exports = {
55
node: true,
66
es6: true,
77
mocha: true,
8+
es2022: true,
89
},
910
root: true,
10-
extends: "eslint:recommended",
11+
extends: ["eslint:recommended"],
1112
globals: {
1213
OK: true,
1314
CONT: true,
@@ -16,6 +17,9 @@ module.exports = {
1617
DENYDISCONNECT: true,
1718
DENYSOFTDISCONNECT: true,
1819
},
20+
parserOptions: {
21+
ecmaVersion: "latest",
22+
},
1923
rules: {
2024
// 0 = off // 1 = warn // 2 = error
2125
"no-empty": ["error", { allowEmptyCatch: true }],

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "@haraka/eslint-config",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "eslint config for Haraka projects",
55
"keywords": [
6+
"haraka",
7+
"lint",
68
"eslint",
7-
"eslintconfig"
9+
"eslintconfig",
10+
"test"
811
],
912
"main": "index.js",
1013
"files": [
@@ -13,22 +16,18 @@
1316
],
1417
"scripts": {
1518
"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",
1821
"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"
2126
},
2227
"repository": {
2328
"type": "git",
2429
"url": "git+https://github.com/haraka/haraka-eslint.git"
2530
},
26-
"keywords": [
27-
"haraka",
28-
"lint",
29-
"eslint",
30-
"test"
31-
],
3231
"author": "Matt Simerson <matt@tnpi.net>",
3332
"license": "MIT",
3433
"bugs": {

0 commit comments

Comments
 (0)