diff --git a/.eslintrc b/.eslintrc index 2569d1a0..21b80c67 100644 --- a/.eslintrc +++ b/.eslintrc @@ -7,14 +7,11 @@ }, "parserOptions": { "ecmaVersion": 5, - }, - "globals": { - "Promise": false, + "allowReserved": false, }, "rules": { "array-bracket-spacing": "off", "complexity": "off", - "eqeqeq": ["error", "always", { "null": "ignore" }], "func-style": "warn", "indent": ["error", 4], "no-magic-numbers": "off", @@ -26,10 +23,9 @@ "no-negated-condition": "off", "no-use-before-define": "warn", "no-underscore-dangle": "warn", - "operator-linebreak": ["error", "before"], "sort-keys": "warn", }, - "ignorePatterns": [ "syntax-error.*" ], + "ignorePatterns": ["syntax-error.*"], "overrides": [ { "files": ["*.mjs", "test/import/package_type/*.js"], @@ -73,10 +69,11 @@ "max-params": "off", "no-continue": "off", "no-invalid-this": "off", + "no-multi-assign": "off", "no-param-reassign": "warn", "no-plusplus": "warn", - "no-multi-assign": "off", "no-restricted-syntax": "off", + "operator-linebreak": ["error", "before"], }, }, { @@ -114,7 +111,6 @@ "max-lines-per-function": "off", "no-plusplus": "off", "no-throw-literal": "off", - "sort-keys": "off", }, }, { diff --git a/package.json b/package.json index 0d3340b5..3d163610 100644 --- a/package.json +++ b/package.json @@ -46,14 +46,14 @@ "through": "^2.3.8" }, "devDependencies": { - "@ljharb/eslint-config": "^19.0.1", + "@ljharb/eslint-config": "^20.0.0", "array.prototype.flatmap": "^1.2.5", "aud": "^1.1.5", "concat-stream": "^1.6.2", "eclint": "^2.8.1", "ecstatic": "^4.1.4", "es-value-fixtures": "^1.2.1", - "eslint": "^8.2.0", + "eslint": "^8.4.1", "falafel": "^2.2.4", "js-yaml": "^3.14.0", "safe-publish-latest": "^2.0.0",