eslint配置

配置eslintrc.json

rules节点下

        "indent": ["error", 4],
        "max-len": ["warn", 140],
        "linebreak-style": ["warn", "windows"],
        "array-callback-return": ["warn"],
        "no-unused-vars": ["warn"],
        "no-plusplus": "off",
        "function-paren-newline": "off",
        "arrow-parens": "off",
posted @ 2025-01-18 21:16  漠孤烟  阅读(22)  评论(0)    收藏  举报