Skip to content

Commit 457ca21

Browse files
authored
Release 2.0.4 (#40)
- deps(all): added ^versions in package.json - ci: updated CI configs - style: prettier
1 parent 4e6bff3 commit 457ca21

10 files changed

Lines changed: 95 additions & 47 deletions

File tree

.codeclimate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
engines:
22
eslint:
33
enabled: true
4-
channel: "eslint-9"
4+
channel: 'eslint-9'
55
config:
6-
config: "eslint.config.mjs"
6+
config: 'eslint.config.mjs'
77

88
checks:
99
method-complexity:
@@ -12,4 +12,4 @@ checks:
1212

1313
ratings:
1414
paths:
15-
- "**.js"
15+
- '**.js'

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
push:
7+
branches: master
48

59
env:
610
CI: true
@@ -9,9 +13,20 @@ jobs:
913
lint:
1014
uses: haraka/.github/.github/workflows/lint.yml@master
1115

12-
test:
13-
needs: [lint]
16+
prettier:
17+
uses: haraka/.github/.github/workflows/prettier.yml@master
18+
with:
19+
branch: ${{ github.head_ref }}
20+
21+
coverage:
22+
uses: haraka/.github/.github/workflows/coverage.yml@master
23+
secrets: inherit
24+
25+
ubuntu:
1426
uses: haraka/.github/.github/workflows/ubuntu.yml@master
1527

1628
windows:
1729
uses: haraka/.github/.github/workflows/windows.yml@master
30+
31+
macos:
32+
uses: haraka/.github/.github/workflows/macos.yml@master

.github/workflows/codeql.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: ['master']
66
pull_request:
7-
branches: ["master"]
7+
branches: ['master']
88
schedule:
9-
- cron: "56 17 * * 1"
9+
- cron: '56 17 * * 1'
1010

1111
jobs:
1212
analyze:
@@ -38,4 +38,4 @@ jobs:
3838
- name: Perform CodeQL Analysis
3939
uses: github/codeql-action/analyze@v2
4040
with:
41-
category: "/language:${{ matrix.language }}"
41+
category: '/language:${{ matrix.language }}'

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
paths:
9+
- package.json
10+
11+
env:
12+
CI: true
13+
14+
jobs:
15+
release:
16+
uses: haraka/.github/.github/workflows/release.yml@master
17+
secrets: inherit
18+
19+
publish:
20+
needs: release
21+
if: needs.release.outputs.changed == 'true'
22+
uses: haraka/.github/.github/workflows/publish.yml@master
23+
secrets: inherit

CHANGELOG.md

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

55
### Unreleased
66

7+
### [2.0.4] - 2026-03-17
8+
9+
- deps(all): added ^versions in package.json
10+
- ci: updated CI configs
11+
- style: prettier
12+
713
### [2.0.3] - 2025-07-01
814

915
- no-unused-vars": add { "caughtErrorsIgnorePattern": "ignore" }

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This handcrafted artisanal software is brought to you by:
44

5-
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=msimerson">39</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=baudehlo">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/4670561?v=4"><br><a href="https://github.com/ztipnis">ztipnis</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=ztipnis">1</a>) |
5+
| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=msimerson">40</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=baudehlo">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/4670561?v=4"><br><a href="https://github.com/ztipnis">ztipnis</a> (<a href="https://github.com/haraka/haraka-eslint/commits?author=ztipnis">1</a>) |
66
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
77

88
<sub>this file is generated by [.release](https://github.com/msimerson/.release).

eslint.config.mjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
import globals from "globals";
2-
import path from "node:path";
3-
import { fileURLToPath } from "node:url";
4-
import js from "@eslint/js";
5-
import { FlatCompat } from "@eslint/eslintrc";
1+
import globals from 'globals'
2+
import path from 'node:path'
3+
import { fileURLToPath } from 'node:url'
4+
import js from '@eslint/js'
5+
import { FlatCompat } from '@eslint/eslintrc'
66

7-
const __filename = fileURLToPath(import.meta.url);
8-
const __dirname = path.dirname(__filename);
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
99
const compat = new FlatCompat({
1010
baseDirectory: __dirname,
1111
recommendedConfig: js.configs.recommended,
1212
allConfig: js.configs.all,
13-
});
13+
})
1414

1515
export default [
16-
...compat.extends("eslint:recommended"),
16+
...compat.extends('eslint:recommended'),
1717
{
1818
languageOptions: {
1919
globals: {
2020
...globals.node,
2121
},
2222
},
2323
},
24-
];
24+
]

index.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use strict";
1+
'use strict'
22

33
module.exports = {
44
env: {
@@ -10,29 +10,29 @@ module.exports = {
1010
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
1111
},
1212
root: true,
13-
extends: ["eslint:recommended"],
13+
extends: ['eslint:recommended'],
1414
globals: {
15-
CONT: "readonly",
16-
STOP: "readonly",
17-
DENY: "readonly",
18-
DENYSOFT: "readonly",
19-
DENYDISCONNECT: "readonly",
20-
DISCONNECT: "readonly",
21-
OK: "readonly",
22-
NEXT_HOOK: "readonly",
23-
DELAY: "readonly",
24-
DENYSOFTDISCONNECT: "readonly",
15+
CONT: 'readonly',
16+
STOP: 'readonly',
17+
DENY: 'readonly',
18+
DENYSOFT: 'readonly',
19+
DENYDISCONNECT: 'readonly',
20+
DISCONNECT: 'readonly',
21+
OK: 'readonly',
22+
NEXT_HOOK: 'readonly',
23+
DELAY: 'readonly',
24+
DENYSOFTDISCONNECT: 'readonly',
2525
},
2626
parserOptions: {
27-
ecmaVersion: "latest",
27+
ecmaVersion: 'latest',
2828
},
2929
rules: {
3030
// 0 = off // 1 = warn // 2 = error
31-
"no-empty": ["error", { allowEmptyCatch: true }],
32-
"no-undef": "warn",
33-
"no-console": "off",
34-
"no-constant-condition": ["error", { checkLoops: false }],
35-
"prefer-const": ["error", { ignoreReadBeforeAssign: true }],
36-
"no-unused-vars": ["warn", { caughtErrorsIgnorePattern: "ignore" }],
31+
'no-empty': ['error', { allowEmptyCatch: true }],
32+
'no-undef': 'warn',
33+
'no-console': 'off',
34+
'no-constant-condition': ['error', { checkLoops: false }],
35+
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
36+
'no-unused-vars': ['warn', { caughtErrorsIgnorePattern: 'ignore' }],
3737
},
38-
};
38+
}

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haraka/eslint-config",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "eslint config for Haraka projects",
55
"keywords": [
66
"haraka",
@@ -37,8 +37,12 @@
3737
"homepage": "https://github.com/haraka/haraka-eslint#readme",
3838
"devDependencies": {},
3939
"peerDependencies": {
40-
"eslint": "9.x",
41-
"@eslint/js": "9.x",
42-
"@eslint/eslintrc": "3.x"
40+
"eslint": "^9.39.4",
41+
"@eslint/js": "^9.39.4",
42+
"@eslint/eslintrc": "^3.3.5"
43+
},
44+
"prettier": {
45+
"singleQuote": true,
46+
"semi": false
4347
}
4448
}

0 commit comments

Comments
 (0)