Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 3795086
Added
eslint-plugin-lodash
to enforce consistent and optimized usage oflodash
functions across the codebase. Refactored several files to import specificlodash
modules instead of the whole library. Updated.eslintrc.js
to enable thelodash
plugin and rule.🔍 Walkthrough
🤖 Generated by Copilot at 3795086
eslint-plugin-lodash
dependency topackage.json
to enablelodash
plugin and rules for eslint (link)lodash
plugin andlodash/import-scope
rule to.eslintrc.js
to enforce importing specific lodash modules instead of the entire lodash package (link, link)kebabCase
function fromlodash
tolodash/kebabCase
incomponents/config-provider/__tests__/theme.test.tsx
andtests/shared/demoTest.tsx
to followlodash/import-scope
rule (link, link)uniqueId
function fromlodash
tolodash/uniqueId
incomponents/form/demo/custom-feedback-icons.tsx
to followlodash/import-scope
rule (link)cloneDeep
function fromlodash
tolodash/cloneDeep
incomponents/upload/__tests__/upload.test.tsx
to followlodash/import-scope
rule (link)remove
,sortBy
, andunionBy
functions fromlodash
tolodash/remove
,lodash/sortBy
, andlodash/unionBy
respectively inscripts/generate-authors.ts
to followlodash/import-scope
rule (link)_
prefix fromremove
,sortBy
, andunionBy
functions inexecute
function ofscripts/generate-authors.ts
to match the imported names (link, link)