From eeedb876c0005bcef06d5d49eaf5df574a6ef53f Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 24 Jun 2022 16:40:48 +0800 Subject: [PATCH] chore: fix eslint warning and bisheng terminal log (#36220) * chore: fix eslint warning * chore: fix bisheng log * Update basic.md --- .eslintrc.js | 2 +- components/table/__tests__/Table.rowSelection.test.js | 1 - site/bisheng.config.js | 7 +++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 84964b7ff3..fd26df75f9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,7 +17,7 @@ module.exports = { }, settings: { react: { - version: '16.9', + version: 'detect', }, polyfills: ['Promise', 'URL'], }, diff --git a/components/table/__tests__/Table.rowSelection.test.js b/components/table/__tests__/Table.rowSelection.test.js index 8de09d90cd..764d9c0141 100644 --- a/components/table/__tests__/Table.rowSelection.test.js +++ b/components/table/__tests__/Table.rowSelection.test.js @@ -326,7 +326,6 @@ describe('Table.rowSelection', () => { }); expect(onChange).toHaveBeenLastCalledWith([3, 0, 1, 2]); fireEvent.click(allElement()); - console.log(baseElement.innerHTML); expect(onChange).toHaveBeenLastCalledWith([]); // Reset last select key when select all diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 40f9ea0769..3a15ce3dee 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -27,8 +27,10 @@ function alertBabelConfig(rules) { }); } +const port = process.env.DEV_PORT || 8001; + module.exports = { - port: 8001, + port, hash: true, source: { components: './components', @@ -192,8 +194,9 @@ module.exports = { }, devServerConfig: { - public: process.env.DEV_HOST || 'localhost', + public: `${process.env.DEV_HOST || 'localhost'}:${port}`, disableHostCheck: !!process.env.DEV_HOST, + publicPath: '/_site', }, htmlTemplateExtraData: {