Skip to content

Commit 7bdd0b1

Browse files
author
Erik Soehnel
committed
separate ESLint for the viewer app
1 parent 0aa70c4 commit 7bdd0b1

File tree

5 files changed

+1615
-118
lines changed

5 files changed

+1615
-118
lines changed

.github/workflows/pages.yml

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Install
3939
run: npm ci
4040

41+
- name: Lint
42+
run: npm run lint
43+
4144
- name: Build docs
4245
run: npm run build
4346

docs/eslint.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// generated with `npm init @eslint/config@latest`
2+
import js from '@eslint/js';
3+
import globals from 'globals';
4+
import tseslint from 'typescript-eslint';
5+
import { defineConfig, globalIgnores } from 'eslint/config';
6+
7+
export default defineConfig([
8+
globalIgnores(['dist', 'eslint.config.js']),
9+
{
10+
files: ['src/**/*.{ts, tsx}'],
11+
plugins: { js },
12+
extends: ['js/recommended'],
13+
},
14+
{
15+
files: ['src/**/*.{ts, tsx}'],
16+
languageOptions: { globals: globals.browser },
17+
},
18+
tseslint.configs.recommended,
19+
]);

0 commit comments

Comments
 (0)