mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui-library.git
synced 2025-11-01 19:28:03 +00:00
added eslint prop-types
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
"extensions": [".js", ".jsx"]
|
||||
}
|
||||
],
|
||||
"react/prop-types": 0,
|
||||
"no-underscore-dangle": 0,
|
||||
"import/imports-first": ["error", "absolute-first"],
|
||||
"import/newline-after-import": "error",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import ThemeProvider from 'contexts/ThemeProvider';
|
||||
@@ -12,6 +13,10 @@ const AllTheProviders = ({ children }) => {
|
||||
);
|
||||
};
|
||||
|
||||
AllTheProviders.propTypes = {
|
||||
children: PropTypes.node.isRequired,
|
||||
};
|
||||
|
||||
const customRender = (ui, options) => render(ui, { wrapper: AllTheProviders, ...options });
|
||||
|
||||
// re-export everything
|
||||
|
||||
Reference in New Issue
Block a user