File tree 9 files changed +23
-17
lines changed
9 files changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,20 @@ import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommende
4
4
5
5
const compat = new FlatCompat ( )
6
6
7
- export default antfu ( { } , ...compat . config ( {
7
+ export default antfu ( {
8
+ rules : {
9
+ 'import/order' : 'off' ,
10
+ 'tailwindcss/migration-from-tailwind-2' : 'off' ,
11
+ 'tailwindcss/no-custom-classname' : 'off' ,
12
+ } ,
13
+ } , ...compat . config ( {
8
14
extends : [
9
15
'plugin:tailwindcss/recommended' ,
10
16
'plugin:react-hooks/recommended' ,
11
17
] ,
12
- rules : {
13
- 'tailwindcss/no-custom-classname' : 'off' ,
14
- 'tailwindcss/migration-from-tailwind-2' : 'off' ,
15
- } ,
16
18
ignorePatterns : [
17
19
'src/components/ui/*' ,
18
20
'src/lib/utils.ts' ,
21
+ 'tailwind.config.js' ,
19
22
] ,
20
- } ) ,
21
- perfectionistNatural ,
22
- )
23
+ } ) , perfectionistNatural )
Original file line number Diff line number Diff line change 1
1
export default {
2
2
plugins : {
3
- tailwindcss : { } ,
4
3
autoprefixer : { } ,
4
+ tailwindcss : { } ,
5
5
} ,
6
6
}
Original file line number Diff line number Diff line change 1
1
export default defineBackground ( ( ) => {
2
+ // eslint-disable-next-line no-console
2
3
console . log ( 'Hello background!' , { id : browser . runtime . id } )
3
4
} )
Original file line number Diff line number Diff line change 1
1
// Integrated - Vanilla
2
2
// More: https://wxt.dev/guide/content-script-ui.html
3
3
export default defineContentScript ( {
4
- matches : [ '<all_urls>' ] ,
5
-
6
4
main ( ctx ) {
7
5
const ui = createIntegratedUi ( ctx , {
8
- position : 'inline' ,
9
6
onMount : ( container ) => {
10
7
// Edit dom: Append children to the container
11
8
const app = document . createElement ( 'p' )
@@ -16,8 +13,11 @@ export default defineContentScript({
16
13
// eslint-disable-next-line no-console
17
14
console . log ( 'content script' )
18
15
} ,
16
+ position : 'inline' ,
19
17
} )
20
18
21
19
ui . mount ( )
22
20
} ,
21
+
22
+ matches : [ '<all_urls>' ] ,
23
23
} )
Original file line number Diff line number Diff line change
1
+ import '@/entrypoints/style.css'
1
2
import React from 'react'
2
3
import ReactDOM from 'react-dom/client'
4
+
3
5
import App from './App.tsx'
4
- import '@/entrypoints/style.css'
5
6
6
7
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
8
< React . StrictMode >
Original file line number Diff line number Diff line change
1
+ import '@/entrypoints/style.css'
1
2
import React from 'react'
2
3
import ReactDOM from 'react-dom/client'
4
+
3
5
import App from './App.tsx'
4
- import '@/entrypoints/style.css'
5
6
6
7
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
8
< React . StrictMode >
Original file line number Diff line number Diff line change
1
+ import '@/entrypoints/style.css'
1
2
import React from 'react'
2
3
import ReactDOM from 'react-dom/client'
4
+
3
5
import App from './App.tsx'
4
- import '@/entrypoints/style.css'
5
6
6
7
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
8
< React . StrictMode >
Original file line number Diff line number Diff line change
1
+ import '@/entrypoints/style.css'
1
2
import React from 'react'
2
3
import ReactDOM from 'react-dom/client'
4
+
3
5
import App from './App.tsx'
4
- import '@/entrypoints/style.css'
5
6
6
7
ReactDOM . createRoot ( document . getElementById ( 'root' ) ! ) . render (
7
8
< React . StrictMode >
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ export default defineConfig({
5
5
manifest : {
6
6
permissions : [ ] ,
7
7
} ,
8
- srcDir : 'src' ,
9
8
modules : [ '@wxt-dev/module-react' ] ,
9
+ srcDir : 'src' ,
10
10
} )
You can’t perform that action at this time.
0 commit comments