diff --git a/.eslintrc.js b/.eslintrc.js index 8656e445..4276a6be 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,15 +1,15 @@ module.exports = { - "root": true, - "env": { - "node": true, - "browser": true, + root: true, + env: { + node: true, + browser: true, }, - "extends": [ + extends: [ "gbv", "gbv/vue", ], - "parserOptions": { - "sourceType": "module", - "parser": "babel-eslint", + parserOptions: { + sourceType: "module", + parser: "babel-eslint", }, } diff --git a/babel.config.js b/babel.config.js index 9aba00ab..b73188d8 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,7 +3,7 @@ module.exports = { [ "@vue/app", { - "useBuiltIns": false, + useBuiltIns: false, }, ], ], diff --git a/package-lock.json b/package-lock.json index 91f391e5..a8daa489 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6444,8 +6444,9 @@ } }, "eslint-config-gbv": { - "version": "github:gbv/eslint-config-gbv#ecaf810e2ee82420ea232b74a6e809e62266e028", - "from": "github:gbv/eslint-config-gbv#ecaf810", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/eslint-config-gbv/-/eslint-config-gbv-1.0.1.tgz", + "integrity": "sha512-nmQ45a1B4yLtXkuuIuGV2wcsXQHuHB7M4o0ywGM0NepqSWFbRbS86ruE6ZfWNwc9hFML+b29ID5yGqQtD0iHWw==", "dev": true }, "eslint-config-standard": { diff --git a/package.json b/package.json index 430c51ae..63e25a0d 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "chai": "^4.2.0", "copy-webpack-plugin": "^6.4.1", "eslint": "^7.17.0", - "eslint-config-gbv": "github:gbv/eslint-config-gbv#ecaf810", + "eslint-config-gbv": "^1.0.1", "eslint-plugin-vue": "^6.2.2", "glob": "^7.1.6", "jsdoc-to-markdown": "^6.0.1", diff --git a/src/components/TheSettings.vue b/src/components/TheSettings.vue index d1aaddf2..751af67a 100644 --- a/src/components/TheSettings.vue +++ b/src/components/TheSettings.vue @@ -707,12 +707,12 @@ export default { }, replaceKey(key) { let replacements = { - "shift": "Shift", - "alt": "Alt", - "option": "Alt", - "ctrl": "Ctrl", - "meta": "Cmd", - "command": "Cmd", + shift: "Shift", + alt: "Alt", + option: "Alt", + ctrl: "Ctrl", + meta: "Cmd", + command: "Cmd", } return replacements[key] || key }, diff --git a/src/mixins/global.js b/src/mixins/global.js index 3dd67eaa..35bd7254 100644 --- a/src/mixins/global.js +++ b/src/mixins/global.js @@ -11,12 +11,12 @@ export default { return { // TODO: Solve differently! defaults: { - "delay": { - "short": { "show": 250, "hide": 0 }, - "medium": { "show": 500, "hide": 0 }, - "long": { "show": 1000, "hide": 0 }, + delay: { + short: { show: 250, hide: 0 }, + medium: { show: 500, hide: 0 }, + long: { show: 1000, hide: 0 }, }, - "licenseBadges": { + licenseBadges: { "http://creativecommons.org/publicdomain/zero/1.0/": "https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/cc-zero.svg", "http://creativecommons.org/licenses/by/3.0/": "https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/by.svg", "http://creativecommons.org/licenses/by-nc-nd/3.0/": "https://mirrors.creativecommons.org/presskit/buttons/80x15/svg/by-nc-nd.svg", diff --git a/src/store/index.js b/src/store/index.js index 3a73619c..5df83663 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -67,7 +67,7 @@ const getters = { creator.uri = uri } if (name) { - creator.prefLabel = { "en": name } + creator.prefLabel = { en: name } } return creator }, diff --git a/src/store/modules/mapping.js b/src/store/modules/mapping.js index 4be93ffa..2327f765 100644 --- a/src/store/modules/mapping.js +++ b/src/store/modules/mapping.js @@ -9,8 +9,8 @@ const localStorageKey = "cocoda-mappingTrash--" + window.location.pathname // TODO: - Add support for memberChoice and maybe memberList. const emptyMapping = { - from: { "memberSet": [] }, - to: { "memberSet": [] }, + from: { memberSet: [] }, + to: { memberSet: [] }, fromScheme: null, toScheme: null, type: [jskos.defaultMappingType.uri],