Open jozef-slezak opened 3 years ago
@msvoro, prosim pories aj tieto WARNINGs, aby netlify pull req preview nenadaval
1:47:16 PM: Treating warnings as errors because process.env.CI = true.
1:47:16 PM: Most CI servers set it automatically.
1:47:16 PM:
1:47:16 PM: Failed to compile.
1:47:16 PM:
1:47:16 PM: src/theme/shadows.ts
1:47:16 PM: Line 1:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
1:47:16 PM: src/theme/typography.ts
1:47:16 PM: Line 1:1: Assign object to a variable before exporting as module default import/no-anonymous-default-export
1:47:16 PM: src/utils/getInitials.ts
1:47:16 PM: Line 1:1: Assign arrow function to a variable before exporting as module default import/no-anonymous-default-export
1:47:16 PM: src/views/customer/CustomerListView/UpdateCustomer.tsx
1:47:16 PM: Line 34:10: 'state' is assigned a value but never used @typescript-eslint/no-unused-vars
1:47:16 PM: Line 44:6: React Hook React.useCallback has missing dependencies: 'customer?.email', 'customer?.name', 'customer?.phone', 'handleClose', 'newEmail', 'newName', and 'newPhoneNumber'. Either include them or remove the dependency array. If 'handleClose' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
1:47:16 PM: Line 47:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
1:47:16 PM: Line 48:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
1:47:16 PM: Line 49:5: React Hook React.useCallback has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked react-hooks/exhaustive-deps
1:47:16 PM: src/views/customer/CustomerListView/data.tsx
1:47:16 PM: Line 3:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
1:47:16 PM: src/views/customer/CustomerListView/index.tsx
1:47:16 PM: Line 26:18: '_reexecuteQuery1' is assigned a value but never used @typescript-eslint/no-unused-vars
1:47:16 PM: src/views/product/ProductListView/data.tsx
1:47:16 PM: Line 3:1: Assign array to a variable before exporting as module default import/no-anonymous-default-export
1:47:16 PM: src/views/test/GeneratedCustomersTable.tsx
1:47:16 PM: Line 2:28: 'DataGrid' is defined but never used @typescript-eslint/no-unused-vars
1:47:16 PM: Line 6:15: 'columns' is assigned a value but never used @typescript-eslint/no-unused-vars
1:47:16 PM: error Command failed with exit code 1.
1:47:16 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1:47:16 PM:
I have setup netlify to preview builds for example-material-ui and it is failing due to following compilation error: