From 71730bd6b911658203f5165d50ef33c7cecc36d8 Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 12 Sep 2023 00:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Auto=20fix=20lint=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 1 + package.json | 2 +- src/IndexHTML.jsx | 2 +- .../EditCharacterNamesPanel.jsx | 4 +- .../views/CharacterModal/FGImagesList.jsx | 4 +- src/common/components/ButtonGroup.jsx | 2 - src/common/components/ColorPicker.jsx | 2 +- src/common/components/GridList/index.jsx | 6 +- src/common/components/Modal/index.jsx | 2 +- src/common/components/ModalTwo/Modal.jsx | 2 +- src/common/components/OiceThumbnail/index.jsx | 2 +- src/common/components/RadioButton.jsx | 2 +- src/common/components/Tabs.jsx | 2 +- src/common/components/TextField.jsx | 5 +- src/common/components/UsersDropdown/index.jsx | 4 +- .../LibrariesCollection/LibraryCard.jsx | 2 +- .../LibrariesCollection/index.jsx | 18 +++--- .../LibraryAssetThumbnail.jsx | 1 - .../LibraryModal/index.jsx | 27 +++----- .../LibraryPanel/AssetsGridList.jsx | 10 +-- .../LibraryPanel/AudioList.jsx | 20 +++--- .../LibraryPanel/BackgroundModal/index.jsx | 16 +++-- .../CharacterPositionPreview.jsx | 2 +- .../CharacterModal/CoordinateConfigPanel.jsx | 2 +- .../EditCharacterNamesPanel.jsx | 14 ++--- .../CharacterModal/FGImageRow.jsx | 4 +- .../CharacterModal/FGImagesList.jsx | 61 ++++++++++--------- .../CharacterModal/ModalFooter.jsx | 4 +- .../CharacterModal/ModalHeader.jsx | 4 +- .../LibraryPanel/CharacterModal/index.jsx | 14 ++--- .../EditAudioAssetModal/index.jsx | 9 +-- .../LibraryPanel/ItemModal/index.jsx | 14 ++--- .../UploadAudioAssetModal/index.jsx | 16 ++--- .../LibraryPanel/index.jsx | 10 ++- .../LibraryThumbnail.jsx | 1 - .../AssetsManagementPanel/NavBar/index.jsx | 6 +- .../AttributesPanel/AttributeRow/index.jsx | 8 +-- .../EditorPanel/BlocksPanel/index.jsx | 16 ++--- .../EditorPanel/ExportOiceModal/index.jsx | 4 +- .../ImportScriptModal/ImportScriptModal.jsx | 4 +- .../EditorPanel/RunOiceModal/index.jsx | 7 ++- .../OiceListTab/OiceBlock.jsx | 2 +- .../StoryOiceBrowser/OiceListTab/index.jsx | 3 +- .../StoryOiceBrowser/StoryListTab/Row.jsx | 2 +- .../StoryOiceBrowser/StoryListTab/index.jsx | 2 +- .../EditorPanel/StoryOiceBrowser/index.jsx | 4 +- .../EditorPanel/StoryPicker/index.jsx | 2 +- .../StorySettingModal/OiceBlock.jsx | 2 +- src/ui-demo/components/ButtonGroup.jsx | 22 +++---- src/ui-demo/components/Dropdown.jsx | 4 +- src/ui-demo/components/GridList.jsx | 2 +- src/ui-demo/components/Modal.jsx | 6 +- src/ui-demo/components/RaisedButton.jsx | 12 ++-- src/ui-demo/components/TextField.jsx | 2 +- src/web/pages/Home/LicenseSection.jsx | 1 + .../pages/OiceSingleView/OiceSingleView.jsx | 2 +- src/web/pages/User/index.jsx | 2 +- 57 files changed, 186 insertions(+), 220 deletions(-) diff --git a/.eslintrc b/.eslintrc index 1740743e..da1c577a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -56,6 +56,7 @@ "initializations" ], "react/forbid-prop-types": 0, + "react/jsx-no-bind": 0, "react/jsx-sort-props": [ 1, { diff --git a/package.json b/package.json index c727506a..d2272a93 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "forever": "NODE_ENV=production forever start ./index.js", "stop": "forever stop ./index.js", "deploy": "npm run build && npm run server", - "lint": "eslint src index.js src/server.jsx src/IndexHTML.jsx" + "lint": "eslint src index.js src/server.jsx src/IndexHTML.jsx --ext .jsx,.js" }, "authors": [ "Andrew Chung", diff --git a/src/IndexHTML.jsx b/src/IndexHTML.jsx index 0acf1e03..e698f7dc 100644 --- a/src/IndexHTML.jsx +++ b/src/IndexHTML.jsx @@ -128,7 +128,7 @@ export default class IndexHTML extends React.Component { window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', '${GA_TRACKING_ID}');` + gtag('config', '${GA_TRACKING_ID}');`, }} />