配置文件(新)

警告

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

配置文件

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

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

在这里,配置数组只包含一个配置对象。配置对象启用两个规则:semiprefer-const。这些规则将应用于 ESLint 使用此配置文件处理的所有文件。

配置对象

每个配置对象都包含 ESLint 需要在一组文件上执行的所有信息。每个配置对象都由以下属性组成:

    jlU91orB/8zU8XSNm93Ax3dxbCjB8umbNW4AWqdVKht/TKd4/M4WsrHCFBOq8JGp7yUrRTlsFWWKLCKeMT/XZTdrrLOa2Z4AeqyDCybPdGi+drNvn8nkKGMPoAqcSDAxob62iKq/LaIdpzohHbSU+RpYRhBhUz8pE/gAOQK6Z5hL1B/+pECIZfmJ9TQebrVhu9YjtQyLfYo5UO0FAF1U7oF0Zaitoyd8LbdCadxs86GjrZrlHS7hCovXwfuT8KIXSDlgJcZZ47FoQ1ePCqKqztR8P5fXV0LUZ/tSndgyfz/hcRm6JPPQyvD1vXiBdnjdmVLkW+uzZdM3SKQbJUppZLZwg/yuu6sXbs/qvENIDgmCktaIpohVx1tpGU0svlqEF+olaEd7yFXCblBmzkUBZkmlkiBg658jTurFOFLCVuYDGhuteOpRtj8/rhCxsIgW+FH1tE54F7LSw6H2rDISHPLOIv1rffbQY4OrbHuF76RMfEY0dl4nx0/J5x3AYLy2SidLXNnAZcm0KdHCicbFJ7S1PoOLCif30OCJ7cXUbfK0NUPhADaWqKdcG5xmkFCghGhE7yahg2eKskPx+9JOLvzBvEWVsY5c3bH794YjrbPnOknp1qohWuRaaM7T0xHZn8qo9QZsAvKsRSrAbYWitq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N6TzxeoqS/U4gWdMqyxCXqNJJVXxW7E6Gqm0Q/rzAjuVJRD+n7FVoFBbIWRdJFc2SwkEwqtNX/qIum6CXpBDDXd9dzQ3uwAoEvE1XVsTOxKIOS+zhtnH40txAsEFz1wJ158olYb8iUOHJeX2roiM656PZ7llD

使用 ignores 排除文件

CwZfJE9uMVx4F0A4A3jAbAScyWlVvUvHCXBeHg4Aa6uFqvqK7mynTTCnTSQ3G6IWiAIYF2mSjwiiCVpgZ8/Gc63zCPqUkkEWH55y4rL8edYIVrl10tA6zeswjBYKHhIPU4Mo/Y2msMvadHJXP2zgmE/TuuEz8AuVs1oswQE2kD/+SZjx6B1jAmfGUwjE9P9w1x1aTps51eaeHDtTIBxxLD6WPTU1tYm38In/RvGzvYnNYEuya69BP6C7jC6r4+tc8GAVZtQ1wgB+OH0HVZTxnCwWuq0pzQzNPtvdBgFgpxkI4pYfoX6VqO0VCBxJZT9S

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

OvyBAP4/joolZmDSUbkLqwFtfcnCIGPN7371GYZKQrPRnauH9sOkrAe4fkEUiKju9A3te6KDr3XL76FMOkEu7CooI2Fh6Oj/1e5gh4erfKPlfJnXqB1mouGuBfc4XyfeaCyb5L0b2Ixozu8zIKbo0dz+Lxw+ADbGzGCP3iRTAABdJc41l01jKNbpugWQlekjAnYYwEQhpm/AlJ5j4gs837yYrOfKcPzRV1ViRQFyzjz8ebkQJuWZHsYYkkmbrkAr3e9hZT91FziwG1D3YiXIuev36Dr/819lD0Zg2dLy2do9qojNFdMVEvOlTlpiSo5VpJh9N2M8jWIyVZO6nttHDZEfkQdinYBP+UeGl9BSO8tkRz+OrBrIw/GhtK4IuWrcst42bpjG5s6mOzeXkyzzRe5E/mdqyAryD2fBvnMWCMI=

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+pTld1n0z81zMk8Qanqz3G1QPpuhrW1raabWMAv1i1WulOC7jRQ1ffacWuaQ7z4fKsMo6Z3857dWoKW0B82Rm5pLQz8LWGKGlso167W7UAl+jOrzxjYXF/s3rT3I7DByYWFahAHuw9FULYqDF7tzkvTYOsAS7vY0Vo=

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
        }
    }
];

Ba7IWdbGkE2Tnq20h5etKWusXeuWWzPgNg1Tchp7FAp8NACr6hBCQ1XSGfOZ/hOmAt6+YlMVE6em++sxpseFZu7JBWjWQsTpDjzvk3z0feqwAskfYuoXzEkUdaVhMU28u0IATOJYErIK1u43groQpRXWNgYQqN6Qizv2dsEU6DdXPhU0qipXqeJR2Sbi8n1X24tbk4MlqiraIj59SsLZ4g==

配置语言选项

KeMPLTjK/kUDF459alE8mr+p2Q4opg8cp+NG1Vbu3rvnzaMFByuraDz4v2n2FwNPH9UpKHEGtp21k1hc5+V4ZIM1aSTeoE3jpctWr91gNtzFuuJpgEPbUN72bm57o8H7BmlRa12+F9ZB5CXgvbj6OmHzy2yKkJm9Lzlw6Vnb37w=

配置 JavaScript 版本

