Skip to content

Commit 618c985

Browse files
committed
upgrade eslint-plugin-promise
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent ccaf32d commit 618c985

File tree

4 files changed

+8
-86
lines changed

4 files changed

+8
-86
lines changed

Diff for: .github/workflows/autogen/eslint.config.mjs

-51
This file was deleted.

Diff for: eslint.config.mjs

+2-14
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,35 @@ import path from 'node:path'
2020
import { fileURLToPath } from 'node:url'
2121
import js from '@eslint/js'
2222
import { FlatCompat } from '@eslint/eslintrc'
23-
2423
const __filename = fileURLToPath(import.meta.url)
2524
const __dirname = path.dirname(__filename)
2625
const compat = new FlatCompat({
2726
baseDirectory: __dirname,
2827
recommendedConfig: js.configs.recommended,
2928
allConfig: js.configs.all
3029
})
31-
3230
export default [...compat.extends('standard'), {
31+
files: ['**/*.mjs'],
3332
plugins: {
3433
headers
3534
},
36-
3735
languageOptions: {
3836
globals: {
3937
...globals.browser,
4038
...globals.jest
4139
},
42-
4340
ecmaVersion: 'latest',
4441
sourceType: 'module'
4542
},
46-
4743
rules: {
44+
'require-await': 'error',
4845
'no-template-curly-in-string': 'off',
4946
'headers/header-format': ['error', {
5047
source: 'string',
51-
5248
variables: {
5349
year: '2024'
5450
},
55-
5651
content: 'Copyright (C) {year} Hedera Hashgraph, LLC\n\nLicensed under the Apache License, Version 2.0 (the ""License"");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an ""AS IS"" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n'
5752
}]
5853
}
59-
}, {
60-
files: ['**/*.mjs'],
61-
62-
languageOptions: {
63-
ecmaVersion: 'latest',
64-
sourceType: 'module'
65-
}
6654
}]

Diff for: package-lock.json

+5-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"cross-env": "^7.0.3",
7676
"eslint": "^9.11.1",
7777
"eslint-plugin-headers": "^1.1.2",
78-
"eslint-plugin-promise": "^6.6.0",
78+
"eslint-plugin-promise": "^7.1.0",
7979
"globals": "^15.10.0",
8080
"jest": "^29.7.0",
8181
"jest-environment-steps": "^1.1.1",

0 commit comments

Comments
 (0)