File tree Expand file tree Collapse file tree 8 files changed +53
-24
lines changed Expand file tree Collapse file tree 8 files changed +53
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4
4
5
5
### Unreleased
6
6
7
+ ### [ 2.0.0] - 2025-01-07
8
+
9
+ - BREAKING: depend on eslint 9
10
+ - deps: declare peerDeps on @eslint/js and @eslint/eslintrc
11
+ - index: globals reflect actual values (vs true)
12
+ - index: bump es2022 -> es2024
13
+
7
14
### [ 1.1.5] - 2024-04-22
8
15
9
16
- add env.es2022=true
@@ -113,3 +120,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
113
120
[ 1.1.3 ] : https://github.com/haraka/haraka-eslint/releases/tag/v1.1.3
114
121
[ 1.1.4 ] : https://github.com/haraka/haraka-eslint/releases/tag/v1.1.4
115
122
[ 1.1.5 ] : https://github.com/haraka/haraka-eslint/releases/tag/v1.1.5
123
+ [ 2.0.0 ] : https://github.com/haraka/haraka-eslint/releases/tag/v2.0.0
Original file line number Diff line number Diff line change 2
2
3
3
This handcrafted artisinal software is brought to you by:
4
4
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 " >35 </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 " >36 </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 >) |
6
6
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
7
7
8
- <sub >this file is maintained by [ .release] ( https://github.com/msimerson/.release ) </sub >
8
+ <sub >this file is generated by [ .release] ( https://github.com/msimerson/.release ) .
9
+ Contribute to this project to get your GitHub profile included here.</sub >
Original file line number Diff line number Diff line change 3
3
[ ![ Build Status] [ ci-img ]] [ ci-url ]
4
4
[ ![ Code Climate] [ clim-img ]] [ clim-url ]
5
5
6
- [ ![ NPM] [ npm-img ]] [ npm-url ]
7
-
8
6
## Install
9
7
10
8
In your Haraka module:
@@ -54,5 +52,3 @@ Custom rules can be added to the .eslintrc file.
54
52
[ ci-url ] : https://github.com/haraka/haraka-eslint/actions/workflows/ci.yml
55
53
[ clim-img ] : https://codeclimate.com/github/haraka/haraka-eslint/badges/gpa.svg
56
54
[ clim-url ] : https://codeclimate.com/github/haraka/haraka-eslint
57
- [ npm-img ] : https://nodei.co/npm/@haraka/eslint-config.png
58
- [ npm-url ] : https://www.npmjs.com/package/@haraka/eslint-config
Original file line number Diff line number Diff line change
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" ;
6
+
7
+ const __filename = fileURLToPath ( import . meta. url ) ;
8
+ const __dirname = path . dirname ( __filename ) ;
9
+ const compat = new FlatCompat ( {
10
+ baseDirectory : __dirname ,
11
+ recommendedConfig : js . configs . recommended ,
12
+ allConfig : js . configs . all ,
13
+ } ) ;
14
+
15
+ export default [
16
+ ...compat . extends ( "eslint:recommended" ) ,
17
+ {
18
+ languageOptions : {
19
+ globals : {
20
+ ...globals . node ,
21
+ } ,
22
+ } ,
23
+ } ,
24
+ ] ;
Original file line number Diff line number Diff line change @@ -5,19 +5,23 @@ module.exports = {
5
5
node : true ,
6
6
es6 : true ,
7
7
mocha : true ,
8
- es2022 : true ,
8
+ es2024 : true ,
9
9
// es2023: true, /* enable with mocha 9 */
10
10
// es2024: true, /* enable after 2024-04-30, when node 18 LTS ends */
11
11
} ,
12
12
root : true ,
13
13
extends : [ "eslint:recommended" ] ,
14
14
globals : {
15
- OK : true ,
16
- CONT : true ,
17
- DENY : true ,
18
- DENYSOFT : true ,
19
- DENYDISCONNECT : true ,
20
- DENYSOFTDISCONNECT : true ,
15
+ CONT : 900 ,
16
+ STOP : 901 ,
17
+ DENY : 902 ,
18
+ DENYSOFT : 903 ,
19
+ DENYDISCONNECT : 904 ,
20
+ DISCONNECT : 905 ,
21
+ OK : 906 ,
22
+ NEXT_HOOK : 907 ,
23
+ DELAY : 908 ,
24
+ DENYSOFTDISCONNECT : 909 ,
21
25
} ,
22
26
parserOptions : {
23
27
ecmaVersion : "latest" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @haraka/eslint-config" ,
3
- "version" : " 1.1.5 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"description" : " eslint config for Haraka projects" ,
5
5
"keywords" : [
6
6
" haraka" ,
17
17
"scripts" : {
18
18
"format" : " npm run prettier:fix && npm run lint:fix" ,
19
19
"format:check" : " npm run prettier && npm run lint" ,
20
- "lint" : " npx eslint@^8 *.js" ,
21
- "lint:fix" : " npx eslint@^8 *.js --fix" ,
20
+ "lint" : " npx eslint *.js" ,
21
+ "lint:fix" : " npx eslint *.js --fix" ,
22
22
"prettier" : " npx prettier . --check" ,
23
23
"prettier:fix" : " npx prettier . --write --log-level=warn" ,
24
24
"test" : " node index.js" ,
37
37
"homepage" : " https://github.com/haraka/haraka-eslint#readme" ,
38
38
"devDependencies" : {},
39
39
"peerDependencies" : {
40
- "eslint" : " ^8.0.0"
40
+ "eslint" : " ^9.x" ,
41
+ "@eslint/js" : " ^10.0.0" ,
42
+ "@eslint/eslintrc" : " 3.2.0"
41
43
}
42
44
}
You can’t perform that action at this time.
0 commit comments