迁移到 v8.x

ESLint v8.0.0 是 ESLint 的主要版本。我们在此版本中进行了一些重大更改。本指南旨在引导您完成重大更改。

下面的列表大致按每个更改预计会影响的用户数量排序,其中第一个项目预计会影响最多的用户。

目录

对用户的重大更改

对插件开发人员的重大更改

对集成开发人员的重大更改


不再支持 Node.js 10、13 和 15

4ozD2oOv4owjYhXxMzDvI/yJ+CHWgubXa8H8oBN4HTk=

VuR6pcht7p4qBUAI6fg0XFDp498Y366tqWTVGqLdFJNOoYty/4IF9ba+kvYZHXwnvL7FkmzEbSOTUE/roy+L64hAo7WDfkXjRCblk/ywKtFFZ7OiKaEnGfGbsdDmKyWmD/HRneL2SdmDS1aZyzNEj0r6IjwOdq9FvMAtKb5LeypqtkeyvkU1V9lEIuJlMr2NoHAh3ixixVi/adDAO/uMp05wVY9MwGJIAdm7t0IS2HG72QpMTLMoqbIniSbVDkvz9pK6QVnbg3g81dNC3baZzDXdDHBb8LdhCadeQGdS9Oo=

    dvdOy5m+heqWOScXEMeiR/G5QB0xVglCzGlLiU+EaMs9nGxag4z8z3H0tcidM2VKeebxQJa2t4zXLiGbFpUO7McSq7xxZQoWi5kaAxZZm2GouKGhv6UX8eYeuCC0pl6fWiTp/x2W5NBjSGHf4OXc1uWl1vmErEAA4IuLnww7UAA=

JEektPTABfJxC/u5KdgJ7bO06aXtRFCbtvLNS+eotOtLLf/mO5CA1iesGLQogW7utZyqC4+pqnvzOCt/lGdW8K6DpqZInRCJ4hvBXXSJDONdk9nst/ZB+7K8P2QpacPHI+OfnyOHzQFL5KQ2QFMyhT/Icxau6kAqm2gp27mqWk3yzjDQV0K3HrJhI3pWKUusN0JVAXXQAwRWzjLp3/rYFK4K0gfP3KM9qzuwvZZ1nepG0FLbcM/cEnsi5Tnpw/Xt2TcSwIOu6mCf8/o0JYIu1xNTFV5PDnO6LCU6hx1Vtr+MJKzJihKLb3V0JDRUNROP/n5J/d9W4foA9LLrI3vyREOaYkNFIvWOzEU911nSJzX0txrhxqt5iGcRFy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xYQaSitNATmwfUn1xWUA+UN1o5Hce6J96s6KL8vbXH5Oby8qktGzU++IBWHT4MZKttnp8PprcI=

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b60slJZKdSyCpmzxLPYlea/2l4dU5B0FEUCxzuw0B3pWEjZuvz0W+i4XmtRdGJBmc+NV66kEA32eJzr8/EAcoPBwcoW6earQRXVaxtnBOhyz92/reSK5uPEaoo8V5f+rka1VtnZ/CFwY5PaHyRSC8JAU9/q4+Orzxp3JcvmoPXjW0g==

comma-dangle 规则架构更严格

ll/LkLA0ScULh0+EEk8yi0VVTvDhdUFm/Zg5XpkSwr0=

88zPIUlLcqEGG5aqASqgdiZXukonnKr50JhMDfe00EQvfWQrPQH53NCESTGsJsUegG7H4jbHTudUiRLH/MEhUFmCelxdKoAnEfX2xcFsxoEvVZD4laDbfC+dBR7+W+rq

{
    "rules": {
        "comma-dangle": ["error", "never", { "arrays": "always" }]
    }
}

WpTSUvZZTNOMKXWf/U1Dkl0wHV/uSry232ZQ/Hahw6wQwSbyNQIxC/+pjQJ2TneqNBHie2iioWfF7U63Dy21S+qxyJSZfb0gaCxYuzVDpvQyfkqz7CSo+UKOLYAYahppH44zudXpc/g8qE6PV140CHj6jrkd2Oeg5YuP1P1aeXsYAgGUFA02oHmZxNn/PQlPoUW/C+3c+7hKiU/0PIn7W5NtSlGFGwAJHPVZFv6BL54=

JEektPTABfJxC/u5KdgJ7eYDQ25d2G0p25k39/WzG77ZKIr321z47wPaWMu+gFUn34irDJ5f3k2FEGyxIuzQjX6y3HPdqjFZkWPeOu3so7cPCJLKQ7HDJqNx8hEK4sFsW6Bi64QyfVS2ZxhnupTmMzPDIgx9PGGjjyv1OBODuU0Hlf8ONJKmXActjYbzcH4Q

{
    "comma-dangle": ["error", "never"],
}

q0t1I/c8hmCXF+lL1j5BfQ==

{
    "comma-dangle": ["error", {
        "arrays": "never",
        "objects": "never",
        "imports": "never",
        "exports": "never",
        "functions": "never"
    }]
}

7Z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已更新

244QKqgFIOdzokfrhyggU3CkrVY70rahHJ0dEnns457XQEM/ZmUiOEZO8RqzOUtD

g9O4yoDcG6UH0S8hEAguM1c3xbnLGyocgOsBjFYD4sGCurIVUBamYulPH1oPmRDYNC9UiCMUK2fymJshx5lEUzzm5tNacqn7LqWt/+8pYG0=

    6+DelsSFDDWpx2EfipofmQI9abAvNegFJBnh+UleOwIEuTO8SOMTwTIW8mQfZp/KDD+AuoRgamEhyelzIAsxZEUEweMYVQc+ByrD4210cJ9i5w9/PgMwiClBMckwlT5cWjpb9g6kAV/VY5gNOzz+PiGjNaHEU4qL9e1sOhAnssRKluyinoBw5ubp0pToDAdQEy4YIZHqOwOyFhacKxQCTLQYkmL86+nqKV5lPQRxIJll3C3ob2aCgQG6UyjrTD9+OZ3m9z7uydsBtMcBjYf1ckLfPdsTLdf/cxixNmMD+bzc8UPOKd20eZCbyZZMzxZ50fcKxARr/6bXlDCIxppg6vuuKXwupvivpGWwi4sl1QR8FL+yFhXEik9cfK9XLrohBtFq0T/rTBXOzGBeINJsg2GZS5y1PReLtM71yFQ+4xHcxzsY20l0A30WahOg3xamfrd4vq/zvtp66yT09LIkEl/CRlJHfanZyarURlW9B1mgcL/B4InuD50duqKNBAOlt6rFWir8cSVCeH5k5uBRQw==

JEektPTABfJxC/u5KdgJ7ZESH913M8wn32JbmrJBz9H0MlQ25KtraoGn3U8TqNjOZ19PvcGKyXDViKFdmreJ4w==

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b61khx+L9tI5DHEPa+4TtpAQOWIMBG+X5iKlMvWkbMrH9BBnWiLXZ7xkfdviTxxeAstWUqBlazSEWiLAaR4/ZcGM

规则要求 meta.hasSuggestions 提供建议

hlhKfPP1jLDNYDlX19hl0yecl24L1brmtqQEUxxIB34=

88zPIUlLcqEGG5aqASqgdlh43lbWLIVAQPdIjE1IpPkH7cErrFHnctigLudwxrYcUS6m8K7Nr0oB5cZB8pj9lngGERsu1+v157a6qwp3FnNxuvwDHRNrWzxedVXdTn/PMwOr18R4izh5p5Dl7rsutPLyev2jueRQFa1db1BQhcUyeGS4AIyzGQp+6epTy23ih8AEeS7ubwxEEqxH0tFuxup2VIOsgv8heA16nQm1K0HY7G9Vjtr9NOiDraqZEYp+1NYiSpBICpoiM6+2va19V3Qe3AWLx4F9qQJKyyi77lQnWXirvFojfpSE2YG7VoVzfckr+XVl1CMA9pAT+IkrSSfiR23t4VFIONiEJIDP6r+xvvAylEDh1FK7thnXUviXx+JA0iDycHtJL4EA1lVDj1s2TiWkXq/ZlUqZq3N5hDkzrS5zQVitA9waKQQQtcohioC3DKmALzAlEltFNiboqSEK/O0Z1jIthTK2GVRtPdE=

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf+9r0ooOFrnAFrwUxfdY64Li3AeXtcmLSuHRbDqR5hHS1sFSXYDEAMhzbqKULM0XSqFIYG+HVXEKYiLo8S0/L7alVeOEo3e8R8sM26FJsOtt3KjpwUr+sD+T6CaaHb5mODCoFQH7zFWjyVya15xIb1J

