Skip to content

Commit

Permalink
✨ feat: Update dependencies and eslint rules
Browse files Browse the repository at this point in the history
Update package dependencies to their latest versions and add new ESLint
rules for better code quality and consistency.

The changes include updating various dependencies in `package.json` to their latest versions to incorporate bug fixes, improved performance, and new features from those packages. Additionally, two new ESLint rules, `unicorn/import-style` and `unicorn/no-anonymous-default-export`, have been added to the ESLint configuration in `src/eslint/index.ts` to enforce consistent import styles and discourage anonymous default exports, which can improve code readability and maintainability.
  • Loading branch information
Gincioks committed May 4, 2024
1 parent b223e22 commit 4c32d6c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 74 deletions.
149 changes: 75 additions & 74 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,84 +55,85 @@
]
},
"dependencies": {
"@trivago/prettier-plugin-sort-imports": "^4",
"@typescript-eslint/eslint-plugin": "^6",
"@typescript-eslint/parser": "^6",
"@umijs/babel-preset-umi": "^4",
"@umijs/lint": "^4",
"commitlint-config-gitmoji": "^2",
"eslint-config-prettier": "^9",
"eslint-import-resolver-alias": "^1",
"eslint-import-resolver-typescript": "^3",
"eslint-plugin-import": "^2",
"eslint-plugin-jest": "^27",
"eslint-plugin-react": "^7",
"eslint-plugin-react-hooks": "^4",
"eslint-plugin-simple-import-sort": "^10",
"eslint-plugin-sort-keys-fix": "^1",
"eslint-plugin-typescript-sort-keys": "^3",
"eslint-plugin-unicorn": "^49",
"eslint-plugin-unused-imports": "^3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@umijs/babel-preset-umi": "^4.1.10",
"@umijs/lint": "^4.1.10",
"commitlint-config-gitmoji": "^2.3.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.3.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-typescript-sort-keys": "^3.2.0",
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"gatsby-remark-find-replace": "^0.3.0",
"postcss-less": "^6",
"postcss-styled-syntax": "^0.5",
"prettier-plugin-organize-imports": "^3",
"prettier-plugin-packagejson": "^2",
"prettier-plugin-sh": "^0.13",
"prettier-plugin-sort-json": "^3",
"remark-frontmatter": "^5",
"remark-gfm": "^3",
"remark-lint": "^9",
"remark-lint-checkbox-content-indent": "^4",
"remark-lint-frontmatter-schema": "^3",
"remark-lint-heading-whitespace": "^1",
"remark-lint-linebreak-style": "^3",
"remark-lint-list-item-indent": "^3",
"remark-lint-list-item-spacing": "^4",
"remark-lint-no-duplicate-headings-in-section": "^3",
"remark-lint-no-empty-sections": "^4",
"remark-lint-no-empty-url": "^3",
"remark-lint-no-file-name-irregular-characters": "^2",
"remark-lint-no-heading-indent": "^4",
"remark-lint-no-heading-like-paragraph": "^3",
"remark-lint-no-paragraph-content-indent": "^4",
"remark-lint-no-reference-like-url": "^3",
"remark-lint-no-shell-dollars": "^3",
"remark-lint-no-tabs": "^3",
"remark-lint-no-unneeded-full-reference-image": "^3",
"remark-lint-no-unneeded-full-reference-link": "^3",
"remark-lint-ordered-list-marker-value": "^3",
"remark-lint-write-good": "^1",
"remark-pangu": "^2",
"remark-preset-lint-consistent": "^5",
"remark-preset-lint-markdown-style-guide": "^5",
"remark-preset-lint-recommended": "^6",
"remark-remove-unused-definitions": "^1",
"remark-sort-definitions": "^1",
"remark-textr": "^5",
"remark-toc": "^9",
"semantic-release-config-gitmoji": "^1",
"stylelint-config-clean-order": "^5",
"stylelint-config-recommended": "^13",
"stylelint-less": "^2",
"stylelint-order": "^6",
"postcss-less": "^6.0.0",
"postcss-styled-syntax": "^0.6.4",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.5.0",
"prettier-plugin-sh": "^0.14.0",
"prettier-plugin-sort-json": "^4.0.0",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^3.0.1",
"remark-lint": "^9.1.2",
"remark-lint-checkbox-content-indent": "^4.1.2",
"remark-lint-frontmatter-schema": "^3.15.4",
"remark-lint-heading-whitespace": "^1.0.0",
"remark-lint-linebreak-style": "^3.1.2",
"remark-lint-list-item-indent": "^3.1.2",
"remark-lint-list-item-spacing": "^4.1.2",
"remark-lint-no-duplicate-headings-in-section": "^3.1.2",
"remark-lint-no-empty-sections": "^4.0.0",
"remark-lint-no-empty-url": "^3.1.2",
"remark-lint-no-file-name-irregular-characters": "^2.1.2",
"remark-lint-no-heading-indent": "^4.1.2",
"remark-lint-no-heading-like-paragraph": "^3.1.2",
"remark-lint-no-paragraph-content-indent": "^4.1.2",
"remark-lint-no-reference-like-url": "^3.1.2",
"remark-lint-no-shell-dollars": "^3.1.2",
"remark-lint-no-tabs": "^3.1.2",
"remark-lint-no-unneeded-full-reference-image": "^3.1.2",
"remark-lint-no-unneeded-full-reference-link": "^3.1.2",
"remark-lint-ordered-list-marker-value": "^3.1.2",
"remark-lint-write-good": "^1.2.0",
"remark-pangu": "^2.2.0",
"remark-preset-lint-consistent": "^5.1.2",
"remark-preset-lint-markdown-style-guide": "^5.1.3",
"remark-preset-lint-recommended": "^6.1.3",
"remark-remove-unused-definitions": "^1.0.4",
"remark-sort-definitions": "^1.0.5",
"remark-textr": "^5.0.1",
"remark-toc": "^9.0.0",
"semantic-release-config-gitmoji": "^1.5.3",
"stylelint-config-clean-order": "^5.4.2",
"stylelint-config-recommended": "^14.0.0",
"stylelint-less": "^3.0.1",
"stylelint-order": "^6.0.4",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@commitlint/cli": "^18",
"@types/node": "^20",
"antd-style": "^3",
"clean-pkg-json": "^1",
"commitlint": "^18",
"eslint": "^8",
"father": "^4",
"husky": "^8",
"lint-staged": "^15",
"prettier": "^3",
"remark": "^14",
"remark-cli": "^11",
"semantic-release": "^21",
"typescript": "^5"
"@commitlint/cli": "^19.3.0",
"@types/node": "^20.12.7",
"antd-style": "^3.6.2",
"clean-pkg-json": "^1.2.0",
"commitlint": "^19.3.0",
"eslint": "^8.57.0",
"father": "^4.4.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"semantic-release": "^21.1.2",
"stylelint": "^16.4.0",
"typescript": "^5.4.5"
},
"peerDependencies": {
"eslint": ">=8.42",
Expand Down
2 changes: 2 additions & 0 deletions src/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default {
'typescript-sort-keys/string-enum': 'error',
'unicorn/explicit-length-check': 'warn',
'unicorn/filename-case': 0,
'unicorn/import-style': 0,
'unicorn/no-anonymous-default-export': 0,
'unicorn/no-array-for-each': 'warn',
'unicorn/no-array-reduce': 0,
'unicorn/no-empty-file': 'warn',
Expand Down

0 comments on commit 4c32d6c

Please sign in to comment.