Skip to content

Commit cb38314

Browse files
authored
Release v1.0.16 (#28)
* remove deprecated formatting rules * See https://eslint.org/blog/2023/10/deprecating-formatting-rules/ * remove .npmignore, populate [files] in package.json * ci: update to use shared workflows
1 parent d712ad4 commit cb38314

7 files changed

Lines changed: 42 additions & 58 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,13 @@ env:
66
CI: true
77

88
jobs:
9-
test:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
os: [ ubuntu-latest, windows-latest ]
14-
node-version: [ 14, 16, 18 ]
15-
fail-fast: false
16-
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
19-
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
20-
with:
21-
node-version: ${{ matrix.node-version }}
229

23-
- run: npm install
10+
lint:
11+
uses: haraka/.github/.github/workflows/lint.yml@master
12+
13+
test:
14+
needs: [ lint ]
15+
uses: haraka/.github/.github/workflows/ubuntu.yml@master
2416

25-
- name: Test
26-
run: |
27-
npm run test
28-
node index.js
17+
windows:
18+
uses: haraka/.github/.github/workflows/windows.yml@master

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ jspm_packages
3737
.node_repl_history
3838

3939
package-lock.json
40+
bower_components
41+
# Optional npm cache directory
42+
.npmrc
43+
.idea
44+
.DS_Store
45+
haraka-update.sh

.npmignore

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
1+
# Changelog
12

2-
#### N.N.N - YYYY-MM-DD
3+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
34

5+
### Unreleased
46

5-
#### 1.0.15 - 2022-05-28
7+
#### [1.0.16] - 2024-04-05
8+
9+
- chore: remove eslint deprecated formatting rules
10+
- see https://eslint.org/blog/2023/10/deprecating-formatting-rules/
11+
- chore: remove .npmignore, populate [files] in package.json
12+
- chore: add CodeQL workflow for GitHub code scanning (#27)
13+
- ci: update to use shared workflows
14+
- doc(README): fix badge URL, update usage
15+
16+
#### [1.0.15] - 2022-05-28
617

718
- style: replace integers with off|warn|error
819
- chore(ci): update configs
920
- chore(pkg): add .release submodule
1021

11-
1222
#### 1.0.14 - 2021-02-03
1323

1424
- CI travis -> Github Actions
1525
- dep eslint >= 7 (was 6)
1626
- ecmaVersion 2017 -> 2018
1727

18-
1928
#### 1.0.13 - 2019-11-22
2029

21-
- eslint prefers 'warn' to 'warning' <sigh>
22-
30+
- eslint prefers 'warn' to 'warning'
2331

2432
#### 1.0.12 - 2019-11-22
2533

2634
- add prefer-template rule
2735
- add eslint parserOptions: ecmaVersion: 2017
2836
- convert .eslintrc.json to .eslintrc.yaml
2937

30-
31-
#### 1.0.11 - 2019-07-09
38+
#### [1.0.11] - 2019-07-09
3239

3340
- add brace-style rule
3441

35-
3642
#### 1.0.10 - 2019-06-22
3743

3844
- remove node 6 testing
3945

40-
4146
#### 1.0.9 - 2017-09-16
4247

4348
- remove no-useless-escape rule
4449

45-
4650
#### 1.0.8 - 2017-09-13
4751

4852
- import rules from haraka/Haraka
4953

50-
5154
#### 1.0.7 - 2017-06-16
5255

5356
- Fixes the format of an eslint plugin. The "rules" section is for custom
5457
rules (i.e. the code for defining the rules), not for enforced rules.
5558

56-
5759
#### 1.0.6 - 2017-06-15
5860

5961
- eslint 4 enables no-useless-escape. Reduces error to warning until that rule
6062
is less brain damaged.
6163

62-
6364
#### 1.0.5 - 2017-02-01
6465

6566
- fixed missing comma at end of no-empty rule
6667
- added "no-undef": 1 (warnings only)
6768

68-
6969
#### 1.0.3 - 2017-01-27
7070

7171
- Updated rules from Haraka main repo
@@ -74,3 +74,8 @@
7474
- added install and usage sections to README
7575
- added env:es6=true
7676
- added space-before-function-paren rule
77+
78+
79+
[1.0.11]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.11
80+
[1.0.15]: https://github.com/haraka/haraka-eslint/releases/tag/1.0.15
81+
[1.0.16]: https://github.com/haraka/haraka-eslint/releases/tag/v1.0.16

index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,19 @@
55
// 2 = error
66

77
const recommendedRules = {
8-
"comma-dangle": ["error", "only-multiline"],
98
"dot-notation": "error",
10-
"indent": ["error", 4, {"SwitchCase": 1}],
119
"one-var": ["error", "never"],
12-
"no-trailing-spaces": ["error", { "skipBlankLines": false }],
13-
"keyword-spacing": ["error", {
14-
"before": true,
15-
"after": true
16-
}],
1710
"no-empty": ["error", { "allowEmptyCatch": true }],
1811
"no-shadow": "error",
1912
"no-undef": "warn",
2013
"no-unused-vars": [ "warn", { "args": "none" }],
21-
"space-before-function-paren": ["error", { "anonymous": "always", "named": "always" }],
2214
"no-console": "off",
2315
"no-path-concat": "error",
2416
"no-cond-assign": ["error", "except-parens"],
2517
"no-constant-condition": ["error", { "checkLoops": false }],
2618
"prefer-const": ["error", {"ignoreReadBeforeAssign": true}],
2719
"no-var": "error",
2820
"object-shorthand": ["warn", "always"],
29-
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
3021
"prefer-template": "warn"
3122
};
3223

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"name": "eslint-plugin-haraka",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "eslint rules for Haraka projects",
55
"main": "index.js",
6+
"files": [
7+
"CHANGELOG.md", "rules"
8+
],
69
"scripts": {
7-
"test": "npx eslint *.js"
10+
"lint": "npx eslint@^8 *.js",
11+
"test": "node index.js"
812
},
913
"repository": {
1014
"type": "git",
@@ -22,7 +26,5 @@
2226
"url": "https://github.com/haraka/haraka-eslint/issues"
2327
},
2428
"homepage": "https://github.com/haraka/haraka-eslint#readme",
25-
"devDependencies": {
26-
"eslint": ">=8"
27-
}
29+
"devDependencies": { }
2830
}

0 commit comments

Comments
 (0)