保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 9bdb95c9e34cef640534e5e5a1e2225a80442000
PAMapp/node_modules/resolve/.eslintrc
@@ -1,9 +1,9 @@
{
    "extends": "@ljharb",
    "root": true,
    "extends": "@ljharb",
    "rules": {
        "array-bracket-newline": 0,
        "array-element-newline": 0,
        "indent": [2, 4],
        "strict": 0,
        "complexity": 0,
@@ -12,28 +12,54 @@
        "dot-notation": [2, { "allowKeywords": true }],
        "func-name-matching": 0,
        "func-style": 0,
        "global-require": 0,
        "global-require": 1,
        "id-length": [2, { "min": 1, "max": 30 }],
        "max-lines": [2, 350],
        "max-lines-per-function": 0,
        "max-nested-callbacks": 0,
        "max-params": 0,
        "max-statements-per-line": [2, { "max": 2 }],
        "max-statements": 0,
        "no-magic-numbers": 0,
        "no-console": 0,
        "no-shadow": 0,
        "no-unused-vars": [2, { "vars": "all", "args": "none" }],
        "no-use-before-define": 0,
        "object-curly-newline": 0,
        "operator-linebreak": [2, "before"],
        "sort-keys": 0,
    },
    "overrides": [
        {
            "files": "bin/**",
            "rules": {
                "no-process-exit": "off",
            },
        },
        {
            "files": "example/**",
            "rules": {
                "no-console": 0,
            },
        },
        {
            "files": "test/resolver/nested_symlinks/mylib/*.js",
            "rules": {
                "no-throw-literal": 0,
            },
        },
        {
            "files": "test/**",
            "parserOptions": {
                "ecmaVersion": 5,
                "allowReserved": false,
            },
            "rules": {
                "dot-notation": [2, { "allowPattern": "throws" }],
                "max-lines": 0,
                "max-lines-per-function": 0,
                "no-unused-vars": [2, { "vars": "all", "args": "none" }],
            },
        },
    ],
    "ignorePatterns": [
        "./test/resolver/malformed_package_json/package.json",
    ],
}