Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #773 from mirumee/fix/prettier-gql
Browse files Browse the repository at this point in the history
Do not use prettier on generated files
  • Loading branch information
dominik-zeglen authored Jun 15, 2020
2 parents 18bf394 + 9554b8c commit 4348639
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
!.jest
!.linguirc
!.prettierrc
!.prettierignore
dist
node_modules
src/locales/_build
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gqlTypes
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Use sdk as a standalone package - #724 by @dominik-zeglen
- Fix CartRow tests - #749 by @dominik-zeglen
- Add prettier to precommit - #766 by @dominik-zeglen
- Do not use prettier on generated files - #773 by @dominik-zeglen

## 2.10.2

Expand Down
4 changes: 1 addition & 3 deletions src/components/Footer/gqlTypes/SecondaryMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ export interface SecondaryMenu_shop_navigation_secondary_items {
url: string | null;
collection: SecondaryMenu_shop_navigation_secondary_items_collection | null;
page: SecondaryMenu_shop_navigation_secondary_items_page | null;
children:
| (SecondaryMenu_shop_navigation_secondary_items_children | null)[]
| null;
children: (SecondaryMenu_shop_navigation_secondary_items_children | null)[] | null;
}

export interface SecondaryMenu_shop_navigation_secondary {
Expand Down
4 changes: 1 addition & 3 deletions src/components/MainMenu/gqlTypes/MainMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ export interface MainMenu_shop_navigation_main_items_children {
collection: MainMenu_shop_navigation_main_items_children_collection | null;
page: MainMenu_shop_navigation_main_items_children_page | null;
parent: MainMenu_shop_navigation_main_items_children_parent | null;
children:
| (MainMenu_shop_navigation_main_items_children_children | null)[]
| null;
children: (MainMenu_shop_navigation_main_items_children_children | null)[] | null;
}

export interface MainMenu_shop_navigation_main_items {
Expand Down
7 changes: 2 additions & 5 deletions src/views/Category/gqlTypes/Category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import {
AttributeInput,
ProductOrder,
} from "./../../../../gqlTypes/globalTypes";
import { AttributeInput, ProductOrder } from "./../../../../gqlTypes/globalTypes";

// ====================================================
// GraphQL query operation: Category
Expand Down Expand Up @@ -388,7 +385,7 @@ export interface Category {
*/
products: Category_products | null;
/**
* Look up a category by ID.
* Look up a category by ID or slug.
*/
category: Category_category | null;
/**
Expand Down
5 changes: 1 addition & 4 deletions src/views/Collection/gqlTypes/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import {
AttributeInput,
ProductOrder,
} from "./../../../../gqlTypes/globalTypes";
import { AttributeInput, ProductOrder } from "./../../../../gqlTypes/globalTypes";

// ====================================================
// GraphQL query operation: Collection
Expand Down
5 changes: 1 addition & 4 deletions src/views/Search/gqlTypes/SearchProducts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.

import {
AttributeInput,
ProductOrder,
} from "./../../../../gqlTypes/globalTypes";
import { AttributeInput, ProductOrder } from "./../../../../gqlTypes/globalTypes";

// ====================================================
// GraphQL query operation: SearchProducts
Expand Down

0 comments on commit 4348639

Please sign in to comment.