diff --git a/packages/mindplot/.eslintrc.json b/packages/mindplot/.eslintrc.json index 3b51866a..d812e4f8 100644 --- a/packages/mindplot/.eslintrc.json +++ b/packages/mindplot/.eslintrc.json @@ -20,29 +20,43 @@ }, "plugins": [ "@typescript-eslint" - ], + ], "rules": { "no-underscore-dangle": "off", "no-plusplus": "off", "no-param-reassign": "off", - "max-len": [1,300], + "max-len": [ + 1, + 300 + ], "class-methods-use-this": "off", - "no-console" : "off", + "no-console": "off", // codebase contains many this aliases, fix in the future? "@typescript-eslint/no-this-alias": "off", // Remove once migration is completed ... "@typescript-eslint/no-explicit-any": "warn", - "import/extensions": "warn" - + "import/extensions": [ + "error", + "ignorePackages", + { + "js": "never", + "jsx": "never", + "ts": "never", + "tsx": "never" + } + ] }, "settings": { - "import/resolver": { - "webpack": { - "config": "./webpack.common.js" - }, - "node": { - "extensions": [".js",".ts"] - } - } - } -} + "import/resolver": { + "webpack": { + "config": "./webpack.common.js" + }, + "node": { + "extensions": [ + ".js", + ".ts" + ] + } + } + } +} \ No newline at end of file diff --git a/packages/mindplot/src/components/RestPersistenceManager.ts b/packages/mindplot/src/components/RestPersistenceManager.ts index 502ed93c..463f0a51 100644 --- a/packages/mindplot/src/components/RestPersistenceManager.ts +++ b/packages/mindplot/src/components/RestPersistenceManager.ts @@ -23,11 +23,17 @@ import PersistenceManager from './PersistenceManager'; class RESTPersistenceManager extends PersistenceManager { private documentUrl: string; + private revertUrl: string; + private lockUrl: string; + private timestamp: string; + private session: string; + private onSave: boolean; + private clearTimeout; constructor(options) {