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/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", 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"