配置文件(新)

警告

这是一个实验性的功能。要选择加入,请将 eslint.config.js 文件放在项目的根目录中或将 ESLINT_USE_FLAT_CONFIG 环境变量设置为 true。要选择退出,即使存在 eslint.config.js 文件,也要将环境变量设置为 false。如果您使用API​​,您可以通过使用FlatESLint类、FlatRuleTester类或在Linter类中设置configType: "flat"来使用本页描述的配置系统。

您可以将 ESLint 项目配置放在配置文件中。您可以包含内置规则、您希望它们如何执行、具有自定义规则的插件、可共享配置、您希望规则应用到哪些文件等等。

配置文件

ESLint 配置文件名为 eslint.config.js。它应该放在你的项目的根目录下,导出一个配置对象的数组。这是一个例子:

export default [
    {
        rules: {
            semi: "error",
            "prefer-const": "error"
        }
    }
]

在此示例中,配置数组仅包含一个配置对象。配置对象启用两个规则:semiprefer-const。这些规则适用于 ESLint 使用此配置文件处理的所有文件。

配置对象

Hvs1gw/xLARKB0t+o6AwhvS53s+7NmT2L6gkclIS0I7EeWfXUlW5Lo5+nfnEIgX2p/Nkwb4ynXGP3uf0M5+24EK8/DwHHuHQ5XyjDqnaMXNWbbcvS/Y5r9h4hOYCm2HGJeJR1WGACT0koo272IWVmB3xxQSMPowPZVnyBrD97o257YGvVbxlQGd2FufVbFI5

    jlU91orB/8zU8XSNm93Ax3dxbCjB8umbNW4AWqdVKht/TKd4/M4WsrHCFBOq8JGp7yUrRTlsFWWKLCKeMT/XZTdrrLOa2Z4AeqyDCybPdGi+drNvn8nkKGMPoAqcSDAxob62iKq/LaIdpzohHbSU+RpYRhBhUz8pE/gAOQK6Z5jo6+KBCOJ8AqkCvL1LzOBxt/WeWJm1OKjsSZV7WmJFuBG8ixKQ0DIndLXiaeV892KYtIu+oD+b0YNTrwHBF+6HHy8Vp9tvMTigBnPG8GqkNEuBO/YTu+MGNZbdtNKvr7CqHiUPgfrGf0yPXoHQ+Q4WYaOlLtc7TaymTLVllAB2LtrUSPrj9+5y1V+Y2fZPzQ56Oufxrw3z4fp51cqNLJNHLhL7GTInHMeCWqQPIsPsKt5FtRp/Hq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DpS6rwZTu1o8ag/a66mG3DBdfm4t03UNr2fHnkIdLIkqLk0VNtl3k9VrXsIanFpKFHWkrv0yb71zFdUxUHU7sjZ4ifoNYpzdV4L/ejbWLOom+og6Vjk2tPAVaDB1STC03A3wmTw64wA+b/QkqVI0qpdC5hjxoalnJxjYWs+/pah6J1HxK9iX7XQyf+DELsQ5MF1lI7VmbPrjF9MLN8=

HBYPcWIRDYgKHselzRl/zMHZahqya/287xYSMtSYCMDkPzoQFRpkWKEZbz+AdxzVSVcUehbDfcEaN/oTL5wmsUAYjAycAr7jy+j8eXl4Uv3kMhhjpaSkYekcLbfsA3CgnDuSOSuPnZqVYp+At0J8VkqVVbORa9RrP6CebzeAuvbTrXZzIFgtJLXrpRWoTU8jtaRYZIBaTTCUeOIj13GW36OAg1+jZWOCYf6kR3BdtT3nIkNo66zwYReXdQjdeclBTCvlxjxzPhcLlUeyjIYX7Nx6DZDAHuSrn/j+ROs1IdW9ei8opt4iJs4eyWFvBpSgETK3diEKahIJ/2QJ1Y/o24SAyopyle2NcqDhg7vtcxJ1DZSr+7TWwPtgqwnoOMDPsUg7kBxSDdGUo1Dd8hbO2XAUDeWxTALfLbUXNPJansOZO4f+pTCDtBJNdJFWatb5bTW3h0pbjldauDICiuv/toCqsQUHh73XnBEv63G+GI1jFbZQjJ20uctxSBtQQYSsx18XKg91cyBd4WLkBCsCI+SOKVGWtR+eE4SqKUXj23UnqiLJ+ppvl4pETGuwIaB3ixPqNJyzrpGVM7Q1WSQ9AZhezOG+UsauBcV5X1TA+V6RSc6MerAaOkvhmsUaBKFr

export default [
    {
        rules: {
            semi: "error"
        }
    }
];

a4405t3F2QzC4EeLChgBpoZGE2xiacx0jL6fZE95AHsK76bPHiwLm5iIpPYjUKFlGBFXX8tLoZ5LMX10lZvxyjvJVenltog6IGgkxlfUzdBkH6fe7WmnRo7zQOWWfLtgkhCsgVoxHXgpnDfAr7OrGXum74M59PW2StwyvUhgZigjq9ugvcRp5A6Jx8TcyBcWVVDKEZEYkWKZoq7IUmiqtjZ1NulmDb0yGD/7D4RcHXn4qPKhtb5T3ZG3Cxnt6vbfT49wg0TaBCs7+rnPWlBD1hlEcCk5XoRXPaEz3VgzsaIxWxDyt9x3PDkml93EX2LFVp0tuH+8Rul4NqTT0qQdwO+3vgA58vhwMkjbaPHJGuz1eIAf7qNQTSsnwnBXgMGP01rXDhaipdaw0xpmo77FiTy4FAt21SYxFENJV8XFY9m9KWugw1Jz/A9SP1kUFG8JMXqT6x5f/ROsRk82KEhDz8nKpoVHW/16fFi75eWI+lACNx00PQGHeN8aUGkLR99LR36NVq/v3XxbsxM3vymAWcSvsdiyWhpQbMsmXI7G3Qp46EE+Hdozza9WT7IGJrtTTvnU+EorYw0Bu0hyCUv6J9vq9pjWCUb2y5r2QamK1t+ExjPMw+Lp+gq4XWHEBP2T

使用 ignores 排除文件

CwZfJE9uMVx4F0A4A3jAbAScyWlVvUvHCXBeHg4Aa6uFqvqK7mynTTCnTSQ3G6IWiAIYF2mSjwiiCVpgZ8/Gc63zCPqUkkEWH55y4rL8edYIVrl10tA6zeswjBYKHhIPU4Mo/Y2msMvadHJXP2zgmE/TuuEz8AuVs1oswQE2kD/+SZjx6B1jAmfGUwjE9P9w1x1aTps51eaeHDtTIBxxLD6WPTU1tYm38In/RvGzvYnNYEuya69BP6C7jC6r4+tc8GAVZtQ1wgB+OH0HVZTxnBtmF+k84wdAcOhkOShA5HE=

export default [
    {
        files: ["src/**/*.js"],
        rules: {
            semi: "error"
        }
    }
];

OvyBAP4/joolZmDSUbkLqwFtfcnCIGPN7371GYZKQrPRnauH9sOkrAe4fkEUiKju9A3te6KDr3XL76FMOkEu7BgFBSRTrHDXiBbkFScEzivlHdDlfA8OKzzfGA6U89YlzaXhPA4hjrqGAqXWVmYT0Dgsxk6NL7/yh9ZihdCnT7cPDOAEirZievGE3mQ0y2QtekprmqhhkuLdPpN9pdaAo42FyRc4PjNNygRkmnP99JtfcRDZWYD8jsCYy/yZX5MF9fQBJqXf5by37hokNQdQmPLhIgmBftSpVnxAyvjSKRgI/EAasZnqsoY5gHkvq824pyfzw3cqDSpTlfLH4e9qbvLJNU76VgmQ5klZ1hkFPgzJTVKAZ3oGN8pcQddJ8bGGVnx7MtXmLwUsIjAGXu2N/MB5WLlD8ST7QfE93xbRRbg=

export default [
    {
        files: ["src/**/*.js"],
        ignores: ["**/*.config.js"],
        rules: {
            semi: "error"
        }
    }
];

FWJ8XqZ1j9rGD25LFR3JG6IjXJ7qoRDodch9pwONY4it6Qt3w3NwV9+P6qNXOXveDQjQOLllcPW0WaGCrnY/nIVLKEvgo0H61Yv7/ko8VPmVmOvsmtDNjyAqS3inqO77s+oQBxVDtp60lzvr7i7K8rX1CGDkFg7+Lr7zTS4XbkbkN1pBYy87zt4HcI1HGvQ1aizfQMNi6Xs/VK0QaNP4OeTtZDZiLY9T3yv3BBsjTpzjePOKLmXcHaAliWcqSlKNAQuiTegBi7aKUi7CX1rKatGXTTw995nMu80LYYrcDMF4vvOmZxs2sun5qcSt1yaq

export default [
    {
        files: ["src/**/*.js"],
        ignores: ["**/*.config.js", "!**/eslint.config.js"],
        rules: {
            semi: "error"
        }
    }
];

DRwkU7s8U+ba2jl8PTSpAdSCWy/UNKntr5GquYUZf3dy4kIwyXvvfIDsJABSF7R3mOz2qAdjZ+pTld1n0z81zMk8Qanqz3G1QPpuhrW1raabWMAv1i1WulOC7jRQ1ffacWuaQ7z4fKsMo6Z3857dWoKW0B82Rm5pLQz8LWGKGlu43g9r9lxgeIgyNZ/XQ+HExKzIzb0wldgW1IaIA+brTfejs+CwMqu3/u/1T9lSu9g=

RG76iHU61yYpSj3AR3jPz//IFEei4Vrue2zuZytZAxqu+X4SjOjwGL0QMSivLe8o6OThNEF3YLLn8yr4Cu2DlsjtQp0B9YXbu44koYn6eymC2rttzuZiAlGPQ8kjuGrEM/nApHRS7U0zW4D8IYhTRQ9hEqCBH9rz1Hx+IsFCPINM0Cep9E7x8azzJ+jwz+YOALH29XnKuzDR1CmUZdpTMoX+5gMC1V/8jNwejujDyHxQUJs4RS0DKXdMohwWgXYKcTQrzwlCoImwZ8nAHGqKxw==

export default [
    {
        ignores: ["**/*.config.js"],
        rules: {
            semi: "error"
        }
    }
];

4fuYR+LqC47iImKmoQNrPGVFu6XjfLLu9cQ/xjXlYnNgVU4RNHXlOFWQ2+1Y6uzKQaVZhaajDk6enIwf2RyuGDe7dWFckDB0DgaX1gpMocSVTzzhYsX6jB9x6uh5nf33lERg/MRQiJkEKmEdGufu5XcdV3I3jfrtXhfgl66s8UZeQk+hY0NRMqkFD98eQyII8j3n4iNygwNIhKCirXENjIjrhB40q5UorkYYENtoZergv8BgBEpx2+cycPbXi8JypunF6E8SC7wWP/sZ+NGemmr7EhaZek62FrlnKLiKU+SxxjL1tNVRXm3gwPfLPqLNJisFOiq9i1RBS6eIEgPgDoSvJjm5IdNRYsh2AjWMWpU=

使用 ignores 全局地忽略文件

DT4SVw0kC6XGUdmV9nLTPbnpUam3PIezNiAjx8e9pW5vUt72BAyFYAGYVFOZo9AKZ7vTn8wTXkx1yLEFERf5RCtPwODhYNiGHlL7OaznzLLtcHPdJWpivNKK4oyWENpy8dihhjZj6oupeIyiBJOlsgdykHK6GClOFS9txj7D7CFiDv8CQnPCEP1f8ViAm7c3

export default [
    {
        ignores: [".config/*"]
    }
];