module.exports = {
    meta: {
        hasSuggestions: true
    },
    create(context) {
        // your rule
    }
};

Vn5mLcr5fkrjPTmG+enV1nbmTh37VvM5boeFhPt/w+x/shJqHBkyNSy4mv+uEc2LsN0MiqfNN1Nn3HEdqF3sstC4etz6TnRVqXG2dkIWLBiRmNv9bXCTCDjDo1gILkaUESQnFvn0IJStGuuCSn42uCegSbB8PN7iapyqn/5UtKx8Ki0EuELbMpxJy04qeBJYXMif2qdh4hnMoSWotThn0ji7zw3xFSgA1IC5COEi4lJfPoG0fcpvFuRtvKOWwb2p

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b623u84ZjBOMgbXKHEqn1qLhyvAnDXHjrZo/tMYxWC4uikNmWnS3wNxdQRIPsBpp0+adhV+8EbIiuFVXvzWBL846

规则要求 meta.fixable 提供修复

N8UmXeyVbGQnj4HFwtb7TuBw1c2dOqvpigCgHBh28g0=

88zPIUlLcqEGG5aqASqgdpa7ucRw7oTENdfx0jJh/oSXqIs9sxDjSb+2FTbD3db3i8q9qRyUTZS6hMNERuhrle3gAwwF119F7pFmQbLtWB/I+WA20lW/Rc+Zj2uYtS7EUwZIAPGAAAl+BVtGPff4sV2RahGqZ3dt6RPabiGFwbEcCqrjc3m5wjKRJO2nhGi9snxPgWTNWPNeHYIsc24SQIJdBJ6iK82KpS8LnuvJXm2XtvvRWUii4A92KdALb4fU1nQcGn39XLD2cDbHNzdGHif6+6G5LK3Ah58mSTZ7a9lNEnfYy6zbhHu/PmDpA6RMAEC8j3PA3gL0nB/YXToy+FMCQwWwbKo4DiKdq/hMaaRvNroC2bkBziRi5kAqB9IX

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf9vKhcmKzNsWjlSvhpN+XxDvK/L2a2d0t8zPw8Y+Nw3s6jSXX47Oyp6eWOl+KIRVeqcpQoERxLG7bcxRNW2y90S

module.exports = function(context) {
    // your rule
};

5eQpgTze4KRO+MrOqOtHDnCw5mrphwV//FiV0v/GYdzbR9c4IRm8YuNDbTEwBHNP

module.exports = {
    meta: {
        fixable: "code" // or "whitespace"
    },
    create(context) {
        // your rule
    }
};

PO+9+6Th0/pSlZC4XgKRfxnmHVfBUDYb2wxgwXnVPtLJKBcQfc1AZ7MPtSnUvTZL3764o2AQgJCLfDn7209W/Rw9taHEru55N/tuMqttGPIl8xNiRGq8+9fGCcxvT5Ww1NfRnjHLjPwcV65C7cdMcvotbrhcAxg9UNSL437XCW/ojsbX0BLiFUacZi172jiK3RaMPQDehp3BY5HTM53tqi5/WZ1L8OzkDUbNvNKIBko=

mu58ukoHvdYi7E5ootDBUyRSBLgpCrtklSo0piLQVL/I0vsME/jSVefmxXbChIViNAC2+vVRXK/LTN0t1OTpkhlOVnpTit0VF99rkxu4DdxZUxLhBB0/O941o7+V2kuQyH2pLj++dnJfvZwVyzQeqLLVL/UxxvFJT8QzLF4DrDhCy0YDqUVbjhCCdQua/6/MYKP0AmJOMoccMK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IhrNY919I7M=

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf9NNUL8CBLDVXBQZ7wDLAYHDXdIwZvL8Ih0wQYyQvS0U/1FbDp68smKZpcHYYlSh9a2Tw3kCf3mszUS7hgEl3zkQhvNuI1uGoFuvqiw3fT/eM+E/7RAB9Q+9hbID2Audfe7cWgm5MPMdryAUd0D94gtKLqivRAbLLBr/eF7cPzzAWPzHEidjSMI5Yi7DqmidG72vAKOFFIv2yQoZHb0l270dnzXhhD5DAgtujDH/4vchURdyIa2/wJwmNhXSo/laF1TtXuoOJSUhCLqyJLOVmlNpav0ibEyHnEXpAgnOKBL6ragfQo0DU6wWkPkaqAfUKJ/K7nv2kgyy2rp0UDQcwu5pzCOFLesMfQtXBdj1K080g==

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b63BCLWBxMOVHDAk3FTsuuu+NfD4XLweZZlTUKiIJvzRx8N2vudilC48M0YwFt+BEeT57iga7Tvu3M89uasusP1m

