Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 8cb0daf

Browse files
committed
chore(emotion): linting for emotion imports
1 parent 1c4288f commit 8cb0daf

File tree

3 files changed

+45
-16
lines changed

3 files changed

+45
-16
lines changed

.eslintrc.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ module.exports = {
33
env: {
44
node: true
55
},
6-
plugins: ['testing-library'],
6+
plugins: [
7+
'testing-library',
8+
'@emotion'
9+
],
710
extends: [
811
'plugin:vue/essential',
912
'@vue/standard',
@@ -28,7 +31,8 @@ module.exports = {
2831
]
2932
}
3033
],
31-
'template-curly-spacing': 0
34+
'template-curly-spacing': 0,
35+
'@emotion/pkg-renaming': 'error'
3236
},
3337
parserOptions: {
3438
parser: 'babel-eslint'

package.json

+16-14
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
]
2121
},
2222
"scripts": {
23-
"postinstall": "yarn build && lerna link",
23+
"postinstall": "lerna link",
2424
"bootstrap": "lerna bootstrap --use-workspaces",
2525
"build:dev": "yarn workspace @chakra-ui/vue run rollup --config rollup.dev.config.js",
2626
"build": "yarn workspace @chakra-ui/vue build",
@@ -104,25 +104,37 @@
104104
"vue-template-compiler": "^2.6.11"
105105
},
106106
"devDependencies": {
107+
"@babel/cli": "^7.8.4",
107108
"@babel/core": "^7.9.0",
108109
"@babel/plugin-proposal-object-rest-spread": "^7.7.4",
109110
"@babel/plugin-transform-modules-commonjs": "^7.7.4",
110111
"@babel/plugin-transform-parameters": "^7.7.4",
111112
"@babel/preset-env": "^7.9.5",
113+
"@babel/runtime-corejs2": "^7.8.7",
112114
"@changesets/cli": "^2.7.1",
113115
"@commitlint/cli": "^8.2.0",
114116
"@commitlint/config-conventional": "^8.2.0",
115-
"@babel/cli": "^7.8.4",
116-
"@babel/runtime-corejs2": "^7.8.7",
117+
"@emotion/babel-plugin": "^11.1.2",
118+
"@emotion/eslint-plugin": "^11.0.0",
117119
"@nuxtjs/eslint-config": "^3.0.0",
118120
"@nuxtjs/eslint-module": "^1.0.0",
119121
"@nuxtjs/module-test-utils": "^1.6.1",
120122
"@testing-library/jest-dom": "^5.1.1",
121123
"@testing-library/user-event": "^10.0.0",
122124
"@testing-library/vue": "^4.1.0",
125+
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
126+
"@vue/babel-plugin-transform-vue-jsx": "^1.1.2",
127+
"@vue/babel-preset-app": "^4.1.1",
128+
"@vue/babel-preset-jsx": "^1.1.2",
129+
"@vue/cli-plugin-babel": "^3.11.0",
130+
"@vue/cli-plugin-eslint": "^3.11.0",
131+
"@vue/cli-plugin-pwa": "^3.11.0",
132+
"@vue/cli-plugin-unit-jest": "^3.11.0",
123133
"@vue/devtools": "^5.3.3",
124-
"babel-eslint": "^10.1.0",
134+
"@vue/eslint-config-standard": "^4.0.0",
135+
"@vue/test-utils": "1.0.0-beta.29",
125136
"babel-core": "7.0.0-bridge.0",
137+
"babel-eslint": "^10.1.0",
126138
"babel-helper-vue-jsx-merge-props": "^2.0.3",
127139
"babel-jest": "^23.6.0",
128140
"babel-loader": "^8.0.6",
@@ -155,16 +167,6 @@
155167
"rollup-plugin-vue": "^5.1.4",
156168
"styled-system": "^5.1.2",
157169
"v-scroll-lock": "^1.1.0",
158-
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
159-
"@vue/babel-plugin-transform-vue-jsx": "^1.1.2",
160-
"@vue/babel-preset-app": "^4.1.1",
161-
"@vue/babel-preset-jsx": "^1.1.2",
162-
"@vue/cli-plugin-babel": "^3.11.0",
163-
"@vue/cli-plugin-eslint": "^3.11.0",
164-
"@vue/cli-plugin-pwa": "^3.11.0",
165-
"@vue/cli-plugin-unit-jest": "^3.11.0",
166-
"@vue/eslint-config-standard": "^4.0.0",
167-
"@vue/test-utils": "1.0.0-beta.29",
168170
"vue-loader": "^15.7.1",
169171
"vue-lorem-ipsum": "^0.0.1",
170172
"watch": "^1.0.2"

yarn.lock

+23
Original file line numberDiff line numberDiff line change
@@ -1709,6 +1709,24 @@
17091709
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
17101710
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
17111711

1712+
"@chakra-ui/vue@latest":
1713+
version "0.6.6"
1714+
resolved "https://registry.yarnpkg.com/@chakra-ui/vue/-/vue-0.6.6.tgz#1c34797a509e396aa75a6e2b875eff81a4e5f6f8"
1715+
integrity sha512-Ss7+Ht0KW0RBfh4R2IjGPZ64Pjvc+oQFjezLhV0UTskiNHRHzgLKwKy6A8UzN7mcydGkjXpRvT6GGZvoGQe9ZQ==
1716+
dependencies:
1717+
"@popperjs/core" "^2.4.0"
1718+
"@styled-system/css" "^5.0.23"
1719+
animejs "^3.1.0"
1720+
aria-hidden "^1.1.1"
1721+
breadstick "^0.2.14"
1722+
color "^3.1.2"
1723+
focus-trap "^5.1.0"
1724+
focus-trap-vue "^0.0.4"
1725+
lodash-es "^4.17.15"
1726+
portal-vue "^2.1.6"
1727+
styled-system "^5.1.2"
1728+
v-scroll-lock "^1.1.0"
1729+
17121730
"@changesets/apply-release-plan@^3.0.1":
17131731
version "3.0.2"
17141732
resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-3.0.2.tgz#e8f77518f065181717cc998d60b9dcaeb7387870"
@@ -2118,6 +2136,11 @@
21182136
"@emotion/sheet" "^1.0.0"
21192137
"@emotion/utils" "^1.0.0"
21202138

2139+
"@emotion/eslint-plugin@^11.0.0":
2140+
version "11.0.0"
2141+
resolved "https://registry.yarnpkg.com/@emotion/eslint-plugin/-/eslint-plugin-11.0.0.tgz#7666b750df62dc33a93bb1e09086f1caaecadc6f"
2142+
integrity sha512-V5w/LgV61xta+U6LKht3WQqfjTLueU2mh1aRTcK5OfkRhZ4OZFE0Inq/oVwLCq5g3Hzoaq27PRm+Tk9W18QScw==
2143+
21212144
"@emotion/hash@0.8.0", "@emotion/hash@^0.8.0":
21222145
version "0.8.0"
21232146
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"

0 commit comments

Comments
 (0)