Skip to content

Commit 330f1a0

Browse files
authored
docs: add deprecate eslint rules package doc (#6209)
1 parent 4f19e98 commit 330f1a0

File tree

6 files changed

+14
-301
lines changed

6 files changed

+14
-301
lines changed

.changeset/tasty-queens-juggle.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@modern-js/main-doc': patch
3+
---
4+
5+
docs: add deprecate eslint rules package doc
6+
7+
docs: 添加下线 eslint 规则包文档

packages/document/main-doc/docs/en/guides/advanced-features/eslint.mdx

Lines changed: 0 additions & 148 deletions
This file was deleted.

packages/document/main-doc/docs/en/guides/deprecated.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ The Monorepo solution previously provided by Modern.js was implemented based on
1313
## Enabling the test capability with the new command
1414

1515
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.
16+
17+
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.60.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.60.0), 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.

packages/document/main-doc/docs/zh/guides/advanced-features/eslint.mdx

Lines changed: 0 additions & 152 deletions
This file was deleted.

packages/document/main-doc/docs/zh/guides/deprecated.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ Modern.js 之前提供的 Monorepo 方案是基于 [pnpm Workspace](https://pnpm
1313
## new 命令开启 test 能力
1414

1515
Modern.js 之前提供的测试能力是基于 Jest 的简单封装。该封装导致 Jest 配置不直观、用户配置更加复杂等问题。在 [v2.53.0](https://github.com/web-infra-dev/modern.js/releases/tag/v2.53.0) 版本中,移除了在应用项目和模块项目中开启 test 功能的选项。推荐直接使用社区提供的测试方案。
16+
17+
## Eslint 规则集
18+
19+
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 以提升代码格式化的性能。

packages/generator/generators/mwa-generator/templates/base-template/package.json.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
{{/if}}
4646
"lint-staged": "~13.1.0",
4747
"simple-git-hooks": "^2.11.1",
48-
"rimraf": "^6.0.1"
48+
"rimraf": "^6.0.1"
4949
}
5050
}

0 commit comments

Comments
 (0)