@@ -53,24 +53,23 @@ export default defineConfig([
5353 } ,
5454 } ,
5555 plugins : {
56- "nullish-comparison" : defineRule ( "v1" , nullishComparison ( ) ) ,
57- "template-expression" : defineRule ( "v1" , templateExpression ( ) ) ,
58-
59- custom : defineRule ( "v1" , ( context ) => ( {
60- TemplateLiteral ( node ) {
61- if ( node . loc ?. start . line !== node . loc ?. end . line ) {
62- context . report ( {
63- node,
64- message : "Avoid multiline template expressions." ,
65- } ) ;
66- }
67- } ,
68- } ) ) ,
56+ "function-rule-1" : defineRule ( templateExpression ( ) ) ,
57+ "function-rule-2" : defineRule ( nullishComparison ( ) ) ,
58+ // custom: defineRule((context) => ({
59+ // TemplateLiteral(node) {
60+ // if (node.loc?.start.line !== node.loc?.end.line) {
61+ // context.report({
62+ // node,
63+ // message: "Avoid multiline template expressions.",
64+ // });
65+ // }
66+ // },
67+ // })),
6968 } ,
7069 rules : {
7170 "fast-import/no-unused-exports" : "off" ,
72- "nullish-comparison/v1 " : "error " ,
73- "template-expression/v1 " : "warn " ,
71+ "function-rule-1/function-rule " : "warn " ,
72+ "function-rule-2/function-rule " : "error " ,
7473 } ,
7574 } ,
7675 {
@@ -108,8 +107,8 @@ export default defineConfig([
108107 } ,
109108 rules : {
110109 "@typescript-eslint/no-empty-function" : [ "error" , { allow : [ "arrowFunctions" ] } ] ,
111- "nullish-comparison/v1 " : "off" ,
112- "template-expression/v1 " : "off" ,
110+ "function-rule-1/function-rule " : "off" ,
111+ "function-rule-2/function-rule " : "off" ,
113112 } ,
114113 } ,
115114 disableProblematicEslintJsRules ,
0 commit comments