File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
biome_cli/tests/snapshots/main_cases_migrate_v2
biome_migrate/src/analyzers Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ expression: redactor(content)
2727 " noVar" : " error"
2828 },
2929 " style" : {
30+ " useNamingConvention" : {
31+ " level" : " error" ,
32+ " options" : {
33+ " strictCase" : false
34+ }
35+ },
3036 " noDefaultExport" : " error" ,
3137 " noParameterAssign" : " error" ,
3238 " useAsConstAssertion" : " error" ,
@@ -48,14 +54,6 @@ expression: redactor(content)
4854 " noUnsafeFinally" : " error" ,
4955 " noSwitchDeclarations" : " off" ,
5056 " noSelfAssign" : " off"
51- },
52- " nursery" : {
53- " useNamingConvention" : {
54- " level" : " error" ,
55- " options" : {
56- " strictCase" : false
57- }
58- }
5957 }
6058 }
6159 }
Original file line number Diff line number Diff line change @@ -70,7 +70,9 @@ impl Rule for RuleMover {
7070 } ;
7171 let rule_name = rule_name. text ( ) ;
7272 if let Ok ( new_rule) = RuleName :: from_str ( rule_name) {
73- if new_rule. group ( ) != current_group {
73+ // TODO: remove the `useNamingConvention` exception,
74+ // once we have promoted the GraphQL `useNamingConvention` rule
75+ if new_rule. group ( ) != current_group && rule_name != "useNamingConvention" {
7476 result. push ( State {
7577 rule_node,
7678 new_rule,
You can’t perform that action at this time.
0 commit comments