From 8326e8e47bef6537fd232382c2f3707250da4285 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2020 18:59:30 +0200 Subject: [PATCH] chore(deps): update dependency eslint-plugin-emotion to v11 (#4594) --- .eslintrc.js | 8 ++++---- package.json | 2 +- packages/netlify-cms-default-exports/src/index.js | 1 + setupTestFramework.js | 2 +- yarn.lock | 10 +++++----- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d79a6236..ffdec6de 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,9 +25,9 @@ module.exports = { 'no-console': [0], 'react/prop-types': [0], 'no-duplicate-imports': 'error', - 'emotion/no-vanilla': 'error', - 'emotion/import-from-emotion': 'error', - 'emotion/styled-import': 'error', + '@emotion/no-vanilla': 'error', + '@emotion/import-from-emotion': 'error', + '@emotion/styled-import': 'error', 'require-atomic-updates': [0], 'object-shorthand': ['error', 'always'], 'prefer-const': [ @@ -37,7 +37,7 @@ module.exports = { }, ], }, - plugins: ['babel', 'emotion', 'cypress'], + plugins: ['babel', '@emotion', 'cypress'], settings: { react: { version: 'detect', diff --git a/package.json b/package.json index dda8354d..4b094f22 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "@babel/preset-typescript": "^7.10.4", "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", + "@emotion/eslint-plugin": "^11.0.0", "@octokit/rest": "^16.28.7", "@storybook/addon-actions": "^5.3.6", "@storybook/addon-links": "^5.3.6", @@ -128,7 +129,6 @@ "dotenv": "^8.0.0", "eslint": "^7.0.0", "eslint-plugin-cypress": "^2.6.0", - "eslint-plugin-emotion": "^10.0.7", "eslint-plugin-import": "^2.18.2", "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-react": "^7.17.0", diff --git a/packages/netlify-cms-default-exports/src/index.js b/packages/netlify-cms-default-exports/src/index.js index 3c5fe878..d1e2cbdc 100644 --- a/packages/netlify-cms-default-exports/src/index.js +++ b/packages/netlify-cms-default-exports/src/index.js @@ -1,3 +1,4 @@ +// eslint-disable-next-line @emotion/no-vanilla import css from '@emotion/css'; import { withEmotionCache, diff --git a/setupTestFramework.js b/setupTestFramework.js index b012fda8..62f0a0d8 100644 --- a/setupTestFramework.js +++ b/setupTestFramework.js @@ -1,4 +1,4 @@ -/* eslint-disable emotion/no-vanilla */ +/* eslint-disable @emotion/no-vanilla */ import '@testing-library/jest-dom/extend-expect'; import fetch from 'node-fetch'; diff --git a/yarn.lock b/yarn.lock index 62c7494d..46adb462 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1287,6 +1287,11 @@ "@emotion/utils" "0.11.3" babel-plugin-emotion "^10.0.27" +"@emotion/eslint-plugin@^11.0.0": + version "11.0.0" + resolved "https://registry.yarnpkg.com/@emotion/eslint-plugin/-/eslint-plugin-11.0.0.tgz#7666b750df62dc33a93bb1e09086f1caaecadc6f" + integrity sha512-V5w/LgV61xta+U6LKht3WQqfjTLueU2mh1aRTcK5OfkRhZ4OZFE0Inq/oVwLCq5g3Hzoaq27PRm+Tk9W18QScw== + "@emotion/hash@0.8.0": version "0.8.0" resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413" @@ -7816,11 +7821,6 @@ eslint-plugin-cypress@^2.6.0: dependencies: globals "^11.12.0" -eslint-plugin-emotion@^10.0.7: - version "10.0.27" - resolved "https://registry.yarnpkg.com/eslint-plugin-emotion/-/eslint-plugin-emotion-10.0.27.tgz#577a4265cc679f7bb826437a92fb9d709928e0a7" - integrity sha512-0IG9KWmyQTAWZNM4WoGjFbdre1Xq6uMp2jYOSHvh3ZNcDfOjOLXeH3ky1MuWZlbWIHxz/Ed5DMGlJAeKnd26VA== - eslint-plugin-import@^2.18.2: version "2.22.1" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz#0896c7e6a0cf44109a2d97b95903c2bb689d7702"