File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 28
28
- name : Run build
29
29
run : pnpm run build
30
30
- name : Lint source code
31
- run : pnpm run lint --max-warnings=0
31
+ run : pnpm run lint -- -- max-warnings=0
32
32
- name : Run all tests
33
33
run : pnpm run test:all
34
34
- name : Sanity check standalone build
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const buildRulesTable = (rows: Array<string>) => {
59
59
const buildHeader = ( filename : string ) : string => {
60
60
const ruleName = filename . replace ( / \. m d $ / , "" ) ;
61
61
if ( ! rules [ ruleName ] ) return " " ;
62
- const meta : TSESLint . RuleMetaData < never > = rules [ ruleName ] . meta ;
62
+ const meta : TSESLint . RuleMetaData < string , readonly unknown [ ] > = rules [ ruleName ] . meta ;
63
63
return [
64
64
`# solid/${ ruleName } ` ,
65
65
meta . docs ?. description ,
Original file line number Diff line number Diff line change
1
+ import { test , expect } from "vitest" ;
2
+
1
3
import path from "path" ;
2
4
// @ts -expect-error Type definitions not updated to include FlatESLint
3
5
import { ESLint as FlatESLint } from "eslint" ;
Original file line number Diff line number Diff line change
1
+ import { test , expect } from "vitest" ;
2
+
1
3
import recommendedConfig from "eslint-plugin-solid/configs/recommended" ;
2
4
import typescriptConfig from "eslint-plugin-solid/configs/typescript" ;
3
5
import plugin from "eslint-plugin-solid" ;
Original file line number Diff line number Diff line change
1
+ export default {
2
+ test : {
3
+ globals : true ,
4
+ setupFiles : [ "vitest.setup.js" ] ,
5
+ } ,
6
+ } ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments