Skip to content
Snippets Groups Projects
Commit c94e5455 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

configured eslint, updated dependencies

parent 3f165e7c
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !187. Comments created here will be created in the context of that merge request.
module.exports = {
root: true,
env: {
node: true
node: true,
},
'extends': [
extends: [
'plugin:vue/essential',
'@vue/standard',
'@vue/typescript'
'@vue/typescript',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'semi': ['error', 'never'],
'quotes': ['error', 'single'],
'eqeqeq': 'error',
'default-case': 'error',
'guard-for-in': 'error',
'yoda': 'error'
},
parserOptions: {
parser: 'typescript-eslint-parser'
}
parser: '@typescript-eslint/parser',
},
plugins: ['@typescript-eslint'],
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
mocha: true,
},
},
],
}
......@@ -35,19 +35,22 @@
"@types/mocha": "^5.2.5",
"@types/nightwatch": "^0.9.8",
"@types/sinon": "^7.0.2",
"@vue/cli-plugin-eslint": "^3.0.0-rc.10",
"@vue/cli-plugin-typescript": "^3.2.0",
"@vue/cli-plugin-unit-mocha": "^3.2.0",
"@vue/cli-service": "^3.2.0",
"@vue/eslint-config-standard": "^3.0.0-rc.10",
"@vue/eslint-config-typescript": "^3.2.0",
"@vue/test-utils": "^1.0.0-beta.27",
"@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-plugin-typescript": "^3.11.0",
"@vue/cli-plugin-unit-mocha": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"@vue/test-utils": "^1.0.0-beta.29",
"@vue/eslint-config-typescript": "^4.0.0",
"@typescript-eslint/parser": "^2.3.2",
"@typescript-eslint/eslint-plugin": "^2.3.2",
"chai": "^4.2.0",
"mocha": "^5.2.0",
"mocha-webpack": "^1.1.0",
"mock-local-storage": "^1.1.8",
"sinon": "^7.2.2",
"typescript": "^3.2.2",
"vue-template-compiler": "^2.5.16"
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"typescript": "^3.4.3",
"vue-template-compiler": "^2.5.16",
"webpack": "^4.41.0"
}
}
......@@ -72,7 +72,7 @@ export default class AutoLogout extends Vue {
mounted () {
// show notification on unload if logged in
window.onbeforeunload = event => {
window.onbeforeunload = (event: BeforeUnloadEvent) => {
if (Authentication.isLoggedIn) {
// return something to trigger the confirmation dialog
// since firefox 44 it is no longer possible to show a custom confirmation message
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment