Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

chore(dependencies): update to 0.59.0 #9

Merged
merged 450 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
450 commits
Select commit Hold shift + click to select a range
e26689e
Merge pull request #467 from arnog/dependabot/npm_and_yarn/lint-stage…
dependabot-preview[bot] May 23, 2020
3c28371
build(deps-dev): bump @types/node from 14.0.4 to 14.0.5
dependabot-preview[bot] May 23, 2020
cabf40f
Merge pull request #468 from arnog/dependabot/npm_and_yarn/types/node…
dependabot-preview[bot] May 23, 2020
570b7f8
build(deps-dev): bump eslint from 7.0.0 to 7.1.0
dependabot-preview[bot] May 23, 2020
921c414
Merge pull request #466 from arnog/dependabot/npm_and_yarn/eslint-7.1.0
dependabot-preview[bot] May 23, 2020
2ed772a
chore: deps + stricter linting and more typing
arnog May 23, 2020
459e768
chore: additional test case
arnog May 23, 2020
8fdd110
Merge branch 'master' of github.com:arnog/mathlive
arnog May 23, 2020
ad27717
chore: deps
arnog May 23, 2020
19bdfbe
fix: display superscript/subscript correctly with 'overunder' atoms
arnog May 24, 2020
367c3cb
chore: fix linting of JavaScript file
arnog May 24, 2020
9ecd23c
chore: fix auto build pushing
arnog May 24, 2020
08e8c9e
0.51.1
arnog May 24, 2020
31434ef
chore: tweak auto-build push
arnog May 24, 2020
092d692
0.52.0
arnog May 24, 2020
e413f0d
feat(no-css-files): fix #158, #425.
arnog May 26, 2020
2a6209d
feat: fix #425, addded CSS variable for keyboard zindex
arnog May 26, 2020
a25696d
feat: more efficient check if fonts are loaded (creating a FontFace i…
arnog May 26, 2020
e04cb98
chore: more typing
arnog May 26, 2020
6d28901
fix: #468 correctly identify the keyboard layout on linux
arnog May 26, 2020
2552f5f
build(deps-dev): bump @types/node from 14.0.5 to 14.0.6
dependabot-preview[bot] May 30, 2020
924826a
Merge pull request #470 from arnog/dependabot/npm_and_yarn/types/node…
dependabot-preview[bot] May 30, 2020
fcb8b64
build(deps-dev): bump @typescript-eslint/parser from 3.0.1 to 3.0.2
dependabot-preview[bot] May 30, 2020
196215a
Merge pull request #474 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] May 30, 2020
44ae05e
build(deps-dev): bump @typescript-eslint/typescript-estree
dependabot-preview[bot] May 30, 2020
34aed42
Merge pull request #472 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] May 30, 2020
0b4f907
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot-preview[bot] May 30, 2020
46f5c0d
Merge pull request #473 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] May 30, 2020
ea99e7f
build(deps-dev): bump lint-staged from 10.2.6 to 10.2.7
dependabot-preview[bot] May 30, 2020
e308e34
Merge pull request #475 from arnog/dependabot/npm_and_yarn/lint-stage…
dependabot-preview[bot] May 30, 2020
07d1205
build(deps-dev): bump rollup from 2.10.9 to 2.11.2
dependabot-preview[bot] May 30, 2020
769090c
Merge pull request #471 from arnog/dependabot/npm_and_yarn/rollup-2.11.2
dependabot-preview[bot] May 30, 2020
874811b
Fix # 469, Fix #425, see CHANGELOG
arnog May 31, 2020
99de4f4
Merge branch 'master' of github.com:arnog/mathlive
arnog May 31, 2020
da7ddb3
deps
arnog May 31, 2020
aa17aad
0.53.0
arnog May 31, 2020
cf61374
fix: use \scriptstyle, not \tiny
arnog Jun 1, 2020
32a041f
fix: don't display a double-caret after a leftright
arnog Jun 1, 2020
26e38b7
fix: vertical offset of extensible arrows
arnog Jun 1, 2020
d6c5e9c
chore: tweak version number stamping
arnog Jun 1, 2020
1e3337d
chore: deps
arnog Jun 1, 2020
54a9b97
0.53.1
arnog Jun 1, 2020
c01ac60
fix: adjust height of square root
arnog Jun 1, 2020
6ae8601
chore: eslint should not output warnings for *.test.ts files
arnog Jun 4, 2020
3e035e1
chore: deps
arnog Jun 4, 2020
d5a93e2
chore: typo
arnog Jun 4, 2020
2f20eea
fix: ensure that "dt" doesn't trigger when typing "width"
arnog Jun 9, 2020
b547446
fix #492
arnog Jun 10, 2020
e36d1ee
chore: changelog
arnog Jun 10, 2020
dba9a49
0.53.2
arnog Jun 10, 2020
1d4be6e
fix: mathml output
arnog Jun 11, 2020
8d7d22d
build(deps-dev): bump lint-staged from 10.2.9 to 10.2.10
dependabot-preview[bot] Jun 13, 2020
415370a
Merge pull request #498 from arnog/dependabot/npm_and_yarn/lint-stage…
dependabot-preview[bot] Jun 13, 2020
379ce64
build(deps-dev): bump rollup from 2.15.0 to 2.16.0
dependabot-preview[bot] Jun 13, 2020
9a43c35
Merge pull request #499 from arnog/dependabot/npm_and_yarn/rollup-2.16.0
dependabot-preview[bot] Jun 13, 2020
a156c4c
deps: update
arnog Jun 13, 2020
6ebf3d1
Merge branch 'master' of github.com:arnog/mathlive
arnog Jun 13, 2020
b42c773
Fix #478
arnog Jun 16, 2020
9ce869d
chore: switch to package-lock.json instead of npm-shrinkwrap.json. Th…
arnog Jun 18, 2020
a51d979
build(deps-dev): bump @typescript-eslint/parser from 3.2.0 to 3.3.0
dependabot-preview[bot] Jun 20, 2020
5690562
Merge pull request #509 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jun 20, 2020
8fbbf64
build(deps-dev): bump eslint from 7.2.0 to 7.3.0
dependabot-preview[bot] Jun 20, 2020
2693b2d
Merge pull request #513 from arnog/dependabot/npm_and_yarn/eslint-7.3.0
dependabot-preview[bot] Jun 20, 2020
043b93e
build(deps-dev): bump @typescript-eslint/typescript-estree
dependabot-preview[bot] Jun 20, 2020
e9e8c9d
Merge pull request #511 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jun 20, 2020
40cebb6
chore: emit lint warnings when using DOM globals, e.g. "name", "parent"
arnog Jun 24, 2020
89c694e
bug: properly spell 'arccos', it's 'arcos'
arnog Jun 24, 2020
1aa0834
bug: fix an issue where the alt+V shortcut would not insert a placeho…
arnog Jun 24, 2020
89a69a3
bug: fix smartmode to not convert decimal point (i.e. "123.456")
arnog Jun 24, 2020
13e8af8
bug: fix smartfence for square brackets
arnog Jun 24, 2020
1433bef
bug: correctly emit latex for `\leftright` with a command as a fence …
arnog Jun 24, 2020
e431116
feature: next gen MathJSON, first pass, WIP
arnog Jun 24, 2020
1dfcfdb
Merge branch 'master' of github.com:arnog/mathlive
arnog Jun 24, 2020
011718f
bug: fix#505, fix#517
arnog Jun 24, 2020
3ce9b06
chore: dist
arnog Jun 24, 2020
5194684
bug: workaround for a Safari bug where the caret was not blinking
arnog Jun 24, 2020
9278259
bug: fix #504 "Spacing is inconsistent after editing"
arnog Jun 24, 2020
f3e5aba
feat: attempt to address #508 by generating a separate mathlive-fonts…
arnog Jun 24, 2020
b42cc64
chore: changelog, doc update
arnog Jun 24, 2020
94480ff
0.53.3
arnog Jun 24, 2020
15ea206
bug: fix#490: Firefox incorrectly reports font loading status
arnog Jun 24, 2020
64a928b
fix: Fixed #506
arnog Jun 24, 2020
819bde8
bug: fix #503 Dynamic styles are not applied inside of shadow DOM
arnog Jun 24, 2020
08a000d
chore: deps
arnog Jun 24, 2020
bb98a72
0.54.0
arnog Jun 24, 2020
b3d6bbf
bug: fix stylesheet injection
arnog Jun 24, 2020
f4b6ade
0.54.1
arnog Jun 24, 2020
bfa5ec3
feat(MathJson): WIP for #500: Next Gen MathJSON
arnog Jun 25, 2020
0c1c4fd
build(deps-dev): bump rollup from 2.18.0 to 2.18.1
dependabot-preview[bot] Jun 27, 2020
a5154cf
Merge pull request #520 from arnog/dependabot/npm_and_yarn/rollup-2.18.1
dependabot-preview[bot] Jun 27, 2020
c3a9c97
Merge branch 'master' of github.com:arnog/mathlive
arnog Jun 27, 2020
422d3ba
Fix broken typescript definitions path
OrkhanAlikhanov Jun 27, 2020
ff4f2b0
Merge pull request #521 from OrkhanAlikhanov/patch-1
arnog Jun 27, 2020
377f72c
Merge branch 'master' of github.com:arnog/mathlive
arnog Jun 27, 2020
ecbd4a2
fix: Fix #522: slash key on Spanish ISO keyboards
arnog Jun 28, 2020
2062abd
fix: fix #523 (virtual keyboard fraction did not capture preceding at…
arnog Jul 1, 2020
39a2f7f
build(deps-dev): bump @typescript-eslint/parser from 3.4.0 to 3.5.0
dependabot-preview[bot] Jul 4, 2020
df8d2e5
Merge pull request #526 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jul 4, 2020
36e7935
build(deps-dev): bump typescript from 3.9.5 to 3.9.6
dependabot-preview[bot] Jul 4, 2020
cb4135e
Merge pull request #528 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jul 4, 2020
34ccf25
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot-preview[bot] Jul 4, 2020
7f2bf65
Merge pull request #527 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jul 4, 2020
e1e23f8
build(deps-dev): bump eslint from 7.3.1 to 7.4.0
dependabot-preview[bot] Jul 4, 2020
ee7a550
Merge pull request #531 from arnog/dependabot/npm_and_yarn/eslint-7.4.0
dependabot-preview[bot] Jul 4, 2020
0ac3006
build(deps-dev): bump @typescript-eslint/typescript-estree
dependabot-preview[bot] Jul 4, 2020
1030dcb
Merge pull request #529 from arnog/dependabot/npm_and_yarn/typescript…
dependabot-preview[bot] Jul 4, 2020
6bb49a7
build(deps-dev): bump rollup from 2.18.1 to 2.18.2
dependabot-preview[bot] Jul 4, 2020
fff8f1c
Merge pull request #530 from arnog/dependabot/npm_and_yarn/rollup-2.18.2
dependabot-preview[bot] Jul 4, 2020
91874f0
Update lockfile
stormwarning Jul 8, 2020
6f43b54
Change `data-` attribute for tooltips
stormwarning Jul 8, 2020
2f80922
Merge pull request #535 from stormwarning/fix-tooltip-style-scope
arnog Jul 8, 2020
fb3b0d8
fix: `import.meta` causes issues #508
arnog Aug 17, 2020
db67276
Merge branch 'master' of github.com:arnog/mathlive
arnog Aug 17, 2020
f85a8ca
0.55.0
arnog Aug 17, 2020
92d56eb
fix: change multiply trigger to \\cdot
stefnotch Aug 19, 2020
b62cf48
Merge pull request #589 from stefnotch/patch-2
arnog Aug 19, 2020
5305425
Merge branch 'master' of github.com:arnog/mathlive
arnog Aug 19, 2020
e7ad64e
Fix #590. Deps. Export `mathjsonToLatex` and `latexToMathjson`, and `…
arnog Aug 19, 2020
6333d2e
feat: `\phantom` and `\smash` support + deps
arnog Aug 20, 2020
db5fc3d
feat: fix #182 mhchem support
arnog Aug 22, 2020
265dd23
dist
arnog Aug 22, 2020
e04b3e9
dist
arnog Aug 22, 2020
94b1415
0.56.0
arnog Aug 22, 2020
8fe5f55
fix: Add more ways to move out of mathfield #591
stefnotch Aug 23, 2020
33e585e
fix: Don't throw an error when the first argument of \enclose is empty
stefnotch Aug 25, 2020
829ec93
fix: Handle return value of moveOut hook
stefnotch Aug 25, 2020
01c4029
Merge pull request #595 from stefnotch/fix-definitions-enclose-missin…
arnog Aug 26, 2020
3de6e9a
Merge branch 'master' into fix-591
arnog Aug 26, 2020
c6fc1a7
Merge pull request #594 from stefnotch/fix-591
arnog Aug 26, 2020
7e0ffae
Merge branches 'master' and 'master' of github.com:arnog/mathlive
arnog Aug 26, 2020
2d356b2
deps
arnog Aug 30, 2020
5c773cd
fix #611
arnog Sep 2, 2020
d678170
Fix MathJSON issue where multiplication operand of "1" was incorrectl…
arnog Sep 2, 2020
982ef47
Fix issue when typing "sqrt"
beneater Sep 3, 2020
f9d6006
Merge pull request #612 from beneater/fix-sqrt
arnog Sep 3, 2020
5ecdd33
fix: getConfig with single key now correctly infers type
stefnotch Sep 5, 2020
5e2e7dd
Merge pull request #614 from stefnotch/fix-get-config-type
arnog Sep 6, 2020
8a914fb
deps
arnog Sep 6, 2020
baa056f
fix: getConfig with keys array correctly infers type
stefnotch Sep 6, 2020
5d3dadf
fix: Don't use any[] for the selector type
stefnotch Sep 6, 2020
7325ed1
fix: Make it explicit that setConfig() only needs a partial config
stefnotch Sep 6, 2020
141e536
Merge pull request #627 from stefnotch/feat-improve-types
arnog Sep 6, 2020
cf0b2e1
fix: #628
arnog Sep 10, 2020
be533c9
Merge branch 'master' of github.com:arnog/mathlive
arnog Sep 10, 2020
9514f15
fix: Use camelCase command names
stefnotch Sep 12, 2020
5786072
feat: Added getCaretPosition() and setCaretPosition()
stefnotch Sep 13, 2020
acadaa5
fix: Call model.announce in setCaretPosition
stefnotch Sep 14, 2020
c55612c
fix: Improve tokenizer to handle up to 6 carets for unicode characters
stefnotch Sep 14, 2020
2ca34de
fix: Arbitrary characters in \text{}
stefnotch Sep 14, 2020
2e66e9e
chore: remove unused commandAllowed function
stefnotch Sep 14, 2020
149c6b7
fix: Also handle graphemes by moving the block to the else brack
stefnotch Sep 14, 2020
143a65d
chore: Remove unused mode parameter from getValue
stefnotch Sep 14, 2020
82db841
fix: fixed #573
arnog Sep 15, 2020
3e290bd
Merge pull request #636 from stefnotch/feat-caret-position
arnog Sep 15, 2020
490eba2
fix: emit escaped symbols
stefnotch Sep 15, 2020
add5a72
fix: Handle backspace with regards to inline shortcuts
stefnotch Sep 16, 2020
bcefbbc
Merge pull request #639 from stefnotch/fix-inline-shortcut-backspace
arnog Sep 16, 2020
b1f80dd
Merge pull request #638 from stefnotch/fix-non-canonical-text-characters
arnog Sep 21, 2020
d013e35
deps
arnog Sep 23, 2020
17abfb6
fixed #637 isues drawing fraction line and surd line in Chrome at som…
arnog Sep 25, 2020
d408033
Merge branch 'master' of https://github.com/arnog/mathlive into master
arnog Sep 25, 2020
f5c284e
chore: use Partial<> higher-order type for config options
arnog Sep 25, 2020
61ae166
Improved build progress display
arnog Oct 3, 2020
bc15d4b
Improved layout of virtual keyboard on narrow mobile devices
arnog Oct 3, 2020
2e2c640
deps update
arnog Oct 3, 2020
a8c8f57
fix: take the locale into account when it is set manually
arnog Oct 3, 2020
0e4504d
fix: reflect in config the current localization strings
arnog Oct 3, 2020
8b89a90
fix: parse and render the field content when configs are updated (e.g…
arnog Oct 3, 2020
d192a7a
fix: return correct config.strings even for default strings
arnog Oct 3, 2020
5c69d86
editor/parse-math-string: pasting/writing `sqrt` should behave the same
AceGentile Oct 3, 2020
159ad08
fix: when make the virtual keyboard visible, focus the mathfield
arnog Oct 4, 2020
16db47d
fix: fixed #543, spurious blur/focus events in some cases
arnog Oct 4, 2020
cebe516
Merge pull request #662 from AceGentile/fix_paste_sqrt
arnog Oct 5, 2020
bc8cb97
chore: remove unnecessary export
arnog Oct 6, 2020
4334ed9
chore: improved typing for virtual keyboard data structures
arnog Oct 6, 2020
e8ead12
fix: dont't `preventDefault()` in a passive handler
arnog Oct 6, 2020
a0fda5d
fix: respect tabIndex when tabbing
arnog Oct 6, 2020
4e8defc
feat: #665 MathfieldElement and `<math-field>` tag
arnog Oct 6, 2020
92af21b
Merge branch 'master' of https://github.com/arnog/mathlive into master
arnog Oct 6, 2020
45d8c6e
merge + deps
arnog Oct 6, 2020
b3de7fd
fix: attempt to fix #655 (square root line on Firefox Windows)
arnog Oct 7, 2020
c20658a
fix: second attempt at fixing #655
arnog Oct 7, 2020
f6511a8
feat: web component: added option to configure that `<math-field>` us…
arnog Oct 7, 2020
f8e0ae5
chore: streamlined issue template
arnog Oct 8, 2020
170ce00
docs: update documentation to use web components
arnog Oct 8, 2020
1fd261b
chore: added math-json submodule
arnog Oct 9, 2020
e3557b7
feat: Fix #667 Modernized Public API
arnog Oct 9, 2020
902b8f5
0.57.0
arnog Oct 9, 2020
937b66a
fix: Don't use skipBoundary with xrightarrow and others
stefnotch Oct 4, 2020
67dc105
chore: downgrade minimum version of node required to LTS (12).
arnog Oct 9, 2020
9a92c2e
Merge pull request #668 from stefnotch/fix-xrightarrow-caret
arnog Oct 9, 2020
2c33b5b
chore: use `Range` instead of `Path` in undo manager
arnog Oct 10, 2020
60fb6f7
doc
arnog Oct 10, 2020
89baf9f
bug: reintroduce `$text()` which got accidentially dropped
arnog Oct 10, 2020
a8c9f5b
bug: vertically center tooltip text on narrow layout
arnog Oct 10, 2020
3b5e239
bug: fix issue where inline shortcuts would not be inserted correctly…
arnog Oct 10, 2020
ea5fbea
fix: follow up on last CL
arnog Oct 10, 2020
e663b9e
feat: web component: add `mount'` and `unmount` events, fix CSS Varia…
arnog Oct 10, 2020
868399b
doc
arnog Oct 10, 2020
b5d390a
fix: Fixed #225
arnog Oct 11, 2020
f9066f0
chore: documentation for CSS ::part(). Also typo in keybinding
arnog Oct 11, 2020
1f51da6
0.58.0
arnog Oct 11, 2020
05bbe4d
doc: fix #546, additional documentation improvements
arnog Oct 12, 2020
fdfa9ea
feat: IME support. Fixes #555
arnog Oct 12, 2020
2f5ed9a
fix: added missing `get value` signatures. Fixed issues getting corre…
arnog Oct 13, 2020
96cebba
fix: Fix #555, part two.
arnog Oct 13, 2020
d26a40c
breaking: renamed `getCaretPosition`/`setCaretPosition`
arnog Oct 13, 2020
211d048
fix: fixed #290: don't use phantom `scroller` divs to block pointer i…
arnog Oct 14, 2020
c02edfc
fix: fixed for #555, part three. WIP for `find()`. Rearchitected keyb…
arnog Oct 14, 2020
4fac407
chore: deps & dist
arnog Oct 14, 2020
9a945ef
chore: refactor and document a11y
arnog Oct 15, 2020
5c5f13e
fix: Fixed #685: virtual keyboard event listeners were not properly r…
arnog Oct 26, 2020
0c725dc
fix: avoid triggering console errors when bluring and the virtual key…
arnog Oct 27, 2020
83cb855
chore: deps
arnog Nov 4, 2020
412368e
0.59.0
arnog Nov 4, 2020
9701e2b
Fix issue #697: missed styles for popover in `math-field` element
alexprey Nov 6, 2020
14ba7e2
Merge pull request #700 from alexprey/popover-fix
arnog Nov 6, 2020
16cfd03
chore: deps
arnog Nov 7, 2020
44f0c5d
arch: new selection (wip)
arnog Nov 10, 2020
6303150
Merge branch 'master' of https://github.com/arnog/mathlive into master
arnog Nov 10, 2020
b710489
chore: deps
arnog Nov 10, 2020
bcb807d
chore: remove console() calls, cleaned up CHANGELOG
arnog Nov 10, 2020
61dca41
fix #616
arnog Nov 10, 2020
24c0d60
Merge remote-tracking branch 'origin/master' into master
alexprey Nov 10, 2020
209c4f1
fix: when hoisting a genfrac, place the cursor at the boundary of the…
arnog Nov 10, 2020
fca9ec6
Issue 698: Feature request: disable toolbar on virtual keyboard
alexprey Nov 11, 2020
8b1952e
Merge branch 'master' into feature/698-keyboard-toolbar-config
alexprey Nov 11, 2020
68bbfc2
fix #710
arnog Nov 11, 2020
ac9e088
fix #704
arnog Nov 11, 2020
4ee008b
Merge branch 'master' into feature/698-keyboard-toolbar-config
arnog Nov 12, 2020
b96ab45
Update virtual-keyboard-utils.ts
arnog Nov 12, 2020
8642e43
Update options.ts
arnog Nov 12, 2020
dd2b552
Update virtual-keyboard-utils.ts
arnog Nov 12, 2020
b65923a
Update options.ts
arnog Nov 12, 2020
03a30c4
Merge pull request #705 from alexprey/feature/698-keyboard-toolbar-co…
arnog Nov 12, 2020
66ce79c
Fix keyboard event listener removal
Nov 13, 2020
d034fce
Add remove event listeners in dispose
Nov 13, 2020
67d6319
Merge pull request #712 from andresriveratoro/fix-keyboard-events-rem…
arnog Nov 13, 2020
1e53485
chore: in Travis, `run dist`, not dev build
arnog Nov 13, 2020
0f110f6
fix Shift + ArrowRight key pressing leads to error #711
arnog Nov 13, 2020
a57bedc
Merge branch 'master' of https://github.com/arnog/mathlive into master
arnog Nov 13, 2020
db4fee5
fix: properly notify when content has changed
arnog Nov 13, 2020
dcb2555
doc: updated CONTRIBUTOR_GUIDE
arnog Nov 14, 2020
fa10f5b
feat: Latex editing mode
arnog Nov 16, 2020
c721fbe
feat: Fixed #387 Added `find()` method.
arnog Nov 16, 2020
8729088
feat: #387 (cont.) Added `replace()` method
arnog Nov 17, 2020
442ca5c
chore(core): update from master upstream
arncet Nov 20, 2020
6860569
fix(build): output es5
mderrier Nov 20, 2020
10b3f5c
fix(build): add gitignore
mderrier Nov 20, 2020
afcbfa1
Merge pull request #8 from lelivrescolaire/fix/es5
arncet Nov 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 0 additions & 16 deletions .codeclimate.yml

This file was deleted.

315 changes: 301 additions & 14 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,271 @@
"env": {
"browser": true,
// "commonjs": true,
"es6": true,
"node": true,
// "es6": true,
"es2020": true,
"jest": true,
"node": true, // For jest, config files, etc...
"amd": true,
"mocha": true
},

"parser": "@typescript-eslint/parser",

"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
// Configure the parser with the tsconfig file in the root project
// (or rather an extended version that add peripheral files such as rollup.config.js
// so that eslint doesn't complain that they are not in the project)
"project": "./tsconfig.eslint.json",

// "ecmaFeatures": { "jsx": false }, // default
"ecmaVersion": 2020,
// "sourceType": "module" // Allow the use of import
"extraFileExtensions": [".less"]
},

"extends": [
// Uses the recommended rules for Typescript
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
// Disable rules that conflict with prettier
// See https://prettier.io/docs/en/integrating-with-linters.html
"plugin:prettier/recommended"

// "plugin:no-unsanitized/DOM"
],
// See http://eslint.org/docs/rules/

// Note:
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
// See http://eslint.org/docs/rules/
"rules": {
// Note:
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
// "no-unsanitized/method": [
// "warn",
// {
// // "disableDefault": true,
// "escape": {
// "methods": [
// "createHTML",
// "mathfield.config.createHTML",
// "MathfieldPrivate.config.createHTML"
// ]
// }
// }
// ],
"no-restricted-globals": [
"error",
"postMessage",
"blur",
"focus",
"close",
"frames",
"self",
"parent",
"opener",
"top",
"length",
"closed",
"location",
"origin",
"name",
"locationbar",
"menubar",
"personalbar",
"scrollbars",
"statusbar",
"toolbar",
"status",
"frameElement",
// "navigator",
"customElements",
"external",
"screen",
"innerWidth",
"innerHeight",
"scrollX",
"pageXOffset",
"scrollY",
"pageYOffset",
"screenX",
"screenY",
"outerWidth",
"outerHeight",
"devicePixelRatio",
"clientInformation",
"screenLeft",
"screenTop",
"defaultStatus",
"defaultstatus",
"styleMedia",
"onanimationend",
"onanimationiteration",
"onanimationstart",
"onsearch",
"ontransitionend",
"onwebkitanimationend",
"onwebkitanimationiteration",
"onwebkitanimationstart",
"onwebkittransitionend",
"isSecureContext",
"onabort",
"onblur",
"oncancel",
"oncanplay",
"oncanplaythrough",
"onchange",
"onclick",
"onclose",
"oncontextmenu",
"oncuechange",
"ondblclick",
"ondrag",
"ondragend",
"ondragenter",
"ondragleave",
"ondragover",
"ondragstart",
"ondrop",
"ondurationchange",
"onemptied",
"onended",
"onerror",
"onfocus",
"oninput",
"oninvalid",
"onkeydown",
"onkeypress",
"onkeyup",
"onload",
"onloadeddata",
"onloadedmetadata",
"onloadstart",
"onmousedown",
"onmouseenter",
"onmouseleave",
"onmousemove",
"onmouseout",
"onmouseover",
"onmouseup",
"onmousewheel",
"onpause",
"onplay",
"onplaying",
"onprogress",
"onratechange",
"onreset",
"onresize",
"onscroll",
"onseeked",
"onseeking",
"onselect",
"onstalled",
"onsubmit",
"onsuspend",
"ontimeupdate",
"ontoggle",
"onvolumechange",
"onwaiting",
"onwheel",
"onauxclick",
"ongotpointercapture",
"onlostpointercapture",
"onpointerdown",
"onpointermove",
"onpointerup",
"onpointercancel",
"onpointerover",
"onpointerout",
"onpointerenter",
"onpointerleave",
"onafterprint",
"onbeforeprint",
"onbeforeunload",
"onhashchange",
"onlanguagechange",
"onmessage",
"onmessageerror",
"onoffline",
"ononline",
"onpagehide",
"onpageshow",
"onpopstate",
"onrejectionhandled",
"onstorage",
"onunhandledrejection",
"onunload",
"performance",
"stop",
"open",
"print",
"captureEvents",
"releaseEvents",
// "getComputedStyle",
"matchMedia",
"moveTo",
"moveBy",
"resizeTo",
"resizeBy",
"getSelection",
"find",
"createImageBitmap",
"scroll",
"scrollTo",
"scrollBy",
"onappinstalled",
"onbeforeinstallprompt",
"crypto",
"ondevicemotion",
"ondeviceorientation",
"ondeviceorientationabsolute",
"indexedDB",
"webkitStorageInfo",
"chrome",
"visualViewport",
"speechSynthesis",
"webkitRequestFileSystem",
"webkitResolveLocalFileSystemURL",
"openDatabase"
],

// Turn off rules that are Typescript specific
// (they are turned on later in the "overrides" section)
"@typescript-eslint/explicit-module-boundary-types": "off",

// We use @ts-ignore to generate the .d.ts files using tsc, even though
// they import .less file which tsc doesn't know to handle.
"@typescript-eslint/ban-ts-comment": "off",

// When used with optional chaining, eslint can give an incorrect warning
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "warn",

"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],

// note you must disable the base rule as it can report incorrect errors
"indent": "off",

"no-const-assign": "warn",
"no-this-before-super": "warn",
// "no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
// "varsIgnorePattern": "^_",
// "vars": "all",
// "args": "after-used",
// "ignoreRestSiblings": false
}
],

