Skip to content

Commit

Permalink
Upgrade to eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Oct 29, 2024
1 parent 4aa48e0 commit c0ac54e
Show file tree
Hide file tree
Showing 16 changed files with 162 additions and 147 deletions.
49 changes: 0 additions & 49 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83381,7 +83381,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const main_1 = __nccwpck_require__(1730);
// eslint-disable-next-line @typescript-eslint/no-floating-promises
(0, main_1.run)();

})();
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// @ts-check
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginJest from 'eslint-plugin-jest';
import notice from "eslint-plugin-notice";
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default tseslint.config({
files: ["src/**/*.ts", "test/**/*.ts", "test-live/**/*.ts"],
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
...pluginJest.configs['flat/recommended'],
...eslintPluginPrettierRecommended,
languageOptions: {
ecmaVersion: 2020,
},
plugins: { notice },
rules: {
"notice/notice": [
"error",
{
template: "// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n",
},
],
},
});
Loading

0 comments on commit c0ac54e

Please sign in to comment.