qa8oUgJsYvgfqiROS5tXCJoLwtG6dRDvZD9qzds+8hQgMpPWDBXSTjEVMiKWiZxWlrKN0qqrQgncY2OhFrgF+oFMlgFIbDMGYfFOpGM9NqA+BeLwQ7VIBCxuWBqW4ILrL4+IOJc5P//EJ3MY5kCRjBY0KkU2rY+I3rf0zGlJ/hAghHXJ+JVgejQ/uX3gsL2pbw7KTdcDDw45j9Kt/AN3Uwlcfj0UI096f9dtoLFQA/I=

级联配置对象

gv46eSp4TowKn8B9kD+2VPbLbReqrGDgppg19rXde8GGK6cfWdEmsZ3tE9pd8xgzoOWNbloA/6IUvh4C5g3/kOhljhIEJiEeDbX/6lwe2VcdmrFCw+eT8ta6WdY5IpYnbq2NsjXwLjgG8D0jLo0QEERpPs3P+C+65BaX7EOa4pmejYVUYQbmIHKtb0pjsJ5t

export default [
    {
        files: ["**/*.js"],
        languageOptions: {
            globals: {
                MY_CUSTOM_GLOBAL: "readonly"
            }
        }
    },
    {
        files: ["tests/**/*.js"],
        languageOptions: {
            globals: {
                it: "readonly",
                describe: "readonly"
            }
        }
    }
];

a4405t3F2QzC4EeLChgBpkrTZinE+wdAdKm8zJcYXvYncCEsBRQRKni8KFLLZtsx32pTzN0bHyBzN3Kks8daqAvRECrVe7px4LbejecTmzaoJUgllKkSOtYJzCbPFyvfqPKU35fhnTAmjKSYJErTLB/WnHZs6y6tgj7zcX7tNp0cqlSYZP1SPMJJ44qJpXGQ2RIBlUBXhUJ9L2xzvANYmJUqpemaJIHSNGU48zuYWRAp/Rloj2OIiuUFeSMScmT1Ay5bpfxw9Hc7N6mhBYfsTHVmXWV26mghby+5E41pQn5AsQy+swUJowim46008M8vUYAUi/NmavDpj67QMV4YnT6wH5nFBdL0yZwS327XbAshZpHvCkydwL5E9zq9k/A/5nRqmyoY78rsbRpDcDNGs8xqP6czQRccQcV/9uoYNqd4Mn4KKSHEpdru29hHIPh8E7a62fgDIA9KJJzbh/RyNWFjEBoMQ3g3WjpyBzotFmXEiewe5t6+JzjCFpmALeU7I7E/fi02ePM8ne80/UxKHpNYsEep8hItV+OKX2fa+XXyQZxgKwLzCM2ibEaipm9JNxziZrXZe4Ube0EGEtfPD/mUH2HLGrUUIXsfAv9q9X4=

配置检查器选项

KeMPLTjK/kUDF459alE8mvSVSDhp3cHFc/Ch6zBENrxL+98Izwgb7If8aGnd1kVvcPkfDlqV50TA57MKP5RN5pg1uZbEvpA1HGaVci656RSuJEPi+hQgwxpvLLVXHqopkovrH0jz5ahgP50400ic44QTchWEdoHyVtBJwJWhSkCOXqUv+Bsbnqul5c6optetM0rLnSImztY4H4MRo8K6P+04MV0XvA2/Wdw9am6tnRw=

禁用内联配置

a2mZTxowYD149udJNfxvopuNKgRB319FqQ9p5rJ+pcHiuPkCJskQ7GyyDzbVSugn371XZFRaYGwly+nj6TXVZvogsS5kcTvxYQsDhgQMRfTgr1tHHHZCycgzaGZoE5+/f85fRNDCYSMiQuxokJiO0BFRU9ReFlXCB4gXq2UKoSIAKjYNwEZ9r8jv7FynyYw17Jox1Ilk6YTh4UNaF5pV16gmELN5Emv4pFfynE2U8fosA+bEqAl+L7uNhUvxNPBKq4eZeuxysnIWKHEjgJuKmoEH4VClUGMRetS6Ih4+BHHDL0pd57MbsK56Wt50AuPfpj2lNEWCFDF8bS9u8p7UK8g/vkNHx8u02mECr4mMGgc=

export default [
    {
        files: ["**/*.js"],
        linterOptions: {
            noInlineConfig: true
        }
    }
];

报告未使用的禁用指令

m6g4i3sAXvhHL574s0xSVCm6TpblWbW1HhS7PPGSp2lqTKXCLXIUwZWN0mWhX2RIGQGxLRh7v+Yrz2wwt4FzuLJm3PEABeEKpm2bnLGZN3SAod+kZrQvemc7kW+HjYhBbgqnRH5XgoIWmzNwHsJyTQWe7G0QCCmWdV3TC0OmQhbNklkRjdwA1IIofZzZ6JaDLf4ZGtYKg8FfoG0CGZLGbdlv40JDB/PAEJ6XcLviof8hJp3WpIpv2ZVZ/hlZNTrJtbdnC850lvxV8ju2eZviWFxa4FSE8IVLElHmJ+JT9j5j/4smp3BnmqiZtqyWXJ+FglWsnklMuXU9BH18plTa+WKl2u08jPR6t5TN3FuA/ShUBhrCiFrnK4nTlFGENFDPXIppJMvOz/UWsvV4ppz4NwbF3dWxK54Ci9CK73dHRWRASnQI1qU3+7lBlr+0bUT8TesyORoZAdu09MOM89GJrGZ5hZZ1l7rByp2oCV2LHp8SuUDmM6qkavfymm7o3zRwoyW3x5L/+uJmGuYh677YWP+0ZcpWIap6T8oGqw1RE6D6/06Q4kX1lw/2x6ZPDls0

export default [
    {
        files: ["**/*.js"],
        linterOptions: {
            reportUnusedDisableDirectives: true
        }
    }
];

Ba7IWdbGkE2Tnq20h5etK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sRMqHnGqvttlaqa9tJDYIlg+1RVjJbSj3N+xuCTTWlPEr2CHsiFWTumqzyItuaRUuMZ12jdibLk+yHBAmmELvtrLIlosuBLsVrgs4NZrFpZ5ZLQCeMlM8gvq73iRfBEu5dMkaCpR31GgjkLttrMHcAdJWXrQ==