JYXioMvibF1glHJ3r+G3bd7Ij+F4mJXFDEeL4pK50UBWPEGPeZNQ4cuLpN0qg2wmsDZL3foBTugJQq1aLjmeqI8JIhDzQMR9kJvMhfSRLF3u1wzckPTgmYfHAv0HozYW2kdRwqWUZouV6yAjp6Y5usIaPsCK4mizVBupid/hRpwQnJWRHysYF1Rqc2/WOuyCo1PVZqfgg4yiyZ+GqjPNgB8DZOGRbvyvM0cNPXIeSVi/Sxoa1/iEXrsUix/mHmtChF1MNl2yXeyni/l7p90SyrreUy0BTK9K0ecWgl3O8owFPO4+fmf5J89Pk3tubdAj96xx1sBnDr7FD31vVgUs3Ar2frM13seSekKer814XK86OA3tFclhk0apgYoexb3F/RP5O2QHRLsJ0IKFIbpyll2ltOYTSJlInvvo8hGlU08t47ewpjOHWz3g9davuWccBlPyxiHAC0uMwrXQPkuBIMBYGU2d6MjxD6C3doXtI65N9q6iQ8rgJB5SFpNq8Lz14C+0GTqll2Ul1vSqsntRFYsv/lNgQKfwb39rDfLUXLVX4Nhj+so9jzTwtqEeG5kC6N7lLFYOqYwuaBH5TcqR/e3Ml6BfNdXSUPsoANVAP8FrT7ix3QrDGrp9KYOHOZEs37JLoE+qoTssi/XUGvcQCT4hoobgko6kKMj+D3GigivpR+UHmVA9Y04+AQsRMqHnGqvttlaqa9tJDYIlg+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
        }
    }
];

LHJk+rUHrQDwdp2FLX8JTG4OG85sRkdZ8QxsEgyu//O+zXhuvdRiLjmaWyD4/nIo5YEMLlvIJSs27h7A3EGTvXag1NIMHI8jCNMKOYIM+Uo+CvKDOQrWDPsxH5BTCJ9NrazLbo94uBoklKn9kpRz+FaYBjZK1a5BBAgFQgPmL8mQkADseBxIAPkO1Y62yPv0

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"
        }
    }
];

pJigadL2ncP31UQpi68lcA5yQlgiSD8U4+YN/qPgneEMM0iYX7ttlwthcAzWhUDOMTFtx2oJd07+lbTBo197WpN/ReZFaKFnc3DJqYmn+mNoiSzY1bXgojuayqGRDISselRIly0CuefTgGFlQQZebNcNOgAgfOkR28pGTCqqSUVeCBI1Gwr2GQVvb8u8xa1joEbFQznlbZnliYjt+cj2BpEmggjDSI91OuR5/lVWmaJ8nA/nworNrRH/wDli1LyKGb/OZX6ZvPP0v1ZOi81r0g==

/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/NYf4eQ2YbkNNFLXrr3DUPGnHjXRhValHwvJZFUWTfQ6JblUExzurWphPtNxg7kR0JDy0CFBf3K04HBr1K322PEULHYf6ksRO4fqQ0y8JOTcJgMsX71jgvZ3jcI+5wuO55d4EqC4nqDPGuWrsaNjvlHA5H/mIZaask9GrHnwp1C6u5WqEvbI93mCYQpgKJntpz1QQEaQxOt7NBH4cEM7Vj2lIQPV0xPKJPEqLkFMz/Qcf9ZidMw9NEBMjIAvYKbfE/feNXsq85hXqPM+G85e9eeMwoejRj/FSaTlIkrobos=

规则配置级联

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

配置共享设置

Euy7xSS55GphR5clzeMtkLD1XdLRqkEOXUj38TpL1hcsRjVMBu6bfLgNw7CIKeKiMsW92MDX0I9ESP/KKhgFdCm7uaApNMCbBAcDb5kWmpmNrh5lLM5Jizr2dbLrRrx72OQRUQyZ5Z+fvAzL8pd3gICt6PQHDJGaAf7eM2hW+SvyKIgGk2TqHEMd90egQdPXQuc5S3p3hcI16/gZZeBeTZVUz7ubNViIhh3x+rM5LVQL3j0ONk6l/be/LCCGSPqcTPy2bWbsIMKUwsUalNcs3RbbN6s9C9M7KkWuAdpgJ+AHzh6l6RBPNSh/JFFY1F0fexRD34uUapGYfabRKcF3bRLTKyTY+WjvhLIfzuDemQAPBDU+XxuB52equMB8ZKC8tVgJYnkov4JOkgVYEMbsURrNHXN2ubWS6Aclh3voqfmd+TOg7Amifr+LC9HWl4xi4tpgWossuKdQPGM3i+8OmOfCsBf6PX/UEYFwTCEvQa5Oigg/GmaHNmlNGhEvCEq0

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==

配置文件解析

ooZgDRXghtyiDMLRTpJrFIWTU3ERtjfW6V1v0LPuAlS8KG+VgcD2/lpHiTYk6BuuC1bmbXDoYJQRRslM8w5ft540itSfMx678iYJSnwVzFlFw26J9U50qhKnHhfUD/ooNyNv9vsdyJcoRshilu13ZBCTrxyLbNcQX50KfhNWs+QkcL7xpsWHmUlKj0/8GE/Srr318tLXv+3b5caxGzARO1ARFiQXSAe3KHmKNl+fbXKNdRchXAjsJfKGQx9kqPS7SX297fiSGEVzAuNo6hGHk2D49q+RSvCo+eZ6VfeMp234Ye5k4nnHDIr1bprlnKYm

+/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=