Skip to content

Commit 479ebd6

Browse files
committed
Suppress eslint errors.
1 parent 1f6197c commit 479ebd6

File tree

10 files changed

+115
-117
lines changed

10 files changed

+115
-117
lines changed

src/components/__tests__/input-test.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ describe('The <Input /> component', () => {
6868
});
6969

7070
// http://getbootstrap.com/css/#forms-help-text
71-
it('has an `aria-describedby` prop on the form control when help text is present', () => {});
72-
73-
it('has an `aria-invalid="true"` prop on the form control when validation has failed', () => {});
74-
75-
it('has an `aria-required="true"` prop on the form control when validation is required', () => {});
71+
//it('has an `aria-describedby` prop on the form control when help text is present', () => {});
72+
//it('has an `aria-invalid="true"` prop on the form control when validation has failed', () => {});
73+
//it('has an `aria-required="true"` prop on the form control when validation is required', () => {});
7674
});
7775

7876
describe('Input components do this', () => {
@@ -145,12 +143,12 @@ describe('The <Input /> component', () => {
145143
});
146144
});
147145

148-
describe('includes an `<InputGroup />` component when', () => {
149-
it('is triggered by an `addonBefore` prop', () => {});
150-
it('is triggered by an `addonAfter` prop', () => {});
151-
it('is triggered by an `buttonBefore` prop', () => {});
152-
it('is triggered by an `buttonAfter` prop', () => {});
153-
});
146+
//describe('includes an `<InputGroup />` component when', () => {
147+
// it('is triggered by an `addonBefore` prop', () => {});
148+
// it('is triggered by an `addonAfter` prop', () => {});
149+
// it('is triggered by an `buttonBefore` prop', () => {});
150+
// it('is triggered by an `buttonAfter` prop', () => {});
151+
//});
154152

