todo: error 改为 warning , 待处理

feature/2.0-sales-trade
lot 2 years ago
parent 6db72f7b41
commit c10b61983c

@ -6,6 +6,7 @@
"extends": [ "extends": [
"standard", "standard",
"plugin:react/recommended", "plugin:react/recommended",
"plugin:react/jsx-runtime",
"prettier" "prettier"
], ],
"parserOptions": { "parserOptions": {
@ -16,7 +17,15 @@
"react" "react"
], ],
"rules": { "rules": {
// "no-useless-constructor": "off", "no-useless-constructor": "off",
"react/prop-types": "off",
"eqeqeq": [1],
"no-empty": [1],
"no-extend-native": [1],
"no-prototype-builtins": [1],
"prefer-const": [1],
// "new-cap": [1],
"array-callback-return": [1],
"semi": [ "semi": [
"error", "error",
"always" "always"

@ -3,23 +3,22 @@ import ReactDOM from 'react-dom/client';
import './index.css'; import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
import {stores_Context} from './config'; import { stores_Context } from './config';
import rootStore from "./stores/Index"; import RootStore from './stores/Index';
import {Spin} from "antd"; import { Spin } from 'antd';
const root = ReactDOM.createRoot(document.getElementById('root')); const root = ReactDOM.createRoot(document.getElementById('root'));
const stores=new rootStore(); const stores = new RootStore();
root.render( root.render(
<React.StrictMode> <React.StrictMode>
<stores_Context.Provider value={stores}> <stores_Context.Provider value={stores}>
<App/> <App />
</stores_Context.Provider> </stores_Context.Provider>
</React.StrictMode> </React.StrictMode>
); );
// If you want to start measuring performance in your app, pass a function // If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log)) // to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals

Loading…
Cancel
Save