对速记属性 AST 格式的更改

LXY0zwmQoK46OQ+cfM5fSkCRp8pPROD4PqOybqkCseU=

74a3mGRIgykLdabHf03pR4j9e303s1yrttt/PX6e639fXiuBseeiAhDrELL39ZmG4HKrnsFPQLhd04YvVlHZmhNYJUWyoXp3APSwFagDs40HazcndssTlrSFOOcRj8XSK++S1Q8zi7WDO2AP75F70To9eHqu8/aGo9ny/t5RKjJkxPMcXcgM3g9uiHvec4eakzSZhKbrArB5P7OZpaSqu+SWs09SFZGQdEbMr46qyrwccjjFttQlQTUe44ZGhIoPT7A98bMnwmvDIlv4eNEMNg==

const version = 8;
const x = {
    version
};

jFBzMJv2a3kgcgxjSLdWwOM2mHn2fcze6QPMo/vqP+YYdlmk9s3eJZgSWWZs6ItSxSt42FqIEO8AiaayukYfVw==

{
    "type": "Property",
    "method": false,
    "shorthand": true,
    "computed": false,
    "key": {
        "type": "Identifier",
        "name": "version"
    },
    "kind": "init",
    "value": {
        "type": "Identifier",
        "name": "version"
    }
}

Rl+StiWLG+bpey2NjVzD+aOoJ+V+voX26icx8wGXthzgJM8/T+e0VEIbtQfzDG00MkN7SWCSwEMH4BkZYhcJH2PPy0M4vou6e8dHIcdMm5yzH0WCzTfzLODuW+0woCooLPXsUamzmiK1duRpip5hNmRBBuxiqli8PVwnro6PS3qk/lO98YVkYPdDAjPaXUqzACT++BYyVI915xfdfgZaEo+MtzIfcPY7MGZrZnPZqbE++eMNFXzioGMrFZRsZdMT12p4Ez309LizErH/weuMVi8ZdWzfOw/eX5KFSdeAb15c9FxTLMuGrKOoXM/isPFAOz52WcZ91QIjLQV/9BRCf0SDEMvPxHs6wMqY31Sh+el8hLVC8tILOAKONYY+vfQC

// true in ESLint v7.x, false in ESLint v8.0.0
if (propertyNode.key === propertyNode.value) {
    // do something
}

chKg1P6RhBJLNbYuWnNhginzJwFBQBYjfSm+RXHO/5m1M+VMrox4IgcTxRaLIwLn1A4WEng/RkkXNkn0ad5fOuM01zbYq7LbH1tFYCLBRYFTNf4UfGLklB80dkOrr3cT1Ahw3vTSZ0U7ZH63Yx4C5w==

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf8Km6D3Zet7K76Dq7VbWoRqFEMt2yAIN7D4XAzaLW3GMFXTGYmM3mUOiURhG9r5AO14AW4o6E0rJdHdV8GP0yqCQaF/6CfA091oUxB/9YvghqfrK5OaSbIgPWndXcrOCIXT7UHIWFaUHoFRt0pnm4CJGmhHf2gkbb5yjbUkKbEl1l1N9ZXXJarFJ4j82j+gIZV5EYa6SON1AIqHfVJucBjNT+Q7H/X763oWlCZqsAXbtw==

  1. 使用 propertyNode.shorthand 确定属性是否是速记属性节点。
  2. 使用每个节点的 range 属性来判断 key 和 value 是否占据相同的位置。

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b62nDy7ovQo7vj4e6bB+ZUcRBjvO1Tlkp1iOIbUY6Hrn5fcY9FYmDkxXyZO4FnRzp2968/STgbRAtxMkM/W3ditm

