Skip to content

Commit ed41dd2

Browse files
committed
ci: fix broken ci run
1 parent 4f3b01f commit ed41dd2

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

eslint.config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import js from "@eslint/js";
22
import { defineConfig } from "eslint/config";
33
import simpleImportSort from "eslint-plugin-simple-import-sort";
4+
import solid from "eslint-plugin-solid/configs/typescript";
45
import globals from "globals";
56
import tseslint from "typescript-eslint";
67

@@ -76,6 +77,37 @@ export default defineConfig([
7677
},
7778
//
7879
// ────────────────────────────────
80+
// 4️⃣ SolidJS + TypeScript
81+
// ────────────────────────────────
82+
//
83+
{
84+
files: ["playground/**/*.ts", "playground/**/*.tsx"],
85+
languageOptions: {
86+
parser: tseslint.parser,
87+
parserOptions: {
88+
sourceType: "module",
89+
project: "./tsconfig.json",
90+
ecmaFeatures: { jsx: true },
91+
},
92+
globals: {
93+
...globals.browser,
94+
...globals.es2022,
95+
},
96+
},
97+
plugins: {
98+
solid: {
99+
meta: solid.plugins.solid.meta,
100+
// @ts-expect-error — Solid config typing is a bit off
101+
rules: solid.plugins.solid.rules,
102+
},
103+
},
104+
rules: {
105+
...solid.rules,
106+
"@typescript-eslint/no-non-null-assertion": "off",
107+
},
108+
},
109+
//
110+
// ────────────────────────────────
79111
// 5️⃣ Test environment
80112
// ────────────────────────────────
81113
//

setupTests.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"moduleDetection": "force",
1414
"isolatedModules": true,
1515
"verbatimModuleSyntax": true,
16-
1716
/* Strictness */
1817
"strict": true,
1918
"allowUnreachableCode": false,
@@ -22,13 +21,11 @@
2221
"noUncheckedIndexedAccess": true,
2322
"noUnusedLocals": true,
2423
"noUnusedParameters": true,
25-
2624
/* JSX */
2725
"jsx": "preserve",
2826
"jsxImportSource": "solid-js",
29-
3027
/* Types */
31-
"types": ["vite/client", "bun-types", "@testing-library/jest-dom"]
28+
"types": ["vite/client", "bun-types"]
3229
},
3330
"exclude": ["node_modules", "coverage", "dist"]
3431
}

0 commit comments

Comments
 (0)