Skip to content

Commit

Permalink
upgrade eslint-plugin-promise
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Oct 3, 2024
1 parent ccaf32d commit 618c985
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 86 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/autogen/eslint.config.mjs

This file was deleted.

16 changes: 2 additions & 14 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,35 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
})

export default [...compat.extends('standard'), {
files: ['**/*.mjs'],
plugins: {
headers
},

languageOptions: {
globals: {
...globals.browser,
...globals.jest
},

ecmaVersion: 'latest',
sourceType: 'module'
},

rules: {
'require-await': 'error',
'no-template-curly-in-string': 'off',
'headers/header-format': ['error', {
source: 'string',

variables: {
year: '2024'
},

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'
}]
}
}, {
files: ['**/*.mjs'],

languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
}
}]
25 changes: 5 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"cross-env": "^7.0.3",
"eslint": "^9.11.1",
"eslint-plugin-headers": "^1.1.2",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-promise": "^7.1.0",
"globals": "^15.10.0",
"jest": "^29.7.0",
"jest-environment-steps": "^1.1.1",
Expand Down

0 comments on commit 618c985

Please sign in to comment.