gristlabs_grist-core/app/client/widgets
Dmitry S d1c1416d78 (core) Add rules to eslint to better match our coding conventions.
Summary:
We used tslint earlier, and on switching to eslint, some rules were not
transfered. This moves more rules over, for consistent conventions or helpful
warnings.

- Name private members with a leading underscore.
- Prefer interface over a type alias.
- Use consistent spacing around ':' in type annotations.
- Use consistent spacing around braces of code blocks.
- Use semicolons consistently at the ends of statements.
- Use braces around even one-liner blocks, like conditionals and loops.
- Warn about shadowed variables.

Test Plan: Fixed all new warnings. Should be no behavior changes in code.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2831
2021-05-24 12:56:18 -04:00
..
AbstractWidget.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
AttachmentsEditor.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
AttachmentsWidget.css (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
AttachmentsWidget.ts (core) Revamp attachment editor + preview UI, and support more types, including PDFs. 2020-11-19 21:30:09 -05:00
BaseEditor.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
CheckBox.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
CheckBox.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
CheckBoxEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
ChoiceListCell.ts (core) Fix JS error when scrolling with a column of hyperlinks, and use stricter types. 2021-05-12 17:31:56 -04:00
ChoiceListEditor.ts (core) Add ChoiceList type, cell widget, and editor widget. 2021-05-12 10:38:32 -04:00
ChoiceTextBox.ts (core) Add ChoiceList type, cell widget, and editor widget. 2021-05-12 10:38:32 -04:00
DateEditor.js (core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded. 2021-05-18 10:36:59 +02:00
DateTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
DateTimeEditor.js (core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded. 2021-05-18 10:36:59 +02:00
DateTimeTextBox.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DiffBox.ts (core) Configure more comprehensive eslint rules for Typescript 2021-04-26 18:54:55 -04:00
EditorButtons.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorPlacement.ts (core) Add support for editing on mobile. 2021-02-03 23:10:51 -05:00
EditorTooltip.ts (core) Add a button and a tooltip to Access Rules page item, in View-As mode. 2021-03-08 16:08:21 -05:00
ErrorDom.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldBuilder.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
FieldEditor.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
FormulaEditor.ts (core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded. 2021-05-18 10:36:59 +02:00
HyperLinkEditor.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
HyperLinkTextBox.ts (core) Navigate hyperlinks in the same document without a page reload 2021-05-21 12:21:27 +02:00
NewAbstractWidget.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NewBaseEditor.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
NTextBox.ts (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
NTextEditor.ts (core) Add rules to eslint to better match our coding conventions. 2021-05-24 12:56:18 -04:00
NumericTextBox.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
Reference.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Reference.ts (core) Convert a few widgets to typescript and grainjs. 2020-11-23 09:49:55 -05:00
ReferenceEditor.ts (core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded. 2021-05-18 10:36:59 +02:00
Spinner.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Spinner.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Switch.css (core) Making cells colors effective also in Card and Card List views 2021-02-09 15:08:44 +01:00
Switch.js (core) Add new color select to the app 2021-03-02 16:41:37 +01:00
TextBox.css (core) Update UI for formula and column label/id in the right-side panel. 2021-03-17 01:35:56 -04:00
TextEditor.css (core) Update UI for formula and column label/id in the right-side panel. 2021-03-17 01:35:56 -04:00
TextEditor.js (core) Document keeps track of latest cursor position and latest editor value and is able to restore them when it is reloaded. 2021-05-18 10:36:59 +02:00
UserType.js (core) Add ChoiceList type, cell widget, and editor widget. 2021-05-12 10:38:32 -04:00
UserTypeImpl.js (core) Add ChoiceList type, cell widget, and editor widget. 2021-05-12 10:38:32 -04:00