合入主线登录和营业时段策略,对齐旧界面与 React 访问流程
This commit is contained in:
commit
42395de23a
113 files changed
+1915
-558
No files matched your search
@@ -42,6 +42,20 @@ function declaredNames(file) {
|
||||
create(context) {
|
||||
const sourceCode = context.sourceCode;
|
||||
return {
|
||||
CallExpression(node) {
|
||||
const [root, properties] = node.arguments;
|
||||
if (
|
||||
sourceText(node.callee) === 'Object.assign' &&
|
||||
root?.name === 'root' &&
|
||||
properties?.type === 'ObjectExpression' &&
|
||||
isGlobalRootParam(root, sourceCode.getAncestors(node))
|
||||
) {
|
||||
for (const prop of properties.properties) {
|
||||
if (prop.type === 'Property' && !prop.computed && prop.key.type === 'Identifier')
|
||||
names.set(prop.key.name, 'writable');
|
||||
}
|
||||
}
|
||||
},
|
||||
AssignmentExpression(node) {
|
||||
const left = node.left;
|
||||
if (left.type !== 'MemberExpression' || left.computed || left.object.type !== 'Identifier') return;
|
||||
|
||||
Reference in new issue
Block a user