mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
fix nearly all lint errors now
This commit is contained in:
+14
-14
@@ -1,20 +1,20 @@
|
||||
import { ScriptEditor } from "./ScriptEditor";
|
||||
|
||||
const ace = require('brace');
|
||||
import ace from 'brace';
|
||||
|
||||
require('brace/mode/javascript');
|
||||
require('./AceNetscriptMode');
|
||||
require('brace/theme/chaos');
|
||||
require('brace/theme/chrome');
|
||||
require('brace/theme/monokai');
|
||||
require('brace/theme/solarized_dark');
|
||||
require('brace/theme/solarized_light');
|
||||
require('brace/theme/terminal');
|
||||
require('brace/theme/twilight');
|
||||
require('brace/theme/xcode');
|
||||
require("brace/keybinding/vim");
|
||||
require("brace/keybinding/emacs");
|
||||
require("brace/ext/language_tools");
|
||||
import 'brace/mode/javascript';
|
||||
import './AceNetscriptMode';
|
||||
import 'brace/theme/chaos';
|
||||
import 'brace/theme/chrome';
|
||||
import 'brace/theme/monokai';
|
||||
import 'brace/theme/solarized_dark';
|
||||
import 'brace/theme/solarized_light';
|
||||
import 'brace/theme/terminal';
|
||||
import 'brace/theme/twilight';
|
||||
import 'brace/theme/xcode';
|
||||
import "brace/keybinding/vim";
|
||||
import "brace/keybinding/emacs";
|
||||
import "brace/ext/language_tools";
|
||||
|
||||
import { NetscriptFunctions } from "../NetscriptFunctions";
|
||||
import { Settings } from "../Settings/Settings";
|
||||
|
||||
@@ -87,7 +87,7 @@ import 'codemirror/addon/lint/lint.css';
|
||||
import 'codemirror/addon/search/match-highlighter.js';
|
||||
import 'codemirror/addon/selection/active-line.js';
|
||||
|
||||
window.JSHINT = require('jshint').JSHINT;
|
||||
import { JSHINT } from 'jshint';
|
||||
import './CodeMirrorNetscriptLint.js';
|
||||
|
||||
import { NetscriptFunctions } from "../NetscriptFunctions";
|
||||
@@ -100,6 +100,10 @@ import { createElement } from "../../utils/uiHelpers/createElement";
|
||||
import { createOptionElement } from "../../utils/uiHelpers/createOptionElement";
|
||||
import { removeChildrenFromElement } from "../../utils/uiHelpers/removeChildrenFromElement";
|
||||
|
||||
(function() {
|
||||
window.JSHINT = JSHINT;
|
||||
})();
|
||||
|
||||
// Max number of invisibles to be shown in a group if the "Show Invisibles" option
|
||||
// is marked
|
||||
const MaxInvisibles = 20;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CursorPositions } from './CursorPositions';
|
||||
|
||||
// Base Script Editor class for the Ace/CodeMirror/etc. wrappers
|
||||
const beautify = require('js-beautify').js_beautify;
|
||||
import { js_beautify as beautify } from 'js-beautify';
|
||||
|
||||
export class ScriptEditor {
|
||||
constructor() {
|
||||
|
||||
Reference in New Issue
Block a user