From 75db3cb667092b7fb102cfff1b9387c22f509f80 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Apr 2021 13:41:04 +0000 Subject: [PATCH 1/2] Bump eslint-config-xo from 0.35.0 to 0.36.0 Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.35.0 to 0.36.0. - [Release notes](https://github.com/xojs/eslint-config-xo/releases) - [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.35.0...v0.36.0) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bd4e65726ba2..14529b817ffe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3800,9 +3800,9 @@ } }, "eslint-config-xo": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/eslint-config-xo/-/eslint-config-xo-0.35.0.tgz", - "integrity": "sha512-+WyZTLWUJlvExFrBU/Ldw8AB/S0d3x+26JQdBWbcqig2ZaWh0zinYcHok+ET4IoPaEcRRf3FE9kjItNVjBwnAg==", + "version": "0.36.0", + "resolved": "https://registry.npmjs.org/eslint-config-xo/-/eslint-config-xo-0.36.0.tgz", + "integrity": "sha512-RCaqCyI38awe3qgiO0Z8CqHs9yw7dMKdV6ZRTFSR7lm0//370tbDEZaQBXnztgpwe5m6D+VvFWc3vLMP/W6EAg==", "dev": true, "requires": { "confusing-browser-globals": "1.0.10" diff --git a/package.json b/package.json index 8925da590a96..317c56318d44 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "clean-css-cli": "^5.3.0", "cross-env": "^7.0.3", "eslint": "^7.25.0", - "eslint-config-xo": "^0.35.0", + "eslint-config-xo": "^0.36.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-unicorn": "^31.0.0", "find-unused-sass-variables": "^3.1.0", From 0da06d0cfda6f0edac68bb73bf4f9d539c349c29 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 15 Apr 2021 16:48:16 +0300 Subject: [PATCH 2/2] Adapt config --- .eslintrc.json | 2 +- site/.eslintrc.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 52645ee3d00a..3d86cbdef318 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,7 +4,7 @@ "plugin:import/errors", "plugin:import/warnings", "plugin:unicorn/recommended", - "xo/esnext", + "xo", "xo/browser" ], "rules": { diff --git a/site/.eslintrc.json b/site/.eslintrc.json index 6c78209d2d46..b34d3315155a 100644 --- a/site/.eslintrc.json +++ b/site/.eslintrc.json @@ -24,10 +24,14 @@ "always-multiline" ], "no-new": "off", + "no-var": "off", "object-curly-spacing": [ "error", "always" ], + "object-shorthand": "off", + "prefer-arrow-callback": "off", + "prefer-destructuring": "off", "semi": [ "error", "never"