"constructor-super": "warn",

"block-scoped-var": "error",
Expand All @@ -53,16 +285,17 @@
"new-cap": "warn",
"no-bitwise": "off",
"no-console": "off",
"no-dupe-class-members": "off", // Support TypeScritp polymorphism
"no-else-return": "warn",
"no-eval": "error",
"no-fallthrough": "error",
"no-invalid-this": "warn",
"no-lone-blocks": "warn",
"no-return-assign": ["warn", "always"],
"no-redeclare": "off",
"no-self-compare": "error",
"no-sequences": "warn",
"no-unneeded-ternary": "warn",
"no-unused-expressions": "warn",
"no-useless-call": "warn",
"no-var": "error",
"no-with": "error",
Expand All @@ -73,5 +306,59 @@
"space-infix-ops": ["error", { "int32Hint": false }],

"no-trailing-spaces": [1, { "skipBlankLines": true }]
}
},
"overrides": [
{
// Typescript-specific rules
"files": ["*.ts"],
"rules": {
// "@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",

"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "typeParameter",
"format": ["PascalCase"]
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"variables": false,
"typedefs": false
}
],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowedNames": ["self", "that"] // Allow `const self = this`; `[]` by default
}
],
"@typescript-eslint/no-for-in-array": "error",

"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-unnecessary-type-arguments": "warn",
// "@typescript-eslint/typedef": [
// "warn",
// {
// "parameter": true,
// "arrowParameter": false,
// "variableDeclaration": false
// }
// ],

"@typescript-eslint/array-type": [
"warn",
{ "default": "array" }
],

"@typescript-eslint/no-explicit-any": "off"
}
}
]
}
Loading