Skip to content

Commit c24db37

Browse files
committed
Dependency updates and accessibility fixes
1 parent fdc75d8 commit c24db37

File tree

10 files changed

+4176
-6115
lines changed

10 files changed

+4176
-6115
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ module.exports = {
1010
rules: {
1111
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1212
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
13-
'max-len': ['error', { 'code': 128, 'ignoreComments': true }],
13+
'max-len': ['error', { code: 128, ignoreComments: true }],
14+
'vue/multi-word-component-names': 'off',
1415
},
1516
parserOptions: {
16-
parser: 'babel-eslint',
17+
parser: '@babel/eslint-parser',
1718
},
1819
};

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/app',
3+
'@vue/cli-plugin-babel/preset',
44
],
55
};

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,29 @@
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
7-
"start": "vue-cli-service serve",
87
"build": "vue-cli-service build",
9-
"lint": "vue-cli-service lint"
8+
"lint": "vue-cli-service lint",
9+
"start": "vue-cli-service serve"
1010
},
1111
"dependencies": {
1212
"axios": "^0.21.1",
13-
"raw-loader": "^1.0.0",
13+
"core-js": "^3.8.3",
14+
"raw-loader": "^4.0.2",
1415
"vue": "^2.5.17",
1516
"vue-router": "^3.0.2",
1617
"vuex": "^3.1.0"
1718
},
1819
"devDependencies": {
19-
"@vue/cli-plugin-babel": "^3.0.3",
20-
"@vue/cli-plugin-eslint": "^3.0.3",
21-
"@vue/cli-service": "^3.0.3",
22-
"@vue/eslint-config-airbnb": "^3.0.3",
20+
"@babel/core": "^7.12.16",
21+
"@babel/eslint-parser": "^7.12.16",
22+
"@vue/cli-plugin-babel": "~5.0.1",
23+
"@vue/cli-plugin-eslint": "~5.0.1",
24+
"@vue/cli-service": "~5.0.1",
25+
"@vue/eslint-config-airbnb": "^6.0.0",
26+
"eslint": "^7.32.0",
27+
"eslint-plugin-import": "^2.25.3",
28+
"eslint-plugin-vue": "^8.0.3",
29+
"eslint-plugin-vuejs-accessibility": "^1.1.0",
2330
"vue-template-compiler": "^2.5.17"
2431
}
2532
}

src/components/Books/BookSection.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<template>
22
<div class="book-section">
33
<div class="book-section-header"
4-
v-on:click="showBooks = !showBooks"
4+
@click="showBooks = !showBooks"
5+
@keyup.enter="showBooks = !showBooks"
6+
role="button"
7+
tabindex="0"
8+
:aria-label="showBooks ? 'Hide Books' : 'Show Books'"
59
>
610
<div>{{year}}</div>
711
<div>{{bookCount}}</div>

src/components/HomeCanvas/HomeCanvas.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
width="500"
77
height="500"
88
@click="handleMouseClick"
9+
@keyup.enter="handleMouseClick"
910
@mousemove="handleMouseMove"
1011
@mouseleave="handleMouseLeave"
12+
@blur="handleMouseLeave"
1113
>
1214
<Grid />
1315
</canvas>

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import router from './router';
66
Vue.config.productionTip = false;
77

88
new Vue({
9-
render: h => h(App),
9+
render: (h) => h(App),
1010
store,
1111
router,
1212
}).$mount('#app');

src/pages/Work.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ export default {
8989
axios
9090
.get('https://api.github.com/users/kavisherlock/repos?sort=pushed')
9191
.then((response) => {
92-
this.myRepos =
93-
response.data
94-
.filter(repo => !repo.fork && !repo.archived);
92+
this.myRepos = response.data
93+
.filter((repo) => !repo.fork && !repo.archived);
9594
console.log(this.myRepos);
9695
});
9796
},

src/store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default new Vuex.Store({
6565
},
6666
},
6767
getters: {
68-
grid: state => state.grid,
69-
bookMap: state => state.bookMap,
68+
grid: (state) => state.grid,
69+
bookMap: (state) => state.bookMap,
7070
},
7171
});

vue.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ module.exports = {
88
.end();
99
},
1010
};
11-

0 commit comments

Comments
 (0)