* #708 apply strictier linting rules and fix simple eslint bugs * #708 fix eslint errors relate to promise * #708 fix eslint import/no-extraneous-dependencies * #708 fix eslint errors of react-hook * #708 enable eslint check for typescript --------- Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
This commit is contained in:
+15
-15
@@ -1,32 +1,32 @@
|
||||
import { defineConfig } from "@rsbuild/core";
|
||||
import { pluginReact } from "@rsbuild/plugin-react";
|
||||
import { pluginStylus } from "@rsbuild/plugin-stylus";
|
||||
import { pluginSvgr } from "@rsbuild/plugin-svgr";
|
||||
import { defineConfig } from '@rsbuild/core'
|
||||
import { pluginReact } from '@rsbuild/plugin-react'
|
||||
import { pluginStylus } from '@rsbuild/plugin-stylus'
|
||||
import { pluginSvgr } from '@rsbuild/plugin-svgr'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [pluginReact(), pluginStylus(), pluginSvgr()],
|
||||
html: {
|
||||
template: "./public/index.html",
|
||||
template: './public/index.html'
|
||||
},
|
||||
server: {
|
||||
port: 5000,
|
||||
historyApiFallback: true,
|
||||
historyApiFallback: true
|
||||
},
|
||||
source: {
|
||||
entry: {
|
||||
index: "./src/index.tsx",
|
||||
},
|
||||
index: './src/index.tsx'
|
||||
}
|
||||
},
|
||||
output: {
|
||||
distPath: {
|
||||
root: "dist",
|
||||
root: 'dist'
|
||||
},
|
||||
minify: false,
|
||||
minify: false
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
react: require.resolve("react"),
|
||||
"react-dom": require.resolve("react-dom"),
|
||||
},
|
||||
},
|
||||
});
|
||||
react: require.resolve('react'),
|
||||
'react-dom': require.resolve('react-dom')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user