File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 30
30
"rules" : {
31
31
"@typescript-eslint/no-unnecessary-condition" : " off" ,
32
32
"import/no-relative-parent-imports" : " error" ,
33
+ "functional/prefer-readonly-type" : " off" ,
34
+ "functional/prefer-readonly-type-declaration" : " warn" ,
33
35
"node/no-unsupported-features/es-builtins" : " off" ,
34
36
"node/no-unsupported-features/es-syntax" : " off" ,
35
37
// enable once supported in all our supported node versions.
Original file line number Diff line number Diff line change @@ -82,10 +82,8 @@ export function createDummyRule(
82
82
} as unknown as Rule . RuleModule ;
83
83
}
84
84
85
- export type RuleTesterTests = {
86
- // eslint-disable-next-line functional/prefer-readonly-type
85
+ export type MutableRuleTesterTests = {
87
86
valid ?: Array < ESLintRuleTester . ValidTestCase | string > ;
88
- // eslint-disable-next-line functional/prefer-readonly-type
89
87
invalid ?: Array < ESLintRuleTester . InvalidTestCase > ;
90
88
} ;
91
89
@@ -94,8 +92,8 @@ export type RuleTesterTests = {
94
92
*/
95
93
export function addFilename (
96
94
filename : string ,
97
- tests : RuleTesterTests
98
- ) : RuleTesterTests {
95
+ tests : MutableRuleTesterTests
96
+ ) : MutableRuleTesterTests {
99
97
const { valid, invalid } = tests ;
100
98
return {
101
99
invalid : invalid ?. map ( ( test ) => ( { ...test , filename } ) ) ,
You can’t perform that action at this time.
0 commit comments