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
module.exports = { module.exports = {
root: true, root: true,
env: { env: {
node: true node: true,
}, },
'extends': [ extends: [
'plugin:vue/essential', 'plugin:vue/essential',
'@vue/standard', '@vue/typescript',
'@vue/typescript'
], ],
rules: { rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', '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: { 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 @@ ...@@ -35,19 +35,22 @@
"@types/mocha": "^5.2.5", "@types/mocha": "^5.2.5",
"@types/nightwatch": "^0.9.8", "@types/nightwatch": "^0.9.8",
"@types/sinon": "^7.0.2", "@types/sinon": "^7.0.2",
"@vue/cli-plugin-eslint": "^3.0.0-rc.10", "@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-plugin-typescript": "^3.2.0", "@vue/cli-plugin-typescript": "^3.11.0",
"@vue/cli-plugin-unit-mocha": "^3.2.0", "@vue/cli-plugin-unit-mocha": "^3.11.0",
"@vue/cli-service": "^3.2.0", "@vue/cli-service": "^3.11.0",
"@vue/eslint-config-standard": "^3.0.0-rc.10", "@vue/test-utils": "^1.0.0-beta.29",
"@vue/eslint-config-typescript": "^3.2.0", "@vue/eslint-config-typescript": "^4.0.0",
"@vue/test-utils": "^1.0.0-beta.27", "@typescript-eslint/parser": "^2.3.2",
"@typescript-eslint/eslint-plugin": "^2.3.2",
"chai": "^4.2.0", "chai": "^4.2.0",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"mocha-webpack": "^1.1.0",
"mock-local-storage": "^1.1.8", "mock-local-storage": "^1.1.8",
"sinon": "^7.2.2", "sinon": "^7.2.2",
"typescript": "^3.2.2", "eslint": "^5.16.0",
"vue-template-compiler": "^2.5.16" "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 { ...@@ -72,7 +72,7 @@ export default class AutoLogout extends Vue {
mounted () { mounted () {
// show notification on unload if logged in // show notification on unload if logged in
window.onbeforeunload = event => { window.onbeforeunload = (event: BeforeUnloadEvent) => {
if (Authentication.isLoggedIn) { if (Authentication.isLoggedIn) {
// return something to trigger the confirmation dialog // return something to trigger the confirmation dialog
// since firefox 44 it is no longer possible to show a custom confirmation message // since firefox 44 it is no longer possible to show a custom confirmation message
......
This diff is collapsed.
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