Skip to content

Commit 8399c76

Browse files
fix: vs extension lint error
1 parent ae17d7e commit 8399c76

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/b2c-vs-extension/eslint.config.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {includeIgnoreFile} from '@eslint/compat';
77
import headerPlugin from 'eslint-plugin-header';
88
import path from 'node:path';
99
import {fileURLToPath} from 'node:url';
10-
import typescriptEslint from 'typescript-eslint';
10+
import tseslint from 'typescript-eslint';
1111

1212
import {copyrightHeader, sharedRules, prettierPlugin} from '../../eslint.config.mjs';
1313

@@ -16,17 +16,16 @@ headerPlugin.rules.header.meta.schema = false;
1616

1717
export default [
1818
includeIgnoreFile(gitignorePath),
19-
...typescriptEslint.config({
20-
files: ['**/*.ts'],
21-
languageOptions: {
22-
parserOptions: {ecmaVersion: 2022, sourceType: 'module'},
23-
},
24-
}),
19+
...tseslint.configs.recommended,
2520
prettierPlugin,
2621
{
22+
files: ['**/*.ts'],
2723
plugins: {
2824
header: headerPlugin,
2925
},
26+
languageOptions: {
27+
parserOptions: {ecmaVersion: 2022, sourceType: 'module'},
28+
},
3029
rules: {
3130
'header/header': ['error', 'block', copyrightHeader],
3231
...sharedRules,

0 commit comments

Comments
 (0)