todo: error 改为 warning , 待处理

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

@ -6,6 +6,7 @@
"extends": [
"standard",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"parserOptions": {
@ -16,7 +17,15 @@
"react"
],
"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": [
"error",
"always"

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

Loading…
Cancel
Save