Skip to content

Commit e0c311f

Browse files
committed
Lint and typescript fixes.
1 parent 417571d commit e0c311f

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Run build
2929
run: pnpm run build
3030
- name: Lint source code
31-
run: pnpm run lint --max-warnings=0
31+
run: pnpm run lint -- --max-warnings=0
3232
- name: Run all tests
3333
run: pnpm run test:all
3434
- name: Sanity check standalone build

scripts/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const buildRulesTable = (rows: Array<string>) => {
5959
const buildHeader = (filename: string): string => {
6060
const ruleName = filename.replace(/\.md$/, "");
6161
if (!rules[ruleName]) return " ";
62-
const meta: TSESLint.RuleMetaData<never> = rules[ruleName].meta;
62+
const meta: TSESLint.RuleMetaData<string, readonly unknown[]> = rules[ruleName].meta;
6363
return [
6464
`# solid/${ruleName}`,
6565
meta.docs?.description,

test/fixture.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { test, expect } from "vitest";
2+
13
import path from "path";
24
// @ts-expect-error Type definitions not updated to include FlatESLint
35
import { ESLint as FlatESLint } from "eslint";

test/format.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { test, expect } from "vitest";
2+
13
import recommendedConfig from "eslint-plugin-solid/configs/recommended";
24
import typescriptConfig from "eslint-plugin-solid/configs/typescript";
35
import plugin from "eslint-plugin-solid";

vitest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
test: {
3+
globals: true,
4+
setupFiles: ["vitest.setup.js"],
5+
},
6+
};

vitest.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)