Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/base/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
},
"contexts": [
":not(Property, NewExpression, CallExpression) > ArrowFunctionExpression",
":not(Property, NewExpression, CallExpression) > FunctionExpression"
":not(Property, NewExpression, CallExpression) > FunctionExpression",
"ExportNamedDeclaration:has(> VariableDeclaration)"
]
}
],
Expand Down
2 changes: 2 additions & 0 deletions packages/base/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ const rules = createConfig({
// Function expressions that are not contained within plain objects
// or are not arguments to functions or methods
':not(Property, NewExpression, CallExpression) > FunctionExpression',
// Exported variables
'ExportNamedDeclaration:has(> VariableDeclaration)',
],
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/typescript/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
"contexts": [
":not(Property, NewExpression, CallExpression) > ArrowFunctionExpression",
":not(Property, NewExpression, CallExpression) > FunctionExpression",
"ExportNamedDeclaration:has(> VariableDeclaration)",
":not(TSModuleBlock) > TSInterfaceDeclaration",
":not(TSModuleBlock) > TSTypeAliasDeclaration",
"TSEnumDeclaration"
Expand Down
Loading