ESLint v8.3.0发布

77 阅读2分钟

亮点

该版本支持规则中的ES2022类静态块、默认解析器和范围分析:

class C {
    static x = ...;
    static y;
    static z;
    static {
        try {
            const obj = doSomethingWith(this.x);
            this.y = obj.y;
            this.z = obj.z;
        }
        catch {
            this.y = ...;
            this.z = ...;
        }
    }
}

它还支持#x in obj ,官方称为私有字段的人体工程学品牌检查。

功能介绍


任务

  • edd8d24chore:为类静态块升级eslint-visitor-keys