Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ interpreter resolution, and logging.
```bash
cd typescript
npm install
npm run lint
npm run build
npm test
```

Linting uses ESLint 10 with the flat configuration in `typescript/eslint.config.mjs`.
Use the Node.js version pinned in `.nvmrc` for development.

## Consuming in Extensions

Consume this repository as a git submodule so the Python and TypeScript
Expand Down
23 changes: 0 additions & 23 deletions typescript/.eslintrc.json

This file was deleted.

26 changes: 26 additions & 0 deletions typescript/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import parser from '@typescript-eslint/parser';
import plugin from '@typescript-eslint/eslint-plugin';

export default [
{
ignores: ['out/**', 'dist/**', '**/*.d.ts'],
},
{
files: ['**/*.ts'],
languageOptions: {
parser,
ecmaVersion: 6,
sourceType: 'module',
},
plugins: {
'@typescript-eslint': plugin,
},
rules: {
'@typescript-eslint/naming-convention': 'warn',
semi: 'warn',
curly: 'warn',
eqeqeq: 'warn',
'no-throw-literal': 'warn',
},
},
];
Loading
Loading