Skip to content

Commit

Permalink
Update ESLint config and fix files
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 6, 2021
1 parent a82a862 commit fdd6382
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 26 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -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",
},
}
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
[
"@vue/app",
{
"useBuiltIns": false,
useBuiltIns: false,
},
],
],
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
10 changes: 5 additions & 5 deletions src/mixins/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getters = {
creator.uri = uri
}
if (name) {
creator.prefLabel = { "en": name }
creator.prefLabel = { en: name }
}
return creator
},
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit fdd6382

Please sign in to comment.