Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A better eslint rules config #16118

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from
Open

A better eslint rules config #16118

wants to merge 43 commits into from

Commits on Aug 28, 2023

  1. Update .eslintrc.yaml

    A better eslint rules config    (maybe).
    finscn authored Aug 28, 2023
    Configuration menu
    Copy the full SHA
    8e9b627 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2023

  1. Update .eslintrc.yaml

    优化规则
    finscn authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    8f00748 View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    优化规则
    finscn authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    19062a9 View commit details
    Browse the repository at this point in the history
  3. Update .eslintrc.yaml

    优化规则
    finscn authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    bb4f9a7 View commit details
    Browse the repository at this point in the history
  4. Update .eslintrc.yaml

    finscn authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    f3ace46 View commit details
    Browse the repository at this point in the history
  5. Update .eslintrc.yaml

    finscn authored Aug 30, 2023
    Configuration menu
    Copy the full SHA
    82990e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    733ffbe View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    98ccad5 View commit details
    Browse the repository at this point in the history
  3. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    8588453 View commit details
    Browse the repository at this point in the history
  4. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    8c9d6c2 View commit details
    Browse the repository at this point in the history
  5. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    4de06af View commit details
    Browse the repository at this point in the history
  6. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    95d1189 View commit details
    Browse the repository at this point in the history
  7. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    98f8db7 View commit details
    Browse the repository at this point in the history
  8. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    ef7eec4 View commit details
    Browse the repository at this point in the history
  9. Update .eslintrc.yaml

    finscn authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    10a90ba View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. Update .eslintrc.yaml

    finscn authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    f1505bf View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    finscn authored Sep 12, 2023
    Configuration menu
    Copy the full SHA
    c0b808d View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Update .eslintrc.yaml

    finscn authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    9d8771d View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    finscn authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    61499c6 View commit details
    Browse the repository at this point in the history
  3. Update .eslintrc.yaml

    finscn authored Sep 25, 2023
    Configuration menu
    Copy the full SHA
    dbf5ccd View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2023

  1. Update .eslintrc.yaml

    finscn authored Oct 8, 2023
    Configuration menu
    Copy the full SHA
    eecf7d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2023

  1. use @typescript-eslint/indent

    finscn authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    e5931f8 View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    'indent' 和 '@typescript-eslint/indent' 要分别定义 ,不能互相代替.
    finscn authored Oct 27, 2023
    Configuration menu
    Copy the full SHA
    c5aafa7 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2023

  1. 停用 prefer-template

    字符串模板性能低, 总是强制使用未必合适.
    finscn authored Oct 29, 2023
    Configuration menu
    Copy the full SHA
    e38fab6 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. 更新 ignoredNodes

    经测试 indent.ignoredNodes 在 eslint标准规则里不能省略.
    finscn authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    236490a View commit details
    Browse the repository at this point in the history
  2. 新增 member-delimiter-style

    确保 interface 中 声明成员变量后以分号结尾.
    finscn authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    2755afb View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Update .eslintrc.yaml

    用  ts plugin来处理 semi,  解决 eslint里 semi 的冲突问题.
    finscn authored Nov 13, 2023
    Configuration menu
    Copy the full SHA
    2149fd4 View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    纠正上一个 commit 里的错误.
    finscn authored Nov 13, 2023
    Configuration menu
    Copy the full SHA
    8f679b8 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. 使用 @Stylistic

    finscn authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    e198953 View commit details
    Browse the repository at this point in the history
  2. 关闭 no-prototype-builtins

    在 90+%的 场景下, 打开此开关 只会带来更繁杂的代码和操作.
    且 此开关并不能解决很多根本问题.
    比如   obj+....   , String(obj)  Number(obj) .... 所以 对于 原始object, 需要开发者自己去做处理即可.
    finscn authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    7a08d6f View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. Configuration menu
    Copy the full SHA
    fc77ff6 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

  1. 完善规则

    finscn authored Nov 27, 2023
    Configuration menu
    Copy the full SHA
    2c1a46f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    689a260 View commit details
    Browse the repository at this point in the history
  3. Update .eslintrc.yaml

    finscn authored Nov 27, 2023
    Configuration menu
    Copy the full SHA
    c514ea6 View commit details
    Browse the repository at this point in the history
  4. Update .eslintrc.yaml

    finscn authored Nov 27, 2023
    Configuration menu
    Copy the full SHA
    d4caf75 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. Update .eslintrc.yaml

    finscn authored Nov 28, 2023
    Configuration menu
    Copy the full SHA
    2caf27c View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    finscn authored Nov 28, 2023
    Configuration menu
    Copy the full SHA
    858fd37 View commit details
    Browse the repository at this point in the history
  3. Update .eslintrc.yaml

    finscn authored Nov 28, 2023
    Configuration menu
    Copy the full SHA
    2365ce0 View commit details
    Browse the repository at this point in the history
  4. 新增 comma-spacing 规则

    finscn authored Nov 28, 2023
    Configuration menu
    Copy the full SHA
    f5f9fe5 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2023

  1. Configuration menu
    Copy the full SHA
    50fcc3e View commit details
    Browse the repository at this point in the history
  2. Update .eslintrc.yaml

    finscn authored Dec 1, 2023
    Configuration menu
    Copy the full SHA
    366e8ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddaaa5e View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. 关闭 no-inner-declarations 规则

    在内部声明函数 是一种常规操作. 没必要禁止.
    finscn authored Dec 20, 2023
    Configuration menu
    Copy the full SHA
    31ce9b2 View commit details
    Browse the repository at this point in the history