mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Remove codes that require expensive polyfill (#1469)
* Revert "Cleanup domTree.js to re-use code (#1305)"
This reverts commit 9bb48b83f1
.
* Cleanup domTree.js to re-use code
* Extract common constructor/methods into functions
* Remove for...of
* Added eslint rule to disallow for...of
* Remove array destructuring
* Added eslint rule to disallow array destructuring
* Add eslint rule to disallow class inheritance
* Remove Object.keys and Object.assign
* Do not polyfill Object.freeze
* Babel: enable loose mode
* Undo disabling `linebreak-style`
* Move `children` initialization out of `initNode`
* Blacklist files for `no-restricted-syntax`
* Revert "Remove array destructuring"
This reverts commit c9d52c2db31c68cca77fea6ad774ee58b0632ff3.
This commit is contained in:
committed by
Kevin Barabash
parent
8eed4e2795
commit
c9947220b6
@@ -70,6 +70,13 @@
|
||||
"valid-jsdoc": 0,
|
||||
"require-jsdoc": 0
|
||||
},
|
||||
"overrides": [{
|
||||
"files": ["katex.js", "src/**/*.js"],
|
||||
"excludedFiles": "unicodeMake.js",
|
||||
"rules": {
|
||||
"no-restricted-syntax": [2, "ForOfStatement", "ClassDeclaration[superClass]", "ClassExpression[superClass]"]
|
||||
}
|
||||
}],
|
||||
"env": {
|
||||
"es6": true,
|
||||
"node": true,
|
||||
|
Reference in New Issue
Block a user