feat: ci cd pipelien #1

Merged
Noel merged 18 commits from feat/ci_cd_pipelien into main 2026-10-18 14:31:27 +00:00
Showing only changes of commit e4ea5c3e7c - Show all commits
+30 -4
View File
@@ -1,8 +1,34 @@
import { withNuxt } from './.nuxt/eslint.config.mjs'
export default withNuxt({
// Your custom ESLint rules go here, e.g.:
// rules: {
// 'no-console': 'warn',
// },
// Files ESLint should never look at (generated code & build output)
ignores: [
'.nuxt/**',
'.output/**',
'node_modules/**',
'dist/**',
'.data/**',
],
rules: {
// ---------- general ----------
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
eqeqeq: ['error', 'always'],
'prefer-const': 'error',
'no-var': 'error',
'object-shorthand': ['warn', 'always'],
// ---------- vue ----------
// Keep components consistent and catch template bugs early
'vue/multi-word-component-names': 'off', // pages/index.vue etc. are fine
'vue/component-name-in-template-casing': ['warn', 'PascalCase'],
'vue/no-unused-refs': 'error',
'vue/prefer-true-attribute-shorthand': 'warn',
'vue/block-order': ['error', { order: ['script', 'template', 'style'] }],
'vue/no-v-html': 'warn', // XSS risk unless content is sanitized
// ---------- typescript-ish (via vue-tsc + nuxt defaults) ----------
'no-undef': 'off', // TS handles this; avoids false positives on Nuxt auto-imports
},
})