Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@modern-js-app/eslint-config

web-infra-dev2.8kMIT2.59.0

A Progressive React Framework for modern web development.

react, framework, modern, modern.js

readme

Modern.js Logo

Modern.js

Inspire creativity in modern web development.

npm version downloads License

English | 简体中文

Introduction

The Modern.js framework is a progressive web framework based on React. At ByteDance, we use Modern.js to build upper-level frameworks that have supported the development of thousands of web applications.

When developing React applications, developers usually need to design implementation plans for certain features or use other libraries and frameworks to solve these problems. Modern.js supports all configurations and tools needed by React applications, and has built-in additional features and optimizations. Developers can use React to build the UI of the application, and then gradually adopt the features of Modern.js to solve common application requirements, such as routing, data acquisition, and state management.

Getting Started

See Quick Start.

Ecosystem

The following solutions and libraries are available within the Modern.js ecosystem:

  • 🦀 Rspack: A fast Rust-based web bundler.
  • 🐬 Rsbuild: An Rspack-based build tool for the web, rebranded from Modern.js Builder.
  • 🐹 Rspress: A fast Rspack-based static site generator.
  • 🦄 Rslib: An Rspack-based library development tool.
  • 🐟 Garfish: A powerful micro front-end framework.
  • 🦆 Reduck: An redux-based state management library.
  • 🐴 SWC Plugins: Built-in SWC plugins for Modern.js.

Benchmark

We use Modern.js Benchmark to observe the trend of key metrics, such as bundle size, compile speed and install size.

Roadmap

Please refer to the Modern.js Roadmap. We will update the Roadmap content regularly. Please stay tuned.

Examples

Modern.js provides a collection of ready-to-use examples that you can find and use in the modern-js-examples repository.

Contributing

New contributors welcome!

Please read the Contributing Guide.

Code of Conduct

This repo has adopted the Bytedance Open Source Code of Conduct. Please check Code of Conduct for more details.

All Contributors

Thanks to the following friends for their contributions to Modern.js:

contributors

Community

Come and chat with us on Discord! The Modern.js team and users are active there, and we're always looking for contributions.

Credits

Some implementations of Modern.js are modified from existing projects, such as create-react-app, remix, jest and bundle-require. Thanks for them.

  • @modern-js/bundle-require: is modified from bundle-require.
  • @modern-js/plugin: the hooks API is referenced from farrow-pipeline.
  • @modern-js/plugin-testing: the jest runner is referenced from jest-cli.
  • @modern-js/plugin-data-loader: some code is referenced from remix.
  • @modern-js/babel-plugin-module-resolver: is modified from babel-plugin-module-resolver.

License

Modern.js is MIT licensed.

Third party licenses are listed in THIRD-PARTY-LICENSE.

changelog

@modern-js-app/eslint-config

2.59.0

Patch Changes

2.58.3

Patch Changes

2.58.2

Patch Changes

2.58.1

Patch Changes

2.58.0

Patch Changes

2.57.1

Patch Changes

2.57.0

Patch Changes

2.56.2

Patch Changes

2.56.1

Patch Changes

2.56.0

Patch Changes

2.55.0

2.54.6

2.54.5

2.54.4

2.54.3

2.54.2

2.54.1

2.54.0

2.53.0

2.52.0

2.51.0

2.50.0

2.49.4

2.49.3

2.49.2

2.49.1

2.49.0

2.48.6

2.48.5

2.48.4

2.48.3

2.48.2

2.48.1

2.48.0

2.47.1

2.47.0

Patch Changes

  • 9a7e17a: fix(deps): missing @rsbuild/core peer dependency

    fix(deps): 缺少 @rsbuild/core peer dependency

2.46.1

2.46.0

2.45.0

2.44.0

2.43.0

2.42.2

Patch Changes

  • 07c56c0: chore: bump rsbuild to 0.2.3

    chore: 升级 rsbuild 到 0.2.3

2.42.1

2.42.0

2.41.0

2.40.0

2.39.2

2.39.1

2.39.0

2.38.0

Patch Changes

  • 3304d33: chore(deps): bump @babel/core to v7.23.2

    chore(deps): 升级 @babel/core 至 v7.23.2

2.37.2

2.37.1

2.37.0

Patch Changes

  • 7dc1512: refactor: replace babel-preset-app with rsbuild babel-preset

    refactor: 将 babel-preset-app 替换为 rsbuild babel-preset

2.36.0

Patch Changes

2.35.1

Patch Changes

2.35.0

Patch Changes

2.34.0

Patch Changes

2.33.1

Patch Changes

2.33.0