CLIEngine 类已被删除

yEr0rj+jGtWt8Ak1FFhDN+sq4iz9y+UyVrmPw74+Iqg=

ACHEtO62Xfv0LfG5wJBgPijYX600SmS4DV7U+3s5Fslvx6s271gf8piJGqrnlzd+HQgKmfiqccc45epvYS8sPJjITwgPsykfo17oI+Z9xJSw80op8kyJLQLYmAOiNquSZjCqkoJT9w5OQOXqBfPvaxt7ofxIj8pqGiAQLaY2lCU=

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf8aVaL2iTaW/ViKUzaJOeFuVeRg+2Fw/hFAHDrHNvpge9doctEc7KAvZfsM81t8ic25EjXIfeID7dJBc99HunwrgtXkxXipiH00DZXFD8snCvKartd3/v7hn2AL6RKoKBoyLjigviQUcpRK+VhXF55VQ5GuD29Es19vD0zxGtuw7NP53mkrPZx+t5pjO4Hxgzgeld6dPTxeMBJKh5H/e6E/gZYjBNrwU/llVa2fqEGNc4JHFLsOUxLDLnEnbPaDFObARv931H/hPK1OOHm0UPi2hcfFGjeoJB1z6X02A9PdRA==

CLIEngineESLint
executeOnFiles(patterns)lintFiles(patterns)
executeOnText(text, filePath, warnIgnored)lintText(text, options)
getFormatter(name)loadFormatter(name)
getConfigForFile(filePath)calculateConfigForFile(filePath)
isPathIgnored(filePath)isPathIgnored(filePath)
static outputFixes(results)static outputFixes(results)
static getErrorResults(results)static getErrorResults(results)
static getFormatter(name)(删除 ※1)
addPlugin(pluginId, definition)plugins 构造函数选项
getRules()(删除 ※2)
resolveFileGlobPatterns()(删除 ※3)
    0dzZ3DxSLi8XZBwwsBFbyRDivUHrjY+KI+tuxQO2eZ0+5qNalmYzXr+C15tK0kHLz5gTsGzaxYjhfE+9QXJB+OOC8IgHc2EKzKMT9GPZAK0b3yIcid2SDWqpRWfleUu2jF81OcHBdD60gSBtHlK9zbzTsegnwoHTAisGlaGGTqlLy1cXYN+8yCIFeY6sgri/Wgti92nKP7JCnwmcuzT7QIs2fdBj+wYlapNsL15ho0dL2FzuSZ2BX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Roc2Kwk1DHYlq1MbXaEJVDdknL7F/zJ4IW7/9oPipvrNBIZ4rvQalm1EGJldSecRjviMp+45mQOrTJvKUdiEUfNg3O3lYJKaRWUNTb3ZeOIBcXC9WvotcUKOVUNNrARYsVSxHR2z3lVBjotRDpYIAhf+y/dd2bLzI+CGNSegCGgrNL3SSpNu5eXgRkKc/SJuiR1y02fOAD9WjvVtf1NAWFiIrGPFxp/kqnxSH+xr7m0WLyeu2LEmOtPAYIY5ikTbs+mY7/fixYkpsqV6tjX4cEbnS9YE5aU0AFvSlesU0qOrA976Im+W9s=

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b6229p2cCla3yOHxyfz30gCkNB8Ol4P8L4vkrofMq024rz9roVlFGh+ZmOS2JMkRMIVXjyjClgQSp55JLSV2L3pCu3S6Huv1OX2MDqtP++whsVwZRjjqLo/bCFe53ERSi820FuP2wLVcsZQeXoIzvWKN1GLjICA22Aev+7ZZ3pPKv5TzmDOMSf1roMu9rc/dmKrUn39mofwSAudGN7iJcgYcBCwlOl5y2ha8K9GTnyzNig==

linter 对象已被移除

yEr0rj+jGtWt8Ak1FFhDN5zkjusxcX1YJwpEIq5xl2w=

