mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
eslint-plugin-flowtype & upgrade to eslint@4 (#849)
* Add eslint-plugin-flowtype. Fix #844 Using the recommended settings for plugin. This involved adding some spaces to some existing union types. * Upgrade to eslint@4, fix spotted bugs Switched to indent-legacy to allow e.g. comments to have extra indents.
This commit is contained in:
committed by
Kevin Barabash
parent
cb7f166a7e
commit
588f5a1ee6
@@ -11,11 +11,12 @@ import {Token} from "./Token";
|
||||
* about where in the source string the problem occurred.
|
||||
*/
|
||||
class ParseError {
|
||||
position: number|void; // Error position based on passed-in Token or ParseNode.
|
||||
position: number | void;
|
||||
// Error position based on passed-in Token or ParseNode.
|
||||
|
||||
constructor(
|
||||
message: string, // The error message
|
||||
token?: Token|ParseNode, // An object providing position information
|
||||
message: string, // The error message
|
||||
token?: Token | ParseNode, // An object providing position information
|
||||
) {
|
||||
let error = "KaTeX parse error: " + message;
|
||||
let start;
|
||||
|
Reference in New Issue
Block a user