Patch Changes

2.32.1

Patch Changes

2.32.0

Patch Changes

2.31.2

Patch Changes

2.31.1

Patch Changes

2.31.0

Patch Changes

2.30.0

Patch Changes

2.29.0

Patch Changes

2.28.0

Patch Changes

2.27.0

Patch Changes

2.26.0

Patch Changes

2.25.2

Patch Changes

2.25.1

Patch Changes

2.25.0

Patch Changes

2.24.0

Patch Changes

2.23.1

Patch Changes

2.23.0

Patch Changes

  • 7e6fb5f: chore: publishConfig add provenance config

    chore: publishConfig 增加 provenance 配置

  • Updated dependencies [7e6fb5f]

2.22.1

Patch Changes

2.22.0

Patch Changes

2.21.1

Patch Changes

2.21.0

Patch Changes

  • 26dcf3a: chore: bump typescript to v5 in devDependencies

    chore: 升级 devDependencies 中的 typescript 版本到 v5

  • ad78387: chore(deps): bump babel-related dependencies to latest version

    chore(deps): 升级 babel 相关依赖到最新版本

  • Updated dependencies [26dcf3a]

  • Updated dependencies [ad78387]

2.20.0

Patch Changes

2.19.1

Patch Changes

2.19.0

Patch Changes

2.18.1

Patch Changes

2.18.0

Patch Changes

2.17.1

Patch Changes

2.17.0

Patch Changes

2.16.0

Patch Changes

  • 4e876ab: chore: package.json include the monorepo-relative directory

    chore: 在 package.json 中声明 monorepo 的子路径

  • Updated dependencies [50bc0db]

  • Updated dependencies [4e876ab]

2.15.0

Patch Changes

2.14.0

Patch Changes

2.13.4

Patch Changes

2.13.3

Patch Changes

2.13.2

Patch Changes

2.13.1

Patch Changes

2.13.0

Patch Changes

2.12.0

Patch Changes

2.11.0

Patch Changes

2.10.0

Patch Changes

2.9.0

Patch Changes

2.8.0

Patch Changes

2.7.0

Patch Changes

2.6.0

Patch Changes

2.5.0

Patch Changes

2.4.0

Patch Changes

2.3.0

Patch Changes

2.2.0

Patch Changes

2.1.0

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

2.0.0

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a456659b: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • f680410886: feat: upgrade ESLint to 8.x version

    feat: 升级 ESLint 到 8.x 版本

  • Updated dependencies [dda38c9c3e]

2.0.0-beta.7

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a456659b: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • f680410886: feat: upgrade ESLint to 8.x version

    feat: 升级 ESLint 到 8.x 版本

  • Updated dependencies [dda38c9c3e]

2.0.0-beta.6

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a456659b: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • f680410886: feat: upgrade ESLint to 8.x version

    feat: 升级 ESLint 到 8.x 版本

  • Updated dependencies [a7c68832b3]

  • Updated dependencies [decfcd989d]
  • Updated dependencies [7b7d12cf8f]
  • Updated dependencies [dda38c9c3e]
  • Updated dependencies [fd1d9fd3d3]

2.0.0-beta.4

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a456659b: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • f680410886: feat: upgrade ESLint to 8.x version

    feat: 升级 ESLint 到 8.x 版本

  • Updated dependencies [a7c6883]

  • Updated dependencies [decfcd989d]
  • Updated dependencies [7b7d12c]
  • Updated dependencies [dda38c9c3e]
  • Updated dependencies [fd1d9fd]

2.0.0-beta.3

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a456659b: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • f680410: feat: upgrade ESLint to 8.x version

    feat: 升级 ESLint 到 8.x 版本

  • Updated dependencies [decfcd989d]

  • Updated dependencies [dda38c9c3e]
  • Updated dependencies [fd1d9fd]

2.0.0-beta.2

Major Changes

  • dda38c9c3e: chore: v2

Patch Changes

  • d4a4566: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • Updated dependencies [decfcd989d]

  • Updated dependencies [dda38c9c3e]

2.0.0-beta.1

Major Changes

  • dda38c9: chore: v2

Patch Changes

  • d4a4566: chore: rename plugin-jarvis to plugin-lint

    chore: 重命名 plugin-jarvis 为 plugin-lint

  • Updated dependencies [decfcd989d]

  • Updated dependencies [dda38c9]

2.0.0-beta.0

Major Changes

  • dda38c9: chore: v2

Patch Changes

1.21.2

Patch Changes

1.21.1

Patch Changes

1.21.0

Patch Changes

1.20.1

Patch Changes