Zyna/RRpAJPWEsAQmP8toG+kpDsgLccK4GYeDjyJm8z0arW6AdYOc37yumfxve1J5qtYZ7jQJKf2g7SNfXC/4kmo6W3AdY7Ib7lEvw9k6UzTF6oj/BtXFzbeJNQg2taE

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf8ELQhB38oAQovOB0rOlV2VMc0LYgY8Vl0jtta/83v8E5HdmLozmk3emET1+lAwDu8mv95Ta7qs8WvmSuzLf6+T

const { linter } = require("eslint");

NQxcg483YpnQ8Dx/UMqC6AwFVONEuXei2BL8RNSG2wE=

const { Linter } = require("eslint");
const linter = new Linter();

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b6229p2cCla3yOHxyfz30gCkNB8Ol4P8L4vkrofMq024rz9roVlFGh+ZmOS2JMkRMIVXjyjClgQSp55JLSV2L3pCu3S6Huv1OX2MDqtP++whsVwZRjjqLo/bCFe53ERSi820FuP2wLVcsZQeXoIzvWKN1GLjICA22Aev+7ZZ3pPKv5TzmDOMSf1roMu9rc/dmKrUn39mofwSAudGN7iJcgYcBCwlOl5y2ha8K9GTnyzNig==

/lib 入口点已被删除

yEr0rj+jGtWt8Ak1FFhDN0hh3JpkO1oZtW5pGOToVqw=

v16c4o9qmuSeklThpJupglh1QFyi+CJkm1kTPb56FsQo+o8di4LRBTTF7ekEZ6BVl4SzspOLxjcA0V0vrYo5gw4rd9QfA5KUVMR7XLVRod/3N7LZo5ivxEzKht8loZmQuYTWqahdtZY47rLjC+UzPsXkt6qPkHkGpfacXGVeQsAoDMBeQUKAinH650fw9cUzoLHCEC1iy70UMUdNVE1VhJdh1cj+vYXGfdFTpQiac9q72dmIPxu0lAOGdDd9evkWrktksCKTPmKhS3G8zbewC1uHrRq1lAwellRvtqNaiBg119871Mtird4jPOEaJmGmXu9PuM9fjuzbewe0MH4BM2FuBl+q1tnsaIbi46uc39zD9isP2sgtxKl6+RqeIKuLFMOaRUkd0zv0zDIoDkwSReHQKpjoWTqy2702OTXDa02vlDqyDAKhrXqH1T3eCBPhSa5iGD+l+ivWe5pwLCZdX+E3ydd7LaohNmS7LG1GfTRhattufhHaACmTaZqywR+W

JEektPTABfJxC/u5KdgJ7bNaRSrIjgiT5+z3LKYFZf+KV5+c0tz9lj5WbfIcwRirKtBKqZSL6/FzOBPCR7iFvLuzk7jSzwDNHC6WqnpYTsL3YVgjY7s2jSY+4JZ99xxnWECRvwh4o4pnrEPxj2AdFQ==

const rule = require("eslint/lib/rules/semi");

NQxcg483YpnQ8Dx/UMqC6AwFVONEuXei2BL8RNSG2wE=

const { builtinRules } = require("eslint/use-at-your-own-risk");
const rule = builtinRules.get("semi");

jfGTyW+E3H3KuHzQi+OT0z1I8VVqH4ZR+yvEaJXtPOiTM7SaU+nDEODXIF2zK9PgpXDkQN9MW3033Fjtl4fLo9EYNowqt4kVSJT4P0IybQbNq/NkrP1qJRxpVVqvAELz

const { FileEnumerator } = require("eslint/lib/cli-engine/file-enumerator");

NQxcg483YpnQ8Dx/UMqC6AwFVONEuXei2BL8RNSG2wE=

const { FileEnumerator } = require("eslint/use-at-your-own-risk");

7ZUSqXHWNU7peV6DiftQEwMfcjCsiHh6ihuHgTU/b6229p2cCla3yOHxyfz30gCkNB8Ol4P8L4vkrofMq024rz9roVlFGh+ZmOS2JMkRMIVXjyjClgQSp55JLSV2L3pCu3S6Huv1OX2MDqtP++whsVwZRjjqLo/bCFe53ERSi820FuP2wLVcsZQeXoIzvWKN1GLjICA22Aev+7ZZ3pPKv5TzmDOMSf1roMu9rc/dmKrUn39mofwSAudGN7iJcgYcBCwlOl5y2ha8K9GTnyzNig==