chore(deps): update dependency eslint to v9
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
graphql/generated
|
||||
node_modules
|
||||
@@ -1,38 +0,0 @@
|
||||
module.exports = {
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
parser: '@typescript-eslint/parser',
|
||||
sourceType: 'module',
|
||||
},
|
||||
extends: ['@nuxtjs/eslint-config-typescript', 'eslint:recommended', 'plugin:vue/vue3-recommended'],
|
||||
rules: {
|
||||
'vue/valid-v-slot': 'off',
|
||||
'arrow-parens': ['error', 'always'],
|
||||
'comma-dangle': ['error', 'always-multiline'],
|
||||
'space-before-function-paren': ['error', {
|
||||
anonymous: 'never',
|
||||
named: 'never',
|
||||
asyncArrow: 'always',
|
||||
}],
|
||||
'@typescript-eslint/consistent-type-imports': ['error', {
|
||||
fixStyle: 'inline-type-imports',
|
||||
}],
|
||||
},
|
||||
plugins: [],
|
||||
ignorePatterns: ['nuxt.config.ts'],
|
||||
overrides: [
|
||||
{
|
||||
files: ['pages/**/*.vue', 'layouts/*.vue'],
|
||||
rules: {
|
||||
'vue/multi-word-component-names': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['graphql/generated/*.ts'],
|
||||
rules: {
|
||||
'no-use-before-define': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import withNuxt from './.nuxt/eslint.config.mjs'
|
||||
|
||||
export default withNuxt(
|
||||
)
|
||||
+1
-1
@@ -35,7 +35,7 @@ export default defineNuxtConfig({
|
||||
)
|
||||
})
|
||||
},
|
||||
'@nuxtjs/eslint-module',
|
||||
'@nuxt/eslint',
|
||||
'@pinia/nuxt',
|
||||
'@pinia-plugin-persistedstate/nuxt',
|
||||
'@nuxtjs/i18n',
|
||||
|
||||
+5
-3
@@ -12,10 +12,10 @@
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
"lint:js": "eslint --ext \".ts,.js,.cjs,.vue\" --ignore-path .gitignore .",
|
||||
"lint:js": "eslint .",
|
||||
"lint:style": "stylelint \"**/*.{css,scss,sass,html,vue}\" --ignore-path .gitignore",
|
||||
"lint": "yarn lint:js && yarn lint:style",
|
||||
"lintfix": "yarn lint:js --fix && yarn lint:style --fix",
|
||||
"lintfix": "eslint --fix . && yarn lint:style --fix",
|
||||
"codegen": "graphql-codegen && eslint --ext \".ts\" --ignore-path .gitignore graphql/generated/operations.ts --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -27,6 +27,7 @@
|
||||
"@graphql-codegen/typescript-operations": "^4.2.0",
|
||||
"@graphql-codegen/typescript-vue-apollo": "^4.1.0",
|
||||
"@nuxt/devtools": "^1.0.8",
|
||||
"@nuxt/eslint": "^0.3.13",
|
||||
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
||||
"@nuxtjs/eslint-module": "^4.1.0",
|
||||
"@nuxtjs/i18n": "^8.1.1",
|
||||
@@ -34,7 +35,7 @@
|
||||
"@typescript-eslint/parser": "^7.0.2",
|
||||
"@vue/test-utils": "^2.4.4",
|
||||
"esbuild": "^0.21.0",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint": "^9.3.0",
|
||||
"eslint-plugin-nuxt": "^4.0.0",
|
||||
"eslint-plugin-vue": "^9.22.0",
|
||||
"nuxt": "^3.10.3",
|
||||
@@ -44,6 +45,7 @@
|
||||
"stylelint-config-recommended-vue": "^1.5.0",
|
||||
"stylelint-config-standard": "^36.0.0",
|
||||
"typescript": "^5.3.3",
|
||||
"typescript-eslint": "8.0.0-alpha.20",
|
||||
"vite-plugin-vuetify": "^2.0.1",
|
||||
"vue": "^3.4.19",
|
||||
"vue-router": "^4.3.0",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { gql as apolloGql } from '@apollo/client/core'
|
||||
import { markRaw } from 'vue'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export function gql(literals: string | readonly string[], ...args: any[]) {
|
||||
return markRaw(apolloGql(literals, ...args))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user