1.20.0

Patch Changes

1.19.0

Patch Changes

1.18.1

Patch Changes

1.18.0

Patch Changes

1.17.0

Patch Changes

1.16.0

Patch Changes

1.15.0

Patch Changes

1.2.14

Patch Changes

  • 811d83f94: fix(eslint-config): inconsistent experience between format and auto fix
  • Updated dependencies [63c354ad5]
  • Updated dependencies [12fc5ac88]
  • Updated dependencies [97bb6adb9]

1.2.13

Patch Changes

1.2.10

Patch Changes

1.2.9

Patch Changes

1.2.8

Patch Changes

  • 6cffe99d: chore: remove react eslint rules for modern-js rule set. add .eslintrc for each package to speed up linting
  • Updated dependencies [6cffe99d]
  • Updated dependencies [04ae5262]
  • Updated dependencies [60f7d8bf]

1.2.7

Patch Changes

1.2.6

Patch Changes

  • 8e737893: feat: disable promise/prefer-await-to-then
  • 8e737893: feat: disable require-atomic-updates
  • a2761eb7: fix: exclude modern.config.ts from with type rules
  • 8e737893: feat: disable no-shadow
  • 8e737893: feat: disable @typescript-eslint/no-base-to-string
  • 8e737893: feat: disable filenames/match-exported
  • Updated dependencies [9d4a005b]

1.2.5

Patch Changes

  • 10f47286: fix: typescript eslint rule due to @typescript-eslint/eslint-plugin's breaking change
  • 0ef81796: feat: simplify react eslint rules

1.2.4

Patch Changes

  • 87e68464: refactor: eslint rule configs

1.2.3

Patch Changes

  • b44c02d4: fix: remove no-invalid-void-type rule

1.2.2

Patch Changes

  • c35f710a: fix: typescript version warning when running lint

1.2.1

Patch Changes

  • 294c4dbf: feat: upgrade prettier version

1.2.0

Minor Changes

  • cfe11628: Make Modern.js self bootstraping

Patch Changes

1.1.2

Patch Changes

  • a37192b1: feat: support css module declaration

1.1.1

Patch Changes

  • 235f9e8d: fix crlf problem in windows lint

1.1.0

Minor Changes

  • 96119db2: Relese v1.1.0

Patch Changes

1.0.1

Patch Changes

  • fix: eslint config

1.0.0

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • 0fd196e: feat: fix bugs
  • 204c626: feat: initial
  • 63be0a5: fix: #118 #104
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [0fd196e]
  • Updated dependencies [204c626]
  • Updated dependencies [63be0a5]

1.0.0-rc.23

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • 0fd196e: feat: fix bugs
  • 204c626: feat: initial
  • 63be0a5: fix: #118 #104
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [0fd196e]
  • Updated dependencies [204c626]
  • Updated dependencies [63be0a5]

1.0.0-rc.22

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • 0fd196e: feat: fix bugs
  • 204c626: feat: initial
  • 63be0a5: fix: #118 #104
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [0fd196e]
  • Updated dependencies [204c626]
  • Updated dependencies [63be0a5]

1.0.0-rc.21

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • 0fd196e: feat: fix bugs
  • 204c626: feat: initial
  • 63be0a5: fix: #118 #104
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [0fd196e]
  • Updated dependencies [204c626]
  • Updated dependencies [63be0a5]

1.0.0-rc.20

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • feat: fix bugs
  • 204c626: feat: initial
  • 63be0a5: fix: #118 #104
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [undefined]
  • Updated dependencies [204c626]
  • Updated dependencies [63be0a5]

1.0.0-rc.19

Patch Changes

1.0.0-rc.18

Patch Changes

1.0.0-rc.17

Patch Changes

1.0.0-rc.16

Patch Changes

1.0.0-rc.15

Patch Changes

  • 224f7fe: fix server route match
  • 30ac27c: feat: add generator package description
  • 204c626: feat: initial
  • Updated dependencies [224f7fe]
  • Updated dependencies [30ac27c]
  • Updated dependencies [204c626]

1.0.0-rc.14

Patch Changes

1.0.0-rc.13

Patch Changes

1.0.0-rc.12

Patch Changes

1.0.0-rc.11

Patch Changes

1.0.0-rc.10

Patch Changes

1.0.0-rc.9

Patch Changes

1.0.0-rc.8

Patch Changes

1.0.0-rc.7

Patch Changes

1.0.0-rc.6

Patch Changes

1.0.0-rc.5

Patch Changes

1.0.0-rc.4

Patch Changes

1.0.0-rc.3

Patch Changes