This commit is contained in:
Matias Arriola 2022-01-31 10:12:05 -03:00
parent 59acf8e171
commit a502498c42
2 changed files with 35 additions and 15 deletions

View File

@ -20,29 +20,43 @@
}, },
"plugins": [ "plugins": [
"@typescript-eslint" "@typescript-eslint"
], ],
"rules": { "rules": {
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-plusplus": "off", "no-plusplus": "off",
"no-param-reassign": "off", "no-param-reassign": "off",
"max-len": [1,300], "max-len": [
1,
300
],
"class-methods-use-this": "off", "class-methods-use-this": "off",
"no-console" : "off", "no-console": "off",
// codebase contains many this aliases, fix in the future? // codebase contains many this aliases, fix in the future?
"@typescript-eslint/no-this-alias": "off", "@typescript-eslint/no-this-alias": "off",
// Remove once migration is completed ... // Remove once migration is completed ...
"@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-explicit-any": "warn",
"import/extensions": "warn" "import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}, },
"settings": { "settings": {
"import/resolver": { "import/resolver": {
"webpack": { "webpack": {
"config": "./webpack.common.js" "config": "./webpack.common.js"
}, },
"node": { "node": {
"extensions": [".js",".ts"] "extensions": [
} ".js",
} ".ts"
} ]
}
}
}
} }

View File

@ -23,11 +23,17 @@ import PersistenceManager from './PersistenceManager';
class RESTPersistenceManager extends PersistenceManager { class RESTPersistenceManager extends PersistenceManager {
private documentUrl: string; private documentUrl: string;
private revertUrl: string; private revertUrl: string;
private lockUrl: string; private lockUrl: string;
private timestamp: string; private timestamp: string;
private session: string; private session: string;
private onSave: boolean; private onSave: boolean;
private clearTimeout; private clearTimeout;
constructor(options) { constructor(options) {