feat: ESLint configuration
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<NuxtRouteAnnouncer />
|
<NuxtRouteAnnouncer />
|
||||||
<NuxtLoadingIndicator />
|
<NuxtLoadingIndicator />
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
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
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
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": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
"dev": "nuxt dev --host 0.0.0.0",
|
"dev": "nuxt dev --host 0.0.0.0",
|
||||||
|
"lint": "eslint --fix .",
|
||||||
"postinstall": "pnpm --sequential /postinstall:.*/",
|
"postinstall": "pnpm --sequential /postinstall:.*/",
|
||||||
"postinstall:nuxt": "nuxt prepare",
|
"postinstall:nuxt": "nuxt prepare",
|
||||||
"preview": "nuxt preview",
|
"preview": "nuxt preview",
|
||||||
"release": "changelogen --release --push"
|
"release": "pnpm lint && changelogen --release --push"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "^4.2.2",
|
"nuxt": "^4.2.2",
|
||||||
@@ -18,7 +19,9 @@
|
|||||||
"vue-router": "^4.6.4"
|
"vue-router": "^4.6.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"changelogen": "^0.6.2"
|
"@nuxt/eslint": "^1.12.1",
|
||||||
|
"changelogen": "^0.6.2",
|
||||||
|
"eslint": "^9.39.2"
|
||||||
},
|
},
|
||||||
"changelog": {
|
"changelog": {
|
||||||
"types": {
|
"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