-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy patheslint.config.mjs
More file actions
29 lines (27 loc) · 995 Bytes
/
eslint.config.mjs
File metadata and controls
29 lines (27 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { azExtEslintRecommended } from '@microsoft/vscode-azext-eng/eslint'; // Other configurations exist
import { defineConfig } from 'eslint/config';
export default defineConfig([
azExtEslintRecommended,
{
ignores: [
'api/dist/**',
'api/out/**',
],
},
{
rules: {
'no-restricted-imports': ['error', {
patterns: [
{
group: ['*api/docs*'],
message: 'Don\'t import from docs. Import from src instead.',
},
],
}],
},
},
]);