Skip to content

Commit

Permalink
Fixing eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zendranm committed May 24, 2024
1 parent eac02ec commit 7796d54
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/uniforms-antd/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-antd';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-antd';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-bootstrap3/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-bootstrap3';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-bootstrap3';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-bootstrap4/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-bootstrap4';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-bootstrap4';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-bootstrap5/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-bootstrap5';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-bootstrap5';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
1 change: 0 additions & 1 deletion packages/uniforms-bridge-zod/src/ZodBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ export default class ZodBridge<T extends ZodRawShape> extends Bridge {
getValidator() {
return (model: UnknownObject) => {
// TODO: What about async schemas?
// eslint-disable-next-line react/no-this-in-sfc
const result = this.schema.safeParse(model);
return result.success ? null : result.error;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import FormHelperText from '@material-ui/core/FormHelperText';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { DateField } from 'uniforms-material';
import { render } from 'uniforms/__suites__';
import { DateField } from 'uniforms-material';

import createContext from './_createContext';
import mount from './_mount';
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/ErrorField.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { ErrorField } from 'uniforms-material';
import { renderWithZod } from 'uniforms/__suites__';
import { ErrorField } from 'uniforms-material';
import z from 'zod';

describe('@RTL - ErrorField tests', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/ErrorsField.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { ErrorsField } from 'uniforms-material';
import { renderWithZod } from 'uniforms/__suites__';
import { ErrorsField } from 'uniforms-material';
import z from 'zod';

describe('@RTL - ErrorsField tests', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/NestField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import FormLabel from '@material-ui/core/FormLabel';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { NestField } from 'uniforms-material';
import { render } from 'uniforms/__suites__';
import { NestField } from 'uniforms-material';

import createContext from './_createContext';
import mount from './_mount';
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/SelectField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import TextField from '@material-ui/core/TextField';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { SelectField } from 'uniforms-material';
import { render } from 'uniforms/__suites__';
import { SelectField } from 'uniforms-material';

import createContext from './_createContext';
import mount from './_mount';
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-material/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import createMuiTheme, {
} from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React, { PropsWithChildren } from 'react';
import * as theme from 'uniforms-material';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-material';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-mui/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-mui';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-mui';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-semantic/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-semantic';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-semantic';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion packages/uniforms-unstyled/__tests__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as theme from 'uniforms-unstyled';
import * as suites from 'uniforms/__suites__';
import * as theme from 'uniforms-unstyled';

it('exports everything', () => {
expect(theme).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion website/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Link from '@docusaurus/Link';
import classNames from 'classnames';
import React, { ComponentType } from 'react';

import styles from '../index.module.css';
import { Oval } from './Oval';
import styles from '../index.module.css';

export type BadgeProps = {
border: number;
Expand Down
2 changes: 1 addition & 1 deletion website/components/ExampleCustomizer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { ComponentType } from 'react';
import { Box, Code, Database } from 'react-feather';

import { themeContext } from '../lib/universal';
import { CodeSection } from './CodeSection';
import { FormWrapper } from './FormWrapper';
import { TogglerTabs } from './TogglerTabs';
import { themeContext } from '../lib/universal';

const tabs = [
{ name: 'Semantic', value: 'semantic' as const },
Expand Down
2 changes: 1 addition & 1 deletion website/components/FormWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { ReactNode, useContext } from 'react';

import { PlaygroundWrap } from './Playground';
import styles from '../index.module.css';
import { useFrameAutoResize } from '../lib/autoresize';
import { themeContext } from '../lib/universal';
import { PlaygroundWrap } from './Playground';

export type FormWrapperProps = {
children: ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions website/components/TogglerTabs.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { ReactNode, useState } from 'react';

import styles from '../index.module.css';
import { useTabs } from '../lib/tabs';
import { TabsHeader, TabsItem } from './Tabs';
import { TogglerHeader, TogglerItem } from './Toggler';
import styles from '../index.module.css';
import { useTabs } from '../lib/tabs';

export type TogglerTabsProps<T extends TabsItem, U extends TogglerItem> = {
children: (args: { tab: T; toggle: U }) => ReactNode;
Expand Down
2 changes: 1 addition & 1 deletion website/components/TutorialForm.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { ReactNode } from 'react';

import { themeContext } from '../lib/universal';
import { FormWrapper } from './FormWrapper';
import { Tabs } from './Tabs';
import { themeContext } from '../lib/universal';

const tabs = [
{ name: 'Semantic', value: 'semantic' as const },
Expand Down
2 changes: 1 addition & 1 deletion website/pages-parts/LandingPage/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import classNames from 'classnames';
import React from 'react';

import styles from '../../index.module.css';
import { ShowcaseCard } from './ShowcaseCard';
import styles from '../../index.module.css';

export function Footer() {
const context = useDocusaurusContext();
Expand Down
2 changes: 1 addition & 1 deletion website/pages-parts/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import classNames from 'classnames';
import React from 'react';

import styles from '../../index.module.css';
import { CommercialServices } from './CommercialServices';
import { Comparison } from './Comparison';
import { Discussions } from './Discussions';
Expand All @@ -13,6 +12,7 @@ import { OpenSource } from './OpenSource';
import { Testimonials } from './Testimonials';
import { WhoUses } from './WhoUses';
import { WhyUs } from './WhyUs';
import styles from '../../index.module.css';

export function LandingPage() {
return (
Expand Down

0 comments on commit 7796d54

Please sign in to comment.