Skip to content

Commit 3b29315

Browse files
codebender828pi0
authored andcommitted
feat: suport nuxt3
1 parent a97e173 commit 3b29315

File tree

26 files changed

+4419
-9790
lines changed

26 files changed

+4419
-9790
lines changed

β€Ž.eslintrcβ€Ž

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"extends": [
33
"@nuxtjs/eslint-config-typescript"
4-
]
4+
],
5+
"rules": {
6+
"@typescript-eslint/no-unused-vars": [
7+
"error"
8+
]
9+
}
510
}

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: yarn lint
4646

4747
- name: Test
48-
run: yarn jest
48+
run: yarn test
4949

5050
- name: Coverage
5151
uses: codecov/codecov-action@master

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
.DS_Store
88
coverage
99
dist
10+
.idea

β€Ž.npmrcβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

β€Ž.nuxtrcβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports.autoImport=true
2+
typescript.includeWorkspace=true

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,13 @@ yarn add @nuxtjs/emotion # or npm install @nuxtjs/emotion
4040
```js
4141
export default {
4242
modules: [
43-
// Simple usage
4443
'@nuxtjs/emotion',
45-
46-
// With options
47-
['@nuxtjs/emotion', { /* module options */ }]
4844
]
4945
}
5046
```
5147

52-
### Using top level options
53-
54-
```js
55-
export default {
56-
modules: [
57-
'@nuxtjs/emotion'
58-
],
59-
emotion: {
60-
/* module options */
61-
}
62-
}
63-
```
64-
65-
## Options
66-
67-
### `ssr`
68-
69-
- Default: `'critical'`
70-
71-
Can be `'critical'` or `'render'` or `false`.
72-
73-
In the `critical` mode, module automatically injects `window.$emotionSSRIds` for hydration.
74-
75-
### `babel`
76-
77-
- Default: `{ inline: true }`
78-
79-
Options for [babel-plugin-emotion](https://emotion.sh/docs/babel-plugin-emotion) integration.
80-
81-
Can be disabled by setting to `false`.
48+
## Nuxt 2
49+
Nuxt 2 is supported with `@nuxtjs/[email protected]`, Documentation is on https://github.com/nuxt-community/emotion-module/tree/v0 and the code on the [`v0`](https://github.com/nuxt-community/emotion-module/tree/v0) branch.
8250

8351
## Development
8452

β€Žexample/assets/styles.jsβ€Ž

Lines changed: 0 additions & 35 deletions
This file was deleted.

β€Žexample/components/logo.vueβ€Ž

Lines changed: 0 additions & 28 deletions
This file was deleted.

β€Žexample/nuxt.config.jsβ€Ž

Lines changed: 0 additions & 16 deletions
This file was deleted.

β€Žexample/pages/index.vueβ€Ž

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
Β (0)