stylus/edit
eight 2fd531e253 Rewrite linter system (#487)
* Add: implement new linter system

* Refactor: pull out editor worker

* Switch to new linter and worker

* Enable eslint cache

* Fix: undefined error

* Windows compatibility

* Fix: refresh linter if the editor.linter changes

* Add: stylelint

* Add: getStylelintRules, getCsslintRules

* Fix: logic to get correct linter

* WIP: linter-report

* Fix: toggle hidden state

* Add: matain the order of lint report for section editor

* Add: unhook event

* Add: gotoLintIssue

* Fix: shouldn't delete rule.init

* Add: linter-help-dialog

* Drop linterConfig

* Add: linter-config-dialog, cacheFn

* Add: use cacheFn

* Drop lint.js

* Add: refresh. Fix report order

* Fix: hide empty table

* Add: updateCount. Fix table caption

* Switch to new linter/worker

* Fix: remove unneeded comment

* Fix: cacheFn -> cacheFirstCall

* Fix: use cacheFirstCall

* Fix: cache metaIndex

* Fix: i < trs.length

* Fix: drop isEmpty

* Fix: expose some simple states to global

* Fix: return object code style

* Fix: use proxy to reflect API

* Fix: eslint-disable-line -> eslint-disable-next-line

* Fix: requestId -> id

* Fix: one-liner

* Fix: one-liner

* Fix: move dom event block to top

* Fix: pending -> pendingResponse

* Fix: onSuccess -> onUpdated

* Fix: optimize row removing when i === 0

* Fix: hook/unhook -> enableForEditor/disableForEditor

* Fix: linter.refresh -> linter.run

* Fix: some shadowing

* Fix: simplify getAnnotations

* Fix: cacheFirstCall -> memoize

* Fix: table.update -> table.updateCaption

* Fix: unneeded reassign

* Fix: callbacks -> listeners

* Fix: don't compose but extend

* Refactor: replace linter modules with linter-defaults and linter-engines

* Fix: implement linter fallbacks

* Fix: linter.onChange -> linter.onLintingUpdated

* Fix: cms -> tables

* Fix: parseMozFormat is not called correctly

* Move csslint-loader to background

* Fix: watch config changes

* Fix: switch to LINTER_DEFAULTS

* Fix: csslint-loader -> parserlib-loader
2018-10-01 09:03:17 -05:00
..
applies-to-line-widget.js make a copy of the applies-to template 2018-07-22 16:36:50 +03:00
beautify.js use showHelp.close when it's defined 2018-08-29 15:39:18 +03:00
codemirror-default.css draw fold marks in CSS since some fonts may not have them 2018-05-06 13:11:19 +03:00
codemirror-default.js fixup 74ef2f6f: 'editors' is a const 2018-07-10 11:45:52 +03:00
codemirror-editing-hooks.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
colorpicker-helper.js rewrite colorview to use CodeMirror::TextMarker 2017-12-22 11:22:35 +03:00
edit.css Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
edit.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
editor-worker-body.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
editor-worker.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
global-search.css toggle narrow width mode tooltips via html+css; code cosmetics 2017-12-19 02:48:47 +03:00
global-search.js actually run restoreWindowScrollPos in a microtask 2018-08-16 18:09:50 +03:00
linter-config-dialog.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter-defaults.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter-engines.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter-help-dialog.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter-meta.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter-report.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
linter.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
match-highlighter-helper.js match-highlighter: always use originalToken 2017-12-18 10:27:50 +03:00
regexp-tester.js more things made focusable 2017-12-13 07:38:36 +03:00
sections.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
show-keymap-help.js off-by-one in showKeyMapHelp: text after <mark> was lost 2017-12-09 20:43:47 +03:00
source-editor.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00
util.js Rewrite linter system (#487) 2018-10-01 09:03:17 -05:00