export default [
    {
        files: ["**/*.js"],
        languageOptions: {
            ecmaVersion: 5
        }
    }
];

配置 JavaScript 源类型

dlS+Z2X6RHDQZmMjHid7ys//67wk7x2zNdLO94Smd1Oqh0azBNo7kiE9pHOMBXZdSKuOg75MSSrnFI9Wbhdn2ct06wJfBKRzMhQxp2f9NJU=

  1. ECMAScript 模块 (ESM) - 您的代码具有模块范围,并且在严格模式下运行。
  2. CommonJS - 您的代码具有顶级功能范围并以非严格模式运行。
  3. 脚本 - 您的代码具有共享的全局范围并以非严格模式运行。

CwZfJE9uMVx4F0A4A3jAbGdjf5Guo4m43mxswXv6UNhpw1V3BL0GrMtcsHVvNxADL4BiMxYS78NkVOMVnNJUr/LOagtzK87JOUA6mR3kDOc0LoByV5zLm1QREw/yW3sv6XqdqpxnWUwybiSUvLU4G9w0ZDig5lc/sMz+CTbarfgP12w6TIbCaSlv/TmQSD6fBAN3W48ZbwDp10ejra3NEhgqLSaWQib4q+Ug1I1DnaudzZeeqbg9ibjlX7yusY0fAy7bgimjHb7HydItYXgBcNsAxePrS/lW3QpyOYwk/wqVmljJDim/IRTV12cfzhFFFRKLDFW4tQ8r63dpxh8scY87wfbQSsJZabzcWRUG7fR42KZ4Jn27xSUu/SB9V6uPNyWg2XcyccStgkfmYGQOtdcUteMMnqe7okqB7eQ8rmbrc3MbP8MjhvQxAzuAZCl5jD/fZ12r4oNOms6TJk8YPfBrDKJrTOH4V3SDN6pGekETxFa9r5UtjWMoa7DK8IfY067ilsCKZqvJYw/gJ9qim1svKmfsK44UrMRvRfWU6d1xEY6h6f/NhQhUQDej/ITY

export default [
    {
        files: ["**/*.js"],
        languageOptions: {
            sourceType: "script"
        }
    }
];

配置自定义解析器及其选项

i/NVmz9vV/d0pOt3FjIalT9WW6pFNJob7P/J1Q7GxujFzvy3zsOsFTQAQnT7nFz1rOq/y2ry1o+FInK03vi4xBb09qV8hs0cT27vQtnTIl1NONGdCFRWs8cTD2tVe73jmr4Ki/qeChfGDrdLsXNfWN+604riF08099vTgz60+MBczAFlyrDIQ1DXo5eVQrePXX9UJeFT03LRVDg2IsPBZGkD38ejeUrgeb5sV58EMpNw4elwW0LYaz0ChPtMVuGNq7q/msohD3ur+ftYXUVbS6SCGLnzDfYCNohb3zS+awWNcvqhYLfS+yn9+muBR03JwppL+st4lDv4nHnEOkCNXbxwcrZe6YJAX7D15xsV0vj25sPms4n7nnX7gNf0ttypm1hGOw2n8k8tkAPosgwWeZZOJH8dSOBmWIPvXLGTItbi3nidwSRoi4zMAzrPt9Tw43cFgY1VeBjiETnNEpskDt1Q7xHOKK1MK/LygQbPPzysUJ9+jdBZA7dJmcP2OEJtzVEGqojtNfWk4ufTKGZ4yB2cfcXH0tFha0JYYz7vaqnZd4upBWVehRnzMwwuQYsYP/n4wb566Qgwd2bgjDlbRudfftRctEiOX5rmbt/0yVv/k3zsfuEC+pK2zws31wTi8u9kmvXufJ48yDIpiQhxUy45Lh6Nn8NsFUZf7tT+qYudJY12/fxrVQL4di7fInxhJ3SHfMEOgfhMDiyaI0ZYssfD9zQWdmcMK6DhZo69vwY=

import babelParser from "@babel/eslint-parser";

export default [
    {
        files: ["**/*.js", "**/*.mjs"],
        languageOptions: {
            parser: babelParser
        }
    }
];

qMjk4G+T/pwoZR7X0CqPwL2Fqu13Frbe8kbWAXqlK3gplsiXqnykzciaVcPmh9OdMciVlVICu3hxJZqz4AZuZtio4QdFHx68bp/t5Es3EKkyon2pMxK7hLwQFYx6vhatmFl3wS4jaq4+H08j1n46NBrESn0eR0CIfTUyUmhDgVBJJpdUkfZ6932OppMtIQbB2MZ6xZs3ojBoWZLS2TSAEQ==

PBjsBQDIar3ngkdpkjKMYr8beOMasK+1a0i+OENklgwqoMWGxdG1nn74djT/qv3iRQWrv6KAb9F2dRdE8IFuW3dKvCETieDjidMwhQFlq2keDtF6eT0+T9WrQp5MXlzilY7TPARVpC+mqPhs6NRMEJ3c2YzHADbdd5RPFsbThnxOdqsLtcs+wzjz3wEDKBfBnjL/6hRGqHH7R64Kf2HQ2drjfJQMRhHfM296+shhQFpbyq7j4UBJ4ResXWGgo0K0/N+CNfUtPR9bq5rSnJk5pClzmkdckdEWJrqfib6i/tLNmqNGsbHq9ueSf3y8LBT2

import babelParser from "@babel/eslint-parser";

export default [
    {
        files: ["**/*.js", "**/*.mjs"],
        languageOptions: {
            parser: babelParser,
            parserOptions: {
                requireConfigFile: false,
                babelOptions: {
                    babelrc: false,
                    configFile: false,
                    // your babel options
                    presets: ["@babel/preset-env"],
                }
            }
        }
    }
];

配置全局变量

