File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,6 @@ const config: Linter.FlatConfig[] = [
66
66
'no-redeclare' : 'off' , // TypeScript handles this better
67
67
68
68
// Turn off rules that don't exist or cause issues
69
- 'react-hooks/exhaustive-deps' : 'off' ,
70
- '@next/next/no-sync-scripts' : 'off' ,
71
69
'no-shadow-restricted-names' : 'off' ,
72
70
73
71
// TypeScript specific rules - simplified and lenient
@@ -104,7 +102,7 @@ const config: Linter.FlatConfig[] = [
104
102
'max-len' : [
105
103
'warn' ,
106
104
{
107
- code : 512 ,
105
+ code : 1024 ,
108
106
tabWidth : 2 ,
109
107
ignoreUrls : true ,
110
108
ignoreStrings : true ,
@@ -113,6 +111,27 @@ const config: Linter.FlatConfig[] = [
113
111
ignoreComments : false ,
114
112
} ,
115
113
] ,
114
+
115
+ // Object formatting - allow single line objects
116
+ 'object-curly-newline' : [
117
+ 'warn' ,
118
+ {
119
+ ObjectExpression : { multiline : true , consistent : true } ,
120
+ ObjectPattern : { multiline : true , consistent : true } ,
121
+ ImportDeclaration : { multiline : true , consistent : true } ,
122
+ ExportDeclaration : { multiline : true , consistent : true } ,
123
+ } ,
124
+ ] ,
125
+
126
+ // Align colons in multiline objects
127
+ 'key-spacing' : [
128
+ 'warn' ,
129
+ {
130
+ beforeColon : false ,
131
+ afterColon : true ,
132
+ mode : 'strict' ,
133
+ } ,
134
+ ] ,
116
135
} ,
117
136
settings : {
118
137
react : {
You can’t perform that action at this time.
0 commit comments