Skip to content

Commit c93ed50

Browse files
committed
Fix linting errors
1 parent c93adf6 commit c93ed50

File tree

7 files changed

+5
-9
lines changed

7 files changed

+5
-9
lines changed

src/extendReactClass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable react/prop-types */
22

3-
import linkClass from './linkClass';
43
import React from 'react';
54
import _ from 'lodash';
65
import hoistNonReactStatics from 'hoist-non-react-statics';
6+
import linkClass from './linkClass';
77

88
/**
99
* @param {ReactClass} Component

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import wrapStatelessFunction from './wrapStatelessFunction';
55
/**
66
* @see https://github.com/gajus/react-css-modules#options
77
*/
8-
type OptionsType = {};
8+
type TypeOptions = {};
99

1010
/**
1111
* Determines if the given object has the signature of a class that inherits React.Component.
@@ -17,7 +17,7 @@ const isReactComponent = (maybeReactComponent: any): boolean => {
1717
/**
1818
* When used as a function.
1919
*/
20-
const functionConstructor = (Component: Function, defaultStyles: Object, options: OptionsType): Function => {
20+
const functionConstructor = (Component: Function, defaultStyles: Object, options: TypeOptions): Function => {
2121
let decoratedClass;
2222

2323
if (isReactComponent(Component)) {
@@ -38,7 +38,7 @@ const functionConstructor = (Component: Function, defaultStyles: Object, options
3838
/**
3939
* When used as a ES7 decorator.
4040
*/
41-
const decoratorConstructor = (defaultStyles: Object, options: OptionsType): Function => {
41+
const decoratorConstructor = (defaultStyles: Object, options: TypeOptions): Function => {
4242
return (Component: Function) => {
4343
return functionConstructor(Component, defaultStyles, options);
4444
};

src/linkClass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import _ from 'lodash';
22
import React, {
33
ReactElement
44
} from 'react';
5+
import objectUnfreeze from 'object-unfreeze';
56
import makeConfiguration from './makeConfiguration';
67
import isIterable from './isIterable';
78
import parseStyleName from './parseStyleName';
89
import generateAppendClassName from './generateAppendClassName';
9-
import objectUnfreeze from 'object-unfreeze';
1010

1111
const linkElement = (element: ReactElement, styles: Object, configuration: Object): ReactElement => {
1212
let appendClassName,

tests/extendReactClass.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import {
44
expect
55
} from 'chai';
6-
76
import React from 'react';
87
import TestUtils from 'react-addons-test-utils';
98
import shallowCompare from 'react-addons-shallow-compare';

tests/linkClass.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import {
44
expect
55
} from 'chai';
6-
76
import React from 'react';
87
import TestUtils from 'react-addons-test-utils';
98
import jsdom from 'jsdom';

tests/makeConfiguration.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import {
44
expect
55
} from 'chai';
6-
76
import makeConfiguration from './../src/makeConfiguration';
87

98
describe('makeConfiguration', () => {

tests/reactCssModules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import {
44
expect
55
} from 'chai';
6-
76
import React from 'react';
87
import ReactDOM from 'react-dom';
98
import TestUtils from 'react-addons-test-utils';

0 commit comments

Comments
 (0)