diff options
| author | christine betts <[email protected]> | 2025-07-14 15:34:44 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-14 15:34:44 +0000 |
| commit | e9d680e8a45b18152042214891132eec60e4a09b (patch) | |
| tree | f745dd75afd81079369b4234ecbf34f1adad396e /packages/vscode-ide-companion/eslint.config.mjs | |
| parent | 64f1d80b26af25708356e8a743ea7fab1496c7e9 (diff) | |
Introduce VSCode companion extension (#3917)
Diffstat (limited to 'packages/vscode-ide-companion/eslint.config.mjs')
| -rw-r--r-- | packages/vscode-ide-companion/eslint.config.mjs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/vscode-ide-companion/eslint.config.mjs b/packages/vscode-ide-companion/eslint.config.mjs new file mode 100644 index 00000000..665dbf35 --- /dev/null +++ b/packages/vscode-ide-companion/eslint.config.mjs @@ -0,0 +1,34 @@ +import typescriptEslint from '@typescript-eslint/eslint-plugin'; +import tsParser from '@typescript-eslint/parser'; + +export default [ + { + files: ['**/*.ts'], + }, + { + plugins: { + '@typescript-eslint': typescriptEslint, + }, + + languageOptions: { + parser: tsParser, + ecmaVersion: 2022, + sourceType: 'module', + }, + + rules: { + '@typescript-eslint/naming-convention': [ + 'warn', + { + selector: 'import', + format: ['camelCase', 'PascalCase'], + }, + ], + + curly: 'warn', + eqeqeq: 'warn', + 'no-throw-literal': 'warn', + semi: 'warn', + }, + }, +]; |
