зеркало из https://github.com/mozilla/Spoke.git
Fix linting issues
This commit is contained in:
Родитель
c38c7017bc
Коммит
8e75a08e4c
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
rules: {
|
||||
"prettier/prettier": "error",
|
||||
"prefer-const": "error",
|
||||
"no-use-before-define": "error",
|
||||
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": true }],
|
||||
"no-var": "error",
|
||||
"no-throw-literal": "error",
|
||||
// Light console usage is useful but remove debug logs before merging to master.
|
||||
|
|
|
@ -219,7 +219,6 @@ export async function loadSerializedScene(sceneDef, baseURI, addComponent, isRoo
|
|||
const absoluteBaseURL = new URL(baseURI, window.location);
|
||||
if (inherits) {
|
||||
const inheritedSceneURL = new URL(inherits, absoluteBaseURL);
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
scene = await loadScene(inheritedSceneURL.href, addComponent, false, ancestors);
|
||||
|
||||
if (ancestors) {
|
||||
|
|
|
@ -16,7 +16,6 @@ import AssetExplorerPanelContainer from "./panels/AssetExplorerPanelContainer";
|
|||
import PanelToolbar from "./PanelToolbar";
|
||||
import { withProject } from "./contexts/ProjectContext";
|
||||
import { withEditor } from "./contexts/EditorContext";
|
||||
import { exportScene } from "../editor/SceneLoader";
|
||||
import styles from "../common.scss";
|
||||
|
||||
class EditorContainer extends Component {
|
||||
|
|
|
@ -200,9 +200,7 @@ export default async function startServer(options) {
|
|||
|
||||
await new Promise((resolve, reject) => {
|
||||
function cleanUp() {
|
||||
// eslint-disable-next-line
|
||||
writeStream.removeListener("finish", onFinish);
|
||||
// eslint-disable-next-line
|
||||
writeStream.removeListener("error", onError);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче