Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import vue from '@lenne.tech/eslint-config-vue';

export default vue;
24,694 changes: 10,175 additions & 14,519 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
"dist"
],
"scripts": {
"reinit": "rm -rf node_modules && rm -rf package-lock.json && yes | npx nuxt cleanup && npm cache clean --force && npm i",
"reinit": "npx rimraf package-lock.json && npx nuxt cleanup && npx rimraf node_modules && npm cache clean --force && npm i",
"build": "nuxt-module-build build",
"dev": "nuxi dev playground/nuxt-app",
"dev:generate-types": "GENERATE_TYPES=1 nuxi dev playground/nuxt-app",
"dev:generate-types": "npx cross-env GENERATE_TYPES=1 nuxi dev playground/nuxt-app",
"dev:build": "nuxi build playground/nuxt-app",
"dev:prepare": "nuxt-module-build --stub && cd ./playground/nuxt-app && npm i && nuxi prepare",
"release": "standard-version && git push --follow-tags origin main",
"release:minor": "standard-version --release-as minor && git push --follow-tags origin main",
"release:major": "standard-version --release-as major && git push --follow-tags origin main",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "eslint '**/*.{ts,js,vue}'",
"lint:fix": "eslint '**/*.{ts,js,vue}' --fix",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand All @@ -38,7 +38,6 @@
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/client-preset": "4.5.1",
"@graphql-codegen/typescript": "4.1.2",
"@nuxt/kit": "3.14.1592",
"@pinia/nuxt": "0.9.0",
"gql-query-builder": "3.8.0",
"graphql": "16.10.0",
Expand All @@ -52,14 +51,13 @@
"vue": "3.5.13"
},
"devDependencies": {
"@lenne.tech/eslint-config-vue": "0.0.16",

"@lenne.tech/eslint-config-vue": "1.0.4",
"@nuxt/module-builder": "0.8.4",
"@nuxt/schema": "3.14.1592",
"@nuxt/schema": "3.15.1",
"@nuxt/test-utils": "3.15.1",
"@types/node": "22.10.2",
"eslint": "8.57.1",
"nuxt": "3.14.1592",
"prettier": "3.4.2",
"eslint": "9.17.0",
"standard-version": "9.5.0",
"typescript": "5.7.2",
"vitest": "2.1.8"
Expand Down
50 changes: 13 additions & 37 deletions playground/nuxt-app/src/base/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K]
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
export type Incremental<T> = { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never } | T;
/** All built-in and custom scalars, mapped to their actual values */
export interface Scalars {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
/** Any scalar type */
Any: { input: any; output: any; }
Any: { input: any; output: any };
Boolean: { input: boolean; output: boolean };
/** Date custom scalar type */
Date: { input: any; output: any; }
Date: { input: any; output: any };
Float: { input: number; output: number };
ID: { input: string; output: string };
Int: { input: number; output: number };
/** JSON scalar type. Information on the exact schema of the JSON object is contained in the description of the field. */
JSON: { input: any; output: any; }
JSON: { input: any; output: any };
String: { input: string; output: string };
/** The `Upload` scalar type represents a file upload. */
Upload: { input: any; output: any; }
Upload: { input: any; output: any };
}

/** Authentication data */
Expand Down Expand Up @@ -78,7 +78,7 @@ export enum ComparisonOperatorEnum {
LTE = 'LTE',
NE = 'NE',
NIN = 'NIN',
REGEX = 'REGEX'
REGEX = 'REGEX',
}

/** CoreAuth */
Expand Down Expand Up @@ -175,7 +175,7 @@ export interface FindAndCountUsersResult {
export enum LogicalOperatorEnum {
AND = 'AND',
NOR = 'NOR',
OR = 'OR'
OR = 'OR',
}

/** Metadata of API */
Expand Down Expand Up @@ -222,80 +222,65 @@ export interface Mutation {
verifyUser: Scalars['Boolean']['output'];
}


export interface MutationCreateTodoArgs {
input: TodoCreateInput;
}


export interface MutationCreateUserArgs {
input: UserCreateInput;
}


export interface MutationDeleteFileArgs {
filename: Scalars['String']['input'];
}


export interface MutationDeleteTodoArgs {
id: Scalars['String']['input'];
}


export interface MutationDeleteUserArgs {
id: Scalars['String']['input'];
}


export interface MutationErrorTodoArgs {
id: Scalars['String']['input'];
}


export interface MutationLogoutArgs {
allDevices?: InputMaybe<Scalars['Boolean']['input']>;
}


export interface MutationResetPasswordArgs {
password: Scalars['String']['input'];
token: Scalars['String']['input'];
}


export interface MutationSignInArgs {
input: AuthSignInInput;
}


export interface MutationSignUpArgs {
input: AuthSignUpInput;
}


export interface MutationUpdateTodoArgs {
id: Scalars['String']['input'];
input: TodoInput;
}


export interface MutationUpdateUserArgs {
id: Scalars['String']['input'];
input: UserInput;
}


export interface MutationUploadFileArgs {
file: Scalars['Upload']['input'];
}


export interface MutationUploadFilesArgs {
files: Array<Scalars['Upload']['input']>;
}


export interface MutationVerifyUserArgs {
token: Scalars['String']['input'];
}
Expand Down Expand Up @@ -324,7 +309,6 @@ export interface Query {
requestPasswordResetMail: Scalars['Boolean']['output'];
}


export interface QueryFindAndCountTodosArgs {
filter?: InputMaybe<FilterInput>;
limit?: InputMaybe<Scalars['Int']['input']>;
Expand All @@ -335,7 +319,6 @@ export interface QueryFindAndCountTodosArgs {
take?: InputMaybe<Scalars['Int']['input']>;
}


export interface QueryFindAndCountUsersArgs {
filter?: InputMaybe<FilterInput>;
limit?: InputMaybe<Scalars['Int']['input']>;
Expand All @@ -346,7 +329,6 @@ export interface QueryFindAndCountUsersArgs {
take?: InputMaybe<Scalars['Int']['input']>;
}


export interface QueryFindTodosArgs {
filter?: InputMaybe<FilterInput>;
limit?: InputMaybe<Scalars['Int']['input']>;
Expand All @@ -357,7 +339,6 @@ export interface QueryFindTodosArgs {
take?: InputMaybe<Scalars['Int']['input']>;
}


export interface QueryFindUsersArgs {
filter?: InputMaybe<FilterInput>;
limit?: InputMaybe<Scalars['Int']['input']>;
Expand All @@ -368,27 +349,22 @@ export interface QueryFindUsersArgs {
take?: InputMaybe<Scalars['Int']['input']>;
}


export interface QueryGetFileInfoArgs {
filename: Scalars['String']['input'];
}


export interface QueryGetTodoArgs {
id: Scalars['String']['input'];
}


export interface QueryGetUserArgs {
id: Scalars['String']['input'];
}


export interface QueryGetVerifiedStateArgs {
token: Scalars['String']['input'];
}


export interface QueryRequestPasswordResetMailArgs {
email: Scalars['String']['input'];
}
Expand Down Expand Up @@ -422,7 +398,7 @@ export interface SortInput {
/** SortInput order of items */
export enum SortOrderEnum {
ASC = 'ASC',
DESC = 'DESC'
DESC = 'DESC',
}

export interface Subscription {
Expand Down
Loading