155153
describe('for "hidden" type', () => {
156154
it('doesn’t render a label', () => {

src/components/component-common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {ClassValue} from 'classnames/types';
1+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
22
import {LayoutType, ComponentValue} from '../types';
33

44
export const componentDefaultProps = {
5-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
66
changeCallback: (name: string, value: ComponentValue): void => {},
77
elementWrapperClassName: '' as ClassValue,
88
errorMessages: [] as React.ReactNode[],
@@ -12,7 +12,7 @@ export const componentDefaultProps = {
1212
label: null as React.ReactNode,
1313
labelClassName: '' as ClassValue,
1414
layout: 'horizontal' as LayoutType,
15-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
15+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
1616
onSetValue: (value: ComponentValue): void => {},
1717
rowClassName: '' as ClassValue,
1818
showErrors: true,

src/components/controls/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import classNames from 'classnames/dedupe';
3-
import {ClassValue} from 'classnames/types';
3+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
44

55
const defaultProps = {
66
className: '' as ClassValue,

src/components/input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ type SupportedInputType =
3434

3535
const defaultProps = {
3636
...componentDefaultProps,
37-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
37+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
3838
blurCallback: (name: string, value: string): void => {},
3939
blurDebounceInterval: 0,
4040
changeDebounceInterval: 500,
4141
className: '',
4242
elementRef: React.createRef<HTMLInputElement>(),
43-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
43+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
4444
keyDownCallback: (event: React.KeyboardEvent<HTMLInputElement>): void => {},
4545
required: false,
4646
type: 'text' as SupportedInputType,

src/components/label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import classNames from 'classnames/dedupe';
33
import RequiredSymbol from './required-symbol';
4-
import {ClassValue} from 'classnames/types';
4+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
55
import {LayoutType} from '../types';
66

77
interface Props {

src/components/row.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import classNames from 'classnames/dedupe';
33
import Label from './label';
4-
import {ClassValue} from 'classnames/types';
4+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
55
import {LayoutType} from '../types';
66

77
interface RowProps {

src/components/textarea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const defaultProps = {
1515
changeDebounceInterval: 500,
1616
cols: 0,
1717
rows: 3,
18-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
18+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
1919
blurCallback: (name: string, value: string): void => {},
2020
};
2121

src/context/frc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {createContext} from 'react';
2-
import {ClassValue} from 'classnames/types';
2+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
33
import {LayoutType} from '../types';
44

55
const defaultContextValue = {

src/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import classNames from 'classnames/dedupe';
33
import Formsy, {FormsyProps} from 'formsy-react';
4-
import {ClassValue} from 'classnames/types';
4+
import {ClassValue} from 'classnames/types'; // eslint-disable-line import/no-unresolved
55
import {LayoutType} from './types';
66
import FrcContext from './context/frc';
77

src/hoc/__tests__/component-test.tsx

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ describe('The component HOC', () => {
3333
);
3434
const componentProps = wrapper.find(TestComponent).props();
3535

36-
describe('`name`', () => {
37-
it('is required', () => {});
38-
it('should be a string', () => {});
39-
it('is passed through to the composed component', () => {});
40-
});
36+
//describe('`name`', () => {
37+
// it('is required', () => {});
38+
// it('should be a string', () => {});
39+
// it('is passed through to the composed component', () => {});
40+
//});
4141

4242
describe('`disabled`', () => {
4343
const disabledProp = componentProps.disabled;
@@ -49,96 +49,96 @@ describe('The component HOC', () => {
4949
});
5050
});
5151

52-
describe('`help`', () => {
53-
it('should be a string', () => {});
54-
it('is passed through to the composed component', () => {});
55-
});
56-
57-
describe('`label`', () => {
58-
it('should be a string', () => {});
59-
it('is passed through to the composed component', () => {});
60-
});
61-
62-
describe('`id`', () => {
63-
it('should be a string', () => {});
64-
it('is generated for the composed component when not supplied', () => {
65-
//expect(typeof componentProps.id).toBe('string');
66-
//expect(componentProps.id.startsWith('frc-')).toBe(true);
67-
});
68-
it('is passed through to the composed component', () => {});
69-
});
70-
71-
describe('`layout`', () => {
72-
it('defaults to `horizontal` if not supplied', () => {});
73-
it('is merged with a master value set in a parent context', () => {});
74-
it('is passed through to the composed component', () => {});
75-
});
76-
77-
describe('`validatePristine`', () => {
78-
it('determines whether to show errors on pristine (untouched) values', () => {});
79-
it('is merged with a master value set in a parent context', () => {});
80-
it('is not passed through to the composed component', () => {});
81-
});
82-
83-
describe('`validateBeforeSubmit`', () => {
84-
it('determines whether to hide errors until an attempt to submit the form is made', () => {});
85-
it('is merged with a master value set in a parent context', () => {});
86-
it('is not passed through to the composed component', () => {});
87-
});
88-
89-
describe('other props', () => {
90-
it('are passed through to the composed component', () => {});
91-
});
52+
//describe('`help`', () => {
53+
// it('should be a string', () => {});
54+
// it('is passed through to the composed component', () => {});
55+
//});
56+
57+
//describe('`label`', () => {
58+
// it('should be a string', () => {});
59+
// it('is passed through to the composed component', () => {});
60+
//});
61+
62+
//describe('`id`', () => {
63+
// it('should be a string', () => {});
64+
// it('is generated for the composed component when not supplied', () => {
65+
// //expect(typeof componentProps.id).toBe('string');
66+
// //expect(componentProps.id.startsWith('frc-')).toBe(true);
67+
// });
68+
// it('is passed through to the composed component', () => {});
69+
//});
70+
71+
//describe('`layout`', () => {
72+
// it('defaults to `horizontal` if not supplied', () => {});
73+
// it('is merged with a master value set in a parent context', () => {});
74+
// it('is passed through to the composed component', () => {});
75+
//});
76+
77+
//describe('`validatePristine`', () => {
78+
// it('determines whether to show errors on pristine (untouched) values', () => {});
79+
// it('is merged with a master value set in a parent context', () => {});
80+
// it('is not passed through to the composed component', () => {});
81+
//});
82+
83+
//describe('`validateBeforeSubmit`', () => {
84+
// it('determines whether to hide errors until an attempt to submit the form is made', () => {});
85+
// it('is merged with a master value set in a parent context', () => {});
86+
// it('is not passed through to the composed component', () => {});
87+
//});
88+
89+
//describe('other props', () => {
90+
// it('are passed through to the composed component', () => {});
91+
//});
9292
});
9393

94-
describe('props set on the composed component', () => {
95-
// "Describle (v): To create a meaningless description."
96-
97-
describe('`errorMessages`', () => {
98-
it('is an array', () => {});
99-
it('is the result of formsy `getErrorMessages`', () => {});
100-
// errorMessages: this.props.getErrorMessages(),
101-
});
102-
103-
describe('`id`', () => {
104-
it('is a string', () => {});
105-
// id: this.getId(),
106-
});
107-
108-
describe('`layout`', () => {
109-
it('is a string', () => {});
110-
});
111-
112-
describe('`required`', () => {
113-
it('is a boolean', () => {});
114-
it('is the result of formsy `isRequired`', () => {});
115-
// required: this.props.isRequired(),
116-
});
117-
118-
describe('`showErrors`', () => {
119-
it('is a boolean', () => {});
120-
// showErrors: this.shouldShowErrors(),
121-
});
122-
123-
describe('css class name properties', () => {
124-
// elementWrapperClassName
125-
// labelClassName
126-
// rowClassName
127-
});
128-
129-
describe('`value`', () => {
130-
it('`value` is the result of formsy getValue()', () => {});
131-
});
132-
133-
describe('`disabled`', () => {
134-
it('is a boolean', () => {});
135-
// this.props.isFormDisabled() || this.props.disabled,
136-
it('is overridden by formsy `isFormDisabled` (if true)', () => {});
137-
});
138-
139-
describe('`onSetValue`', () => {
140-
it('is a function', () => {});
141-
it('is just formsy setValue, with name changed to fit with project naming convention', () => {});
142-
});
143-
});
94+
//describe('props set on the composed component', () => {
95+
// // "Describle (v): To create a meaningless description."
96+
97+
// describe('`errorMessages`', () => {
98+
// it('is an array', () => {});
99+
// it('is the result of formsy `getErrorMessages`', () => {});
100+
// // errorMessages: this.props.getErrorMessages(),
101+
// });
102+
103+
// describe('`id`', () => {
104+
// it('is a string', () => {});
105+
// // id: this.getId(),
106+
// });
107+
108+
// describe('`layout`', () => {
109+
// it('is a string', () => {});
110+
// });
111+
112+
// describe('`required`', () => {
113+
// it('is a boolean', () => {});
114+
// it('is the result of formsy `isRequired`', () => {});
115+
// // required: this.props.isRequired(),
116+
// });
117+
118+
// describe('`showErrors`', () => {
119+
// it('is a boolean', () => {});
120+
// // showErrors: this.shouldShowErrors(),
121+
// });
122+
123+
// describe('css class name properties', () => {
124+
// // elementWrapperClassName
125+
// // labelClassName
126+
// // rowClassName
127+
// });
128+
129+
// describe('`value`', () => {
130+
// it('`value` is the result of formsy getValue()', () => {});
131+
// });
132+
133+
// describe('`disabled`', () => {
134+
// it('is a boolean', () => {});
135+
// // this.props.isFormDisabled() || this.props.disabled,
136+
// it('is overridden by formsy `isFormDisabled` (if true)', () => {});
137+
// });
138+
139+
// describe('`onSetValue`', () => {
140+
// it('is a function', () => {});
141+
// it('is just formsy setValue, with name changed to fit with project naming convention', () => {});
142+
// });
143+
//});
144144
});

0 commit comments

Comments
 (0)