-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aa48e0
commit c0ac54e
Showing
16 changed files
with
162 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
], | ||
}, | ||
}); |
Oops, something went wrong.