Fix eslint setup
This commit is contained in:
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@@ -22,10 +22,5 @@
|
|||||||
"jsonc",
|
"jsonc",
|
||||||
"yaml",
|
"yaml",
|
||||||
"toml"
|
"toml"
|
||||||
],
|
]
|
||||||
|
|
||||||
// Use .config directory
|
|
||||||
"eslint.options": {
|
|
||||||
"overrideConfigFile": ".config/eslint.mjs"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
import { antfu as eslintConfig } from "@antfu/eslint-config";
|
import eslintConfig from "@antfu/eslint-config";
|
||||||
import withNuxt from "./.nuxt/eslint.config.mjs";
|
import nuxtConfig from "./.nuxt/eslint.config.mjs";
|
||||||
|
|
||||||
export default withNuxt(
|
export default eslintConfig(
|
||||||
eslintConfig(
|
|
||||||
// General
|
// General
|
||||||
{
|
{
|
||||||
typescript: true,
|
typescript: true,
|
||||||
@@ -39,6 +38,7 @@ export default withNuxt(
|
|||||||
rules: {
|
rules: {
|
||||||
"style/indent": "off"
|
"style/indent": "off"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
)
|
|
||||||
)
|
nuxtConfig()
|
||||||
|
);
|
||||||
|
@@ -56,11 +56,13 @@ export default defineNuxtConfig({
|
|||||||
envPrefix: ["VITE_", "TAURI_"],
|
envPrefix: ["VITE_", "TAURI_"],
|
||||||
server: {
|
server: {
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
hmr: mobile ? {
|
hmr: mobile
|
||||||
|
? {
|
||||||
protocol: "ws",
|
protocol: "ws",
|
||||||
host: await internalIpV4(),
|
host: await internalIpV4(),
|
||||||
port: 3001,
|
port: 3001
|
||||||
} : undefined,
|
}
|
||||||
|
: undefined,
|
||||||
watch: {
|
watch: {
|
||||||
ignored: ["**/src-tauri/**"]
|
ignored: ["**/src-tauri/**"]
|
||||||
}
|
}
|
||||||
@@ -81,8 +83,9 @@ export default defineNuxtConfig({
|
|||||||
routes: ["/"]
|
routes: ["/"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// sourcemap: {
|
eslint: {
|
||||||
// server: true,
|
config: {
|
||||||
// client: false
|
standalone: false
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
@@ -9,7 +9,12 @@ edition = "2021"
|
|||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "nuxtor_lib"
|
name = "nuxtor_lib"
|
||||||
crate-type = ["staticlib", "cdylib", "rlib", "lib"]
|
crate-type = [
|
||||||
|
"staticlib",
|
||||||
|
"cdylib",
|
||||||
|
"rlib",
|
||||||
|
"lib"
|
||||||
|
]
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "2.0.0-beta", features = [] }
|
tauri-build = { version = "2.0.0-beta", features = [] }
|
||||||
|
@@ -1 +1,34 @@
|
|||||||
{"main":{"identifier":"main","description":"Capabilities for the main window","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default",{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]}]}}
|
{
|
||||||
|
"main": {
|
||||||
|
"identifier": "main",
|
||||||
|
"description": "Capabilities for the main window",
|
||||||
|
"local": true,
|
||||||
|
"windows": [
|
||||||
|
"main"
|
||||||
|
],
|
||||||
|
"permissions": [
|
||||||
|
"path:default",
|
||||||
|
"event:default",
|
||||||
|
"window:default",
|
||||||
|
"app:default",
|
||||||
|
"resources:default",
|
||||||
|
"menu:default",
|
||||||
|
{
|
||||||
|
"identifier": "shell:allow-execute",
|
||||||
|
"allow": [
|
||||||
|
{
|
||||||
|
"args": [
|
||||||
|
"-c",
|
||||||
|
{
|
||||||
|
"validator": "\\S+"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"cmd": "sh",
|
||||||
|
"name": "exec-sh",
|
||||||
|
"sidecar": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const version = await getTauriVersion();
|
const version = await getTauriVersion();
|
||||||
|
|
||||||
const result = await Command.create('exec-sh', [
|
const result = await Command.create("exec-sh", [
|
||||||
'-c',
|
"-c",
|
||||||
"echo 'Hello World!'",
|
"echo 'Hello World!'"
|
||||||
]).execute();
|
]).execute();
|
||||||
</script>
|
</script>
|
Reference in New Issue
Block a user