44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
|
|
|
|
export default createConfigForNuxt({
|
|
features: {
|
|
typescript: true,
|
|
vue: true,
|
|
},
|
|
dirs: {
|
|
src: ['layers', 'app'],
|
|
},
|
|
ignores: ['temp/**/*'],
|
|
}).append({
|
|
rules: {
|
|
// 포맷팅 관련 규칙 비활성화 (Prettier가 담당)
|
|
'prettier/prettier': 'off',
|
|
|
|
// 타입 관련 규칙 완화
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
// Vue 관련 규칙 완화
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-v-html': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/require-explicit-emits': 'off',
|
|
'vue/no-multiple-template-root': 'off',
|
|
'vue/no-required-prop-with-default': 'off',
|
|
'vue/require-directive': 'off',
|
|
|
|
// 일반 규칙 (품질/버그 탐지)
|
|
'no-console': 'warn',
|
|
'no-debugger': 'error',
|
|
'no-unused-vars': 'off',
|
|
'prefer-const': 'warn',
|
|
'no-var': 'error',
|
|
},
|
|
})
|