File tree 4 files changed +11
-4
lines changed
4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-plugin-json-schema-validator " : minor
3
+ ---
4
+
5
+ feat: improved compatibility with ` @types/eslint ` for flat config.
Original file line number Diff line number Diff line change 1
- import type { ESLint } from "eslint" ;
1
+ import type { ESLint , Linter } from "eslint" ;
2
2
import * as jsoncParser from "jsonc-eslint-parser" ;
3
3
import * as yamlParser from "yaml-eslint-parser" ;
4
4
import * as tomlParser from "toml-eslint-parser" ;
@@ -54,4 +54,4 @@ export default [
54
54
"spaced-comment" : "off" ,
55
55
} ,
56
56
} ,
57
- ] ;
57
+ ] satisfies Linter . FlatConfig [ ] as Linter . FlatConfig [ ] ;
Original file line number Diff line number Diff line change
1
+ import type { Linter } from "eslint" ;
1
2
import base from "./base" ;
2
3
export default [
3
4
...base ,
@@ -7,4 +8,4 @@ export default [
7
8
"json-schema-validator/no-invalid" : "warn" ,
8
9
} ,
9
10
} ,
10
- ] ;
11
+ ] satisfies Linter . FlatConfig [ ] ;
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export = {
56
56
57
57
for ( const rec of [ "recommended" ] as const ) {
58
58
let content = `
59
+ import type { Linter } from "eslint";
59
60
import base from './base';
60
61
export default [
61
62
...base,
@@ -76,7 +77,7 @@ export default [
76
77
. join ( ",\n" ) }
77
78
},
78
79
}
79
- ]
80
+ ] satisfies Linter.FlatConfig[]
80
81
` ;
81
82
82
83
const filePath = path . resolve ( __dirname , FLAT_RULESET_NAME [ rec ] ) ;
You can’t perform that action at this time.
0 commit comments