Skip to content

Commit 37be19d

Browse files
authored
build(deps): Migrate to eslint from deprecated tslint (#1103)
* build(deps): Migrate to eslint from deprecated tslint Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com> * build(deps): Upgrade get-port to v7 Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com> --------- Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
1 parent 24df00b commit 37be19d

24 files changed

+1456
-685
lines changed

eslint.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import eslint from '@eslint/js';
2+
import {defineConfig} from 'eslint/config';
3+
import tseslint from 'typescript-eslint';
4+
5+
export default defineConfig([
6+
{
7+
ignores: ['node_modules/', 'out/', 'dist/', '*.vsix', 'coverage/', '.vscode-test/']
8+
},
9+
{
10+
extends: [
11+
eslint.configs.recommended,
12+
tseslint.configs.recommended,
13+
],
14+
files: ['**/*.ts'],
15+
rules: {
16+
'indent': ['error', 4, {SwitchCase: 1}],
17+
'quotes': 'off',
18+
'eol-last': 'off',
19+
'comma-dangle': 'off',
20+
'curly': 'off',
21+
'sort-keys': 'off',
22+
'object-shorthand': 'off',
23+
'no-console': 'off',
24+
'prefer-const': 'off',
25+
26+
'max-classes-per-file': ['error', 5],
27+
28+
'@typescript-eslint/no-explicit-any': 'off',
29+
'@typescript-eslint/no-unused-vars': 'off',
30+
}
31+
}
32+
]);

0 commit comments

Comments
 (0)