@@ -98,7 +98,6 @@ module.exports = defineConfig({
9898 "@typescript-eslint/no-unsafe-return" : 0 ,
9999 "@typescript-eslint/no-unnecessary-type-arguments" : 0 ,
100100 // TODO there should be rules for this already
101- "@typescript-eslint/naming-convention" : 0 ,
102101 "no-implicit-coercion" : 0 ,
103102 "import/no-named-as-default-member" : 0 ,
104103 "import/no-named-as-default" : 0 ,
@@ -181,7 +180,6 @@ module.exports = defineConfig({
181180 } ,
182181 ] ,
183182 "react/destructuring-assignment" : 0 ,
184- "react/jsx-props-no-spreading" : 0 ,
185183 "react/prop-types" : 0 ,
186184 "react/require-default-props" : 0 ,
187185 "react/static-property-placement" : 0 ,
@@ -192,6 +190,10 @@ module.exports = defineConfig({
192190 unnamedComponents : [ "function-expression" , "arrow-function" ] ,
193191 } ,
194192 ] ,
193+ // Custom rule to enforce data-testid attribute naming
194+ 'react/no-unknown-property' : [ 'error' , {
195+ requireDataLowercase : true ,
196+ } ] ,
195197 // There seems to be no other way to override this than disabling it and rewriting the rules in the naming-convention
196198 "@typescript-eslint/camelcase" : [ "off" ] ,
197199 "@typescript-eslint/no-empty-function" : 0 ,
0 commit comments