Skip to content

Commit

Permalink
feat: remove eslint doc
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Sep 11, 2024
1 parent cfb74ed commit b9c7b7a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 301 deletions.
148 changes: 0 additions & 148 deletions packages/document/main-doc/docs/en/guides/advanced-features/eslint.mdx

This file was deleted.

2 changes: 2 additions & 0 deletions packages/document/main-doc/docs/en/guides/deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ The Monorepo solution previously provided by Modern.js was implemented based on
## Enabling the test capability with the new command

The test capability previously provided by Modern.js was a simple wrapper based on Jest, which led to issues such as unintuitive Jest configuration and more complex user configuration. In version [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0), the option to enable the test feature in application and module projects has been removed. It is recommended to directly use the testing solutions provided by the community.

Previously, Modern.js provided a comprehensive set of ESLint rules, including @modern-js (for Node.js project linting rules) and @modern-js-app (for frontend project linting rules). In version [v2.59.1](https://github.com/web-infra-dev/modern.js/releases/tag/v2.59.1), we officially removed these rule sets. We encourage developers to choose appropriate code standard tools based on their needs, either by directly using ESLint with community-recommended rules or by using Biome to enhance code formatting performance.
152 changes: 0 additions & 152 deletions packages/document/main-doc/docs/zh/guides/advanced-features/eslint.mdx

This file was deleted.

4 changes: 4 additions & 0 deletions packages/document/main-doc/docs/zh/guides/deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ Modern.js 之前提供的 Monorepo 方案是基于 [pnpm Workspace](https://pnpm
## new 命令开启 test 能力

Modern.js 之前提供的测试能力是基于 Jest 的简单封装。该封装导致 Jest 配置不直观、用户配置更加复杂等问题。在 [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0) 版本中,移除了在应用项目和模块项目中开启 test 功能的选项。推荐直接使用社区提供的测试方案。

## Eslint 规则集

Modern.js 之前提供了 ESLint 的完整规则集,涵盖了 @modern-js(针对 Node.js 项目的 Lint 规则)和 @modern-js-app(针对前端项目的 Lint 规则)。在 [v2.60.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.60.0) 版本中,我们正式移除了这些规则集。我们鼓励开发者根据自身需求选择合适的代码规范工具,直接使用 ESLint 并结合社区推荐的规则,或使用 Biome 以提升代码格式化的性能。
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@
{{/if}}
"lint-staged": "~13.1.0",
"simple-git-hooks": "^2.11.1",
"rimraf": "^6.0.1"
"rimraf": "^6.0.1"
}
}

0 comments on commit b9c7b7a

Please sign in to comment.