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: 0 additions & 4 deletions .eslintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
name: Build, Lint & Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build (esbuild)
run: npm run esbuild

- name: Lint
run: npm run lint

- name: TypeScript compile
run: npm run ts-compile

- name: Unit tests
run: npm run unit-test
38 changes: 38 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// @ts-check
import tseslint from 'typescript-eslint';

export default tseslint.config(
{
ignores: ['**/src/*/vscode.d.ts', '**/src/*/vscode.proposed*.d.ts', 'out/', 'dist/'],
},
{
files: ['src/**/*.ts'],
plugins: {
'@typescript-eslint': tseslint.plugin,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
},
rules: {
'constructor-super': 'warn',
'curly': 'warn',
'eqeqeq': 'warn',
'no-caller': 'warn',
'no-debugger': 'warn',
'no-duplicate-case': 'warn',
'no-duplicate-imports': 'warn',
'no-eval': 'warn',
'no-extra-semi': 'warn',
'no-new-wrappers': 'warn',
'no-sparse-arrays': 'warn',
'no-throw-literal': 'warn',
'no-unsafe-finally': 'warn',
'no-unused-labels': 'warn',
'no-var': 'warn',
},
}
);
Loading
Loading