initial commit
This commit is contained in:
48
eslint.config.js
Normal file
48
eslint.config.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
|
||||
|
||||
export default createConfigForNuxt({
|
||||
features: {
|
||||
tooling: true,
|
||||
stylistic: true,
|
||||
},
|
||||
}).prepend({
|
||||
files: ['**/*.{js,vue}'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
defineAppConfig: 'readonly',
|
||||
defineNuxtConfig: 'readonly',
|
||||
useFetch: 'readonly',
|
||||
defineEventHandler: 'readonly',
|
||||
useAsyncData: 'readonly',
|
||||
defineNuxtRouteMiddleware: 'readonly',
|
||||
defineNuxtPlugin: 'readonly',
|
||||
useUser: 'readonly',
|
||||
useRoute: 'readonly',
|
||||
useRouter: 'readonly',
|
||||
navigateTo: 'readonly',
|
||||
createError: 'readonly',
|
||||
clearNuxtData: 'readonly',
|
||||
ref: 'readonly',
|
||||
computed: 'readonly',
|
||||
onMounted: 'readonly',
|
||||
onBeforeUnmount: 'readonly',
|
||||
nextTick: 'readonly',
|
||||
},
|
||||
},
|
||||
}, {
|
||||
files: ['server/**/*.js'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
defineEventHandler: 'readonly',
|
||||
createError: 'readonly',
|
||||
readBody: 'readonly',
|
||||
setResponseStatus: 'readonly',
|
||||
getCookie: 'readonly',
|
||||
setCookie: 'readonly',
|
||||
deleteCookie: 'readonly',
|
||||
getQuery: 'readonly',
|
||||
getRequestURL: 'readonly',
|
||||
sendRedirect: 'readonly',
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user