AXuyrLHpjDkN6jr3rZh8+fanL/vqR91tGXQKIaVoLQVprlqXGtj5BPtPAjVEqcIOFWl3qt3IcykPmPYj2xMpQ+JyHvmlFY6XThaXFi5M3u0w/S52fw8/af/hMcyWmEqVlS+XTaNPQkkRltQJB/pYCcTuKK8nmIHL7Nk731bO2ACBvu+KDpr4TF0tpeaH00yT7GMwiVkOsVbdk5GGcuWDVeh8dC2UH4OtYXBWxLu2ijI4da4F5C9sLiqS2+IqIGFxXkFs50tIg5ZNyyakVoUOG8xmNgw+q0ON1E+tFzrSzP5isw3F92KO/r1lHs8LfTZgkDNqv3qjQwIeulsE/oNpis9j/trY+ihaWPvQYMjPjZATjdcLvvyxCtsApVZqFBsnv7VoYm3lNjxvfw7WW6IUlKFewp4xbKOTX8muvg2l1a/mLtYgo8wIOV0xf7XMGWaM

export default [
    {
        files: ["**/*.js"],
        languageOptions: {
            globals: {
                var1: "writable",
                var2: "readonly"
            }
        }
    }
];

6/R/FroxxWFA4a3gQTifa5EWXWXnfnw5KxzMyIBL26kfw9UOOZ4eMni9er2iK9xwBbtyLaIrPvZWemHE+vn2keCX79J2FMuUOdHVrZTP2wnUfG2HHjjLB0fXFHJzUv/olZIE1DNNUD9VmW2sDBcZxTQbG4LXfKNRNr1Y8rbSAvs=

MgokATnC0P10xyNjkuI8lCQqtGHTIUy9pKwjQm+g5JktG8PBu99iOHUjoT+kGh1+IbmL+p3Yh4HuC/mVOPn474aef+Csz+9lAFhyeZpAVqNrQn8iKClfjoJzMtTMGM7nT+8PdZ6n4TsVDXyxziozh2CsDcJeqITh307fAQDgtVdl4cmfgyLBUPgNFRDgKZaHJ7kqyYq89FrMRQdXuvMjDetqqzNNfFWXnh187YrROZXxYAz9Ey5BEZGA5Fuo/D11

export default [
    {
        languageOptions: {
            globals: {
                Promise: "off"
            }
        }
    }
];

L1Iq7SzH6rEPv5/r/pVq7wftJsEn8dXZTdZfMxG9VmmcFwUOjEgGD96ZPx3Q3FAGl/RETZcpUoq0mg/Ci7Rq33GYftkUiqvov++iC/kiZpN4eO930kxpkp0z1HWsQOg7+sTicBT7d4WWf7l4N6XacU/2quPAVbC3sRUOhLHyLOHAEQKSI4y76L6FNV/YPVqDL1IwfgrzN+bu9U/esNqsV61wsdhbqMA2yM6clvROMxw+e2AH0u6p6MJuuR8N2/W0iC0oriypXCHMd5GQWSRGGXtP7HsA0NBhGpdrYwfsvMcA++/9D2cPsddBUOdiC8wLp/o7mC7OMIBJRxu8KR1hNAGTWb2vdJMK6lQt8PJlZLdrlny0ieYshwlbF/Gw16C2

在配置中使用插件

4eAzkD+YIF47kBFTye82T50PESBEYcg8FQ+XkYThOBYoEheZXTEbAzVIeW9PVrxY3FyZiKjLolBH5KnMbO9R3D3FPeYZSfX7GQWwp86igV+Fhd67IfHJU/pS2lKj1IP6

使用插件规则

2ljqY1LlZ8FXUQXRceHm2nkGW/kOhTm2UFCztocTxnwTWVL5zTa2GkzxUa4CBn/7S+lrAa6RKmfZiMZqxpgUYNOQqFQSeSfkgT6QwKkd9wMRRct9YP/XLnaSEJS9IPYnIViuPo9Bcop5LqgUONluqHJALs3HX5oBFgz5OnbUua1O6fK3TGC2eOI4TqVv/kXZoIfXCzq+/RAdWLp9/vIjjJERzxc4V92khPRpP1hjJejEVA25b+iF4gWK7r4hdv1BPI+52Wrdk9+ol3jxGfJRZLd83byrSUnjhN5wTy6VLsfzabUb3VGzcBMmeRR06RpiYLJ5Q2a3uDdGsP0pa1nTVLxs3R7HxTLt0zEivovL5e8=

import jsdoc from "eslint-plugin-jsdoc";

export default [
    {
        files: ["**/*.js"],
        plugins: {
            jsdoc: jsdoc
        },
        rules: {
            "jsdoc/require-description": "error",
            "jsdoc/check-values": "error"
        }
    }
];

ayC59pFmC8D7Tht4bLBGdi/hsWZQdB7oAfVLSEXqOD/c/XafJQBYyTi8aET183UF830/44FATP9srW/6Bgm8V/FESnV/sQuO179JfVJv56mElq9/zcdG04wGYJqxcM7fShUnCvtcH6cUNGeYFoaWwLQPz+unXBeA24f74R+w9goOYT+e7kALnTh0zsEjKvAcXRF04jhT3fWeBlNF9vKB3Xs5DRfwpVnGUihUR7pkr2N9el96lfcz03m19wjkx5nJdk/N6UoO1gLqS3SiFYGAig==

umEzoY9n58ocvw8QQ0BRPpYZzVQYRQU6RQSNAaB+MGYao81dO72fC+wVJY46HYsqnAD+QDazPJ8oXil4iCykncFmEkTGXNihdYuSFWfoUbWIpQlrgIKbYMYji6rgYxh+DAHGLuamuj9cRxk9JDuJhQ==

import jsdoc from "eslint-plugin-jsdoc";

export default [
    {
        files: ["**/*.js"],
        plugins: {
            jsdoc
        },
        rules: {
            "jsdoc/require-description": "error",
            "jsdoc/check-values": "error"
        }
    }
];

gWmcgZ/fpcztizoc5ZPek2TPfsCq+fMga85D8C+2RJTtzYmoOHkRNf92xeK58akWCEeFg227K7G/T2ci5KVEmvZb10ITpSfiCwi1MzJF0uigNWcZISsNnMEyPYWmphlCg8XXA4p4I2yb9LJkkPCOigaLfY6sN+rwgDhOcgUux0p0QQwXTctRKP/O8StMpO71

import jsdoc from "eslint-plugin-jsdoc";

export default [
    {
        files: ["**/*.js"],
        plugins: {
            jsd: jsdoc
        },
        rules: {
            "jsd/require-description": "error",
            "jsd/check-values": "error"
        }
    }
];

YTKIm0CWEGUjk3I7WxAajgTKECQDmdkA/+LOuqDY1EavALgeT5gnKsmdQPa6gKxDDLOj6/GqM5QKpkXluXoy/bV0WSJltYj9ufB8rSmBzZiXq5ZmMYRuleiJkYcDnKTv

使用插件中包含的配置

+/C0UtOe8NXE4kxADUZDLj2tOJJ3HtS52bc1EEuFgJLjuW1S7OUoxxkZsfKns+EzOGwwB8F7m5D3BL5DjGV5BJChQKCNIKZThoQ/fNoVxDiGYeoWxG+XT27nqlPsZN4UcKTFsasgZR0JVo+BcOytNLdMWG6CDOOcOStQo12a2IGkG0ZWMgRSPaHh5Zu2R42k5uHoY5/uBjsiS/kBdNbdSYHgSgQoMpPQ9QjIsURIPoLPFnVKZZTaqZAa0d43p4LMk1Bsy8eZZebCEYLsaZ2a/g==

import jsdoc from "eslint-plugin-jsdoc";

export default [
    // configuration included in plugin
    jsdoc.configs.recommended,
    // other configuration objects...
    {
        files: ["**/*.js"],
        plugins: {
            jsdoc: jsdoc
        },
        rules: {
            "jsdoc/require-description": "warn",
        }
    }
];

使用处理器

w79JrzNHLt/u6/yQKv1LkEgoDw+Q9/d0onvHljhaBN/4NTJCIoSsq7kIn0thqoEPHJFEigC70oPGnpOG/DaW8PEE1t6nNA5qNiOlYQUUOTr798BfaAzos7jJwfMuXdMob7em9RBpmlGsPYp4cutOyWDR05do+uFAKp3IF4370RcVEocdtKevQa3LtWz35/T8Wry/aNPOorCxFNix5Kk1wB6Dp/qkY8TepyA/LZWI0C4bdLiJaUiuKOxDPnpBSLQ1SYt0HRx41eXo+2yIKh/y9f3vMNpozJc6i8FmESL5HBlbWmJFINzCSS/8M+4T0q0KqfBpuRnC1MuEhSUxRIIJLG+47+XwRF+T2cm10Vu70tcYHUFOr5+dY7Z34i0szd0UYKBQKvqtYfZXf6YJMJkKFuyIAi8dcs3h7iV6BKt6n4W15+jOde3xxDBua8J8SGZ6A0TS21Dl14ObMXnU2hsFD9mx8yOJEo+MWPAYIYsjguCLNFMp8qe7B7NVAFjIqLbxiqgiHvETwgWv+8p+skOa4pK40GqTvYumpwZFyLIkI2IA3clLrym2FMgbUkZm8UZDK4agwvmsWxS785ABX6/z/k77bmf5yex5e+sfETtIE1FkKvuovXOFB9nIghh+6oIfS9RbogWBxXwqZkK7XIkhbA==

import markdown from "eslint-plugin-markdown";

export default [
    {
        files: ["**/*.md"],
        plugins: {
            markdown
        },
        processor: "markdown/markdown",
        settings: {
            sharedData: "Hello"
        }
    }
];

LQPVAo3KrUo6j/itFX7vTcXF5EBwJ14MF+i/bujeU2ueGD5vzYEf06eE+noHfGgR/AsPpkbm3iVS6cixV4UK/hGH/CHl2fjr8iQLSmEXqZ+1/YfIeSshxUSXMvNYS0+xJQhJA52vjk7YVLpDPFI7txSFTmZZhOtakA0dDxX9XpS+5oEw+ZgJLG6ma9w+z7cOv5A9pKbYtIbbKzEX3oDX/aHFzz6lZdmH6JjvAA5ZofQLQYbIHrG0n8+ikVq8ll8fg9TAv/B6DQ+1TmVwmG9VWA==

/TL5lP4Ruqdp4PTTq+pz0Wq+JGvIV590A4ykOwqPmB+O4q1oX9Q7n1Nv7TfqOpLRC3IbyauUHKNgM0nVLungTR8TLkG26zd3JnYsIW4P7gOCTuyDEe06ZB529FFZIc+HoZkyb/cio7zdrfiOIk10gF8+V/tjdDmOpmVocGW5XWPPaL6N+i/icbL6l1wULjtK1Nk8l8JaILtqhvtSiH+qfPmQ6KWMzz0L7V6UNMVtm2HxD67cibQpdN/DL9NVOU6e/YhfHcjfkZ98ZJZAIGcnwpv5mGB0yih3Gxe0XbYL8ziRJ6VQ4Yto5qGMTPIH8r2hUkskjqhA/G8rQCLiY7ZZizt5Kejw9k4qm4KGY8ZBvnBMw71oZaxe8SLU2D6RcK5c3/8/vNu72/sjvXNRQhA5C93fbQjL/L4PyxegjuhrnWvfZjdBqMfevP+bsAWEzLbWWk4PHPH8+GMFJaJBAHlobvQieRy/U3o3w/rYlh463iA=

import markdown from "eslint-plugin-markdown";

export default [
    {
        files: ["**/*.md"],
        plugins: {
            markdown
        },
        processor: "markdown/markdown",
        settings: {
            sharedData: "Hello"
        }
    },

    // applies only to code blocks
    {
        files: ["**/*.md/*.js"],
        rules: {
            strict: "off"
        }
    }
];

配置规则

CwZfJE9uMVx4F0A4A3jAbG8wK3Ma0ersLyVagYNIoYQVRQPVWN31ZkEsTupFjteNTFCbgpqy3dNDgqQfiL1ZTO2Ive6rk94hEDCWqoGctyeCnlP60GObtcQ0bubrtg7gO9+F4cx4QGqzLrFXfE6+ukU63eiLjIYPymFjMT4xaBoa/kQUDjldDfAfu34DRPslmWucaiDKMQzrsAhNnMY9XOVyONmQNrfIO2v6yiy5bSXufYEdYPqalG2B3y/4ZhuALhQxVOuytm7TbZV+pgVbeOWCfMt8Ja4tJUZcgv/z6bJARPfe7IQwc0PBXRsBuoX+b/ttU3bvXyirmJmDxdsOSw==

export default [
    {
        rules: {
            semi: "error"
        }
    }
];

pJigadL2ncP31UQpi68lcNmM0hA5Elg7Yzcap3puYezrU735Ny0pvYylKoQIIjM0ydvQRAIITyxGetmLBdCxEuUaMVayh/Fr4sCdaggqpXoLI/ksd5iPbD6wfk6/hhnVL2YdMkeKs1NGVJE/afEhsonEaPezWoC302Ut/k80nKqgbFdp+j9pvgx9ftlp9/vxNP/A0gW99saboBcrNc1qp7a2fRnDQowcXHQ/OXaYsAKWPZClfuTUrUHyDmb6gnxA2A1m/wAdserFqx4NlRlll9/oNmsmuNjKy9pd5nHp6ZsPmXlSbhzpXimyeD0YhsPt30mC1uNwo/bO8J/N2doPeMT0FtZ9xcLExzNNzzJFEE/Za61TlIY9aCulNY1x5+e7BUDsn6sLYYh3/7kor+lLoVW4++RzfxwDe6QOGjYTVumeaEL94v6v2yzSa1uJEHGo2XwCsAPvfFG+LGilkHGMZ3f+ikrTnPnn0/hNoHY0tvmjuhfRLRwkLsLmyQ7M+DIUlUTOvyPUwtvX1XAd4k3MMQ==

export default [
    {
        rules: {
            semi: ["error", "never"]
        }
    }
];

uRHVbAritw4Hfk2gIvjUWreShyMEj2k98GfoXk84nzbtRR9GAGOB9gmSiiPJd1dbtpPvbITtPxxenw4gEjbF4mNraIWt8LC4/fMZsQHQXMWJSsnIockscG9WIIhshEPm/KzSKIoFlFP+mMWfJTzA5pQHT27FJmB3Qza9rjUsqV9t33cHZ8hOL3vhaVf+twbEadoOjfvuIJ747BJ1YomlixxsPJAyqed1p8ywjG3Aw4mgK5+P/7mLGp2Uvn3HksRe

规则严重性

PZQCqTZqeOo/OzCrtcLlaFvUWvvjSxSPGCRV+idMzVcbvhhK61U6gP+jxA3lFm33atH3aSjLJiwVhzQBz6XeLg==

    PRfgZRzZ3VkAbM9maxKB8KfpqHC9Lt5xdoO/fMTfmB8Kg+ssuAAkom705Mfex4gG2zuMQqinRs/ANOIRPTi1XS7uqabcQmMKYUl3sz2PsB9EeeziymVABjhJaioTQ3Qhj5e8nzydHOAxyIvLHVcROBP5edTnG29XvecY81ozr+Z4xkiUhfe8WLNfwg1fUbG16twGMGNB7CisJ2aW5/zyXOdIpPC9TeYXG+GjdsYirONoB44InoHMJ/jjrPWREp5wLXT7vuo4OurJopsCPFpg8yVFD7s3tyh/RbQE6bFY2M8r6JBrDNr58FU2oc7TDLwi/NYf4eQ2YbkNNFLXrr3DUPGnHjXRhValHwvJZFUWTfQ6JblUExzurWphPtNxg7kR0JDy0CFBf3K04HBr1K322PEULHYf6ksRO4fqQ0y8JOS9CTjCN6nOfnS4BvEeW12GLqiPyJoeAyMO8GAZVUSajb17geeBocCECqY+RWE0WsIbPozrrvZL5yG7ulO3Yloty7CBkMKSKkkUxjiKKq6BBcXWVSQzKV9WONRAhfn6hEVOkjWUJ/CQ43ztYsx919GdOWEFafCkf7nFZCsVmY5STB95hq38imHDt8xaLebUUPE=

规则配置级联

gv46eSp4TowKn8B9kD+2VD/7DjCe89w2qqEf7QGckH4oOn0mM2UoRy9VDZlsZcRlXKDiUqEOjuPEBkDEcbEpEPo/hV2LT/yYC53TeTYSrEVC6Q8IITf9XJVNKmyCZI7eb0i/IB4yW6olQrniQGD2OsEH3akhzElyk0DZOqO9gYKMoTZ9FFxOyixt8sZ/+YFj

export default [
    {
        rules: {
            semi: ["error", "never"]
        }
    },
    {
        rules: {
            semi: ["warn", "always"]
        }
    }
];

a4405t3F2QzC4EeLChgBpoZGE2xiacx0jL6fZE95AHuhobMhGUsFur/ouGfwcMQWbvD9F2+1LtiduuIjB7HD3BVBMc+7B30GJH1yVBFlnssfc4PuHTHq3Q0XYxoULTp1j1gFeJPGYCXS4pbXEvmF1kF7Vg+kvNQjFsSD3lQ/GDw45hIrk7nsUN19kXcgWwIbn+EIfv+Gqy8XOtGkaBe1KE8eY30lxAS6pNT4vFJbgipX4cTGrmLztxdufFTEoIrNUGx49DD2utOulV7F+81nLgWNZ+w4QLYY1B35/gsrq20vTbHPDyZQkNgQaPTvFiKdsFko3B0bZFq7OOFUU9zI+Cqr6AxeEHo70+lCa/rq52E=

export default [
    {
        rules: {
            semi: ["error", "never"]
        }
    },
    {
        rules: {
            semi: "warn"
        }
    }
];

wPGNMOZH4hauntMVDmHkP4eSKm01p8p/bFT6nyelFDGWTecrjuqMMiUEXrbRcoWtXZLqglkEDq6KK7SIqC7sCsmRL4ekbD6ALA3usc57G4Wq3m+hpdy6hLwbDoXX4UDWFT6vgV0w/rjmda+1lxK1fpxwXNTGMSdOF2Kz7fgRYil0MVOopOdeLosUsq13nKAK

配置共享设置

Euy7xSS55GphR5clzeMtkLD1XdLRqkEOXUj38TpL1hcsRjVMBu6bfLgNw7CIKeKizj3cEfYpeeYOC1YRsiA5phVJSAJXU9PBhejscw/XYJhUcyqCMW8mLri3U/Zvnan1A2H7PQxqQkxyJTppLws9kchd3+/QpA+RWxayPfHZNnG66FydToq0TdiOM5MzlwuoeHVMH+wBHr6Ox/+rff5NAQomGTILUGIp6z5MuaNTA4+699HdHL5pkWNGrhfrPxcF81lrp727Q4qtLDSz84RzQhHVWOSPC9DAjebgx50E8QgV8otUw5G6XFoQatXLv1lFh0jC19rtb5xsadMHDKjdyzLMgciew6kzOwHpXHfFobLNa5+vfm0HlCV3RBhYoYNWXccLqWEHH+nyWSLM9grqktGBmgv6MI62Ykw3OZxqP0+Qkl5hOw/NPP3J29JdUnFm/E+E22AI09Qam80iu/eHOx7mNFmgqH3vmL+yueMqOEkLMCkfFRb071my/Ba0AxXfOocBF4pi2EtAosPOZeATBEqFXvkESAUUIKJZPTX/r3lUksvYTCi8XzK0ED+EDOib1KMV9YrS+k/0va86fVI5RwqE7tB1ssjSoxf88ysP6rs9rAgLViyfSaayIU/8myLz

export default [
    {
        settings: {
            sharedData: "Hello"
        }
    }
];

使用预定义的配置

RPQP0iLAKIx0PqE+H40Q6F6ENsDwMEjS/UFareaqVYcbLhWJcPT7ngl0T2djPMqE

    FVDfDUJSCc6Zdc4c1DksISe9yvGbx7S9OV3fz8B1p7D+qUUUl9TbKfBmIIjWfqHowwYngh7J6ZmB6JmsfeL/PpT94Jj7y5VG7hhOtdfXt0C0MLtgP4OoUC2N0LI2J0bK4q9orEWicw9IFIfbch8BO8DppyTFDf6IfNWVneCnkMnt5Fq39zhLLPo30qqIDtofa/XomV91uLC0SuQb+uV9tKyBLTNkad8qfxoW+qaBZ9w99iXc4kqu8zoMyPLPGaFA

xE8pIxRLIciC8Xwf4lohx1N+e074dhr77hbejweucRP5S3fZJFG8kecjv/11uUr4ABXsvdeDpFCn8bFvqwPXYWNytgnyd85F/Es+B9YnOOLBCr2GhVbmQ+il6u1+tkmsDmNy2d4ARxgR3Mg7cEJvntVJb8muv/AB3VJSQInAnScMNohdcZI+7wkq93BLxTMsWvlX75/WaUPt1hxmX2r6tw==

export default [
    "eslint:recommended",
    {
        rules: {
            semi: ["warn", "always"]
        }
    }
];

Uh6vxV2MkI1X8iC9QZKRKGU2VT6iqfAoD3+MLdcG6VhATVSDSESW5MURABAGMxYgB8WQ0TWFkEE/adYXPsu3V8+dhcJ8Vhr5oL5eIyh3evx0IG0Tj9+W96wu9O/NROb8dw5BWy6aF9sLQWl8xVq0jOD1SpvlF0BytoBagechM2045+haJbZGv0jlqKC6G5B8HPAJUDLJX2MFnaghVdPGKQ==

配置文件解析

0CPw8wGTqNYxtqJuOFe5lNf6UhhaiTSeXXO8FF9VUs8KT3V2kGNIkWgsNs1yiSvYskSXKocwmJaaX9Y7UoWvTIxyFjLOgTmod6X4p7t1N3fQP6NSfkxawNdWR352FrUD1LPsspqp52Cd/kB/RCCdRkYoUJkunWNmfXcGVgkGfsUbeJ6oBbvbE2GQd3vQLV61dNVGeU9uBf9/jqenP7D6bzmlP4HS1M3iuYp4Svqfb8s2vd5URxbDUyWf3LpFgokhtcpihSkWdcsPBOxmROvRa4YOzXiiCBZS4chj4/EHIo+Byh7ea7msQM/jMlW3SXVU6ywei2NnUL3yZsoslTzp9g==

+/C0UtOe8NXE4kxADUZDLrA7T6EwTykd0g325DyQt3Pbw7L7Uf8vXWNfhPSyXoxuATQWHy7rOuSxDLNX87BmTMRlfVhQahhVStDN833ai/4cdqhtfbZF8VgOfAv0I7aPRIgotL2PZu0TrBeWU+nGPsF5D/jRKl087HblvQ3pktw+mrjlRkXyirQoyX2Ua4wVmhtd45WA1tKh4eN5kqCTjF28ERsBnA/sWTqOqbdJi44y8otebEJUQQbSNvbgkHCvdIvhgY9UvL4B1Hr+eigFrz9HUFP3dihMPRRLF6DVhYauXVSpRNh/z+zICbiPXBC8iOyDEBREsc3gWaxpJ9kJxbmsXR7LeGWqlpYco8CnSHI=

ESLINT_USE_FLAT_CONFIG=true npx eslint -c some-other-file.js **/*.js

kaJfdFYKNiNSB1qI8qY7BB92oumALHF60lEUari4nDOxtBwrI5YUXVu+KcOtL315S+gPQ+e3iRgIn+GJpwmSZqG+e5qcqrGKM6aX7T6BQoEoFVHo17RiK3c2YQq766vJOThXWfW7XkQ5zGUdaZu73r9/wGeV1bqaibET6lG/Mfs=