feat: ESLint configuration
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<NuxtRouteAnnouncer />
|
||||
<NuxtLoadingIndicator />
|
||||
<NuxtLayout>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</div>
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
<div id="layout-default">
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
<div id="page-node-from-uri">
|
||||
<h1>Moonshine</h1>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
8
wp-content/themes/moonshine/eslint.config.mjs
Normal file
8
wp-content/themes/moonshine/eslint.config.mjs
Normal file
@@ -0,0 +1,8 @@
|
||||
// @ts-check
|
||||
import withNuxt from "./.nuxt/eslint.config.mjs";
|
||||
|
||||
export default withNuxt({ rules: {
|
||||
"vue/max-attributes-per-line": "off",
|
||||
"vue/no-v-html": "off",
|
||||
} },
|
||||
);
|
||||
@@ -1,5 +1,24 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: true }
|
||||
})
|
||||
|
||||
modules: [
|
||||
"@nuxt/eslint",
|
||||
],
|
||||
|
||||
devtools: { enabled: true },
|
||||
|
||||
compatibilityDate: "2026-01-01",
|
||||
|
||||
eslint: {
|
||||
config: {
|
||||
stylistic: {
|
||||
arrowParens: true,
|
||||
commaDangle: "always-multiline",
|
||||
indent: 2,
|
||||
quotes: "double",
|
||||
semi: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev --host 0.0.0.0",
|
||||
"lint": "eslint --fix .",
|
||||
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||
"postinstall:nuxt": "nuxt prepare",
|
||||
"preview": "nuxt preview",
|
||||
"release": "changelogen --release --push"
|
||||
"release": "pnpm lint && changelogen --release --push"
|
||||
},
|
||||
"dependencies": {
|
||||
"nuxt": "^4.2.2",
|
||||
@@ -18,7 +19,9 @@
|
||||
"vue-router": "^4.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"changelogen": "^0.6.2"
|
||||
"@nuxt/eslint": "^1.12.1",
|
||||
"changelogen": "^0.6.2",
|
||||
"eslint": "^9.39.2"
|
||||
},
|
||||
"changelog": {
|
||||
"types": {
|
||||
|
||||
1738
wp-content/themes/moonshine/pnpm-lock.yaml
generated
1738
wp-content/themes/moonshine/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user