Skip to content

Commit

Permalink
Fix linter and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ap3rtur3 committed Jun 26, 2024
1 parent d7ad722 commit a4a0e9b
Show file tree
Hide file tree
Showing 12 changed files with 297 additions and 282 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ module.exports = {
rules: {
'object-curly-spacing': ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'vue/multi-word-component-names': 'off',
}
};
505 changes: 282 additions & 223 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"develop": "gridsome develop",
"explore": "gridsome explore",
"lint": "eslint --ext .ts,.js,.vue src",
"lint:fix": "eslint --ext .ts,.js,.vue src --fix",
"cli": "DOTENV_CONFIG_PATH=.cli node -r dotenv/config ./cli/index.js"
},
"dependencies": {
Expand All @@ -39,9 +40,9 @@
"@noxify/gridsome-remark-table-align": "^1.0.0",
"dotenv": "^16.0.1",
"enquirer": "^2.3.6",
"eslint": "^8.18.0",
"eslint-plugin-vue": "^9.1.1",
"eslint": "^7.32.0",
"eslint-plugin-gridsome": "^1.6.2",
"eslint-plugin-vue": "^9.1.1",
"fuse.js": "^6.6.2",
"gridsome-plugin-htaccess": "^0.2.1",
"gridsome-plugin-service-worker": "^0.2.8",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Dots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
<div ref="wrapper">
<svg ref="svg" :width="width" :height="height" :viewBox="viewBox">
<circle
v-for="dot in dots"
v-for="(dot, index) in dots"
:cx="dot.x"
:cy="dot.y"
:r="size"
:key="index"
fill="#1b365c"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TeamMember.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
role: String,
image: String,
github: String,
likes: String
likes: String,
},
components: {
GithubIcon,
Expand Down
2 changes: 1 addition & 1 deletion src/components/content/Documentation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export default {
showPrevNextLinks() {
return this.page.prev || this.page.next;
},
}
},
};
</script>
10 changes: 0 additions & 10 deletions src/components/home/Hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,3 @@
</div>
</div>
</template>

<script>
import DeployNow from '~/components/DeployNow';
export default {
components: {
DeployNow,
},
};
</script>
1 change: 1 addition & 0 deletions src/components/home/Samples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:class="{[logo]: true}"
:src="logoPath(logo)"
:alt="`${logo} logo`"
:key="logo"
/>

<div class="container">
Expand Down
9 changes: 1 addition & 8 deletions src/layouts/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,13 @@ query {

<script>
import { mapGetters, mapActions } from "vuex";
import BullhornOutline from "vue-material-design-icons/BullhornOutline";
import ChevronDoubleRightIcon from "vue-material-design-icons/ChevronDoubleRight";
import LayoutHeader from "~/components/LayoutHeader";
import LayoutFooter from "~/components/LayoutFooter";
import Banner from "~/components/Banner";
import Sidebar from "~/components/Sidebar";
import JobSearchLink from "~/components/JobSearchLink";
export default {
components: {
Banner,
BullhornOutline,
ChevronDoubleRightIcon,
JobSearchLink,
LayoutFooter,
LayoutHeader,
Sidebar,
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function (Vue, { router, head, appOptions }) {
//});
head.meta.push({
name: 'google-site-verification',
content: 'UtLaJ4v0UZBDPJVc8DqCyiUPSSz9TtMroKmflhpH2eo'
content: 'UtLaJ4v0UZBDPJVc8DqCyiUPSSz9TtMroKmflhpH2eo',
})

// Add meta data to each page
Expand Down
31 changes: 0 additions & 31 deletions src/pages/AboutUs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,6 @@
:key="member.name"
v-bind="member"
/>

<!-- <TeamMember image="octocat.svg">
<div>
<div class="title !pb-0">
{{ $t('job-offer.team-title') }}
</div>
<div>
{{ $t('job-offer.team-subtitle') }}
</div>
</div>
<div>
<a
v-for="[role, link] in jobOffers"
:key="role"
:href="link"
class="flex text-sm leading-tight hover:underline pb-2"
rel="noreferrer"
>
<OpenInNew class="icon" decorative />
{{ $t(`job-offer.${role}`) }}
</a>
</div>
</TeamMember>-->
</div>
</div>
</Layout>
Expand All @@ -87,20 +64,12 @@ query {
</page-query>

<script>
import OpenInNew from 'vue-material-design-icons/OpenInNew';
import ChevronDoubleRightIcon from 'vue-material-design-icons/ChevronDoubleRight';
import BullhornOutline from 'vue-material-design-icons/BullhornOutline';
import TeamMember from '~/components/TeamMember';
import JobSearchLink from '~/components/JobSearchLink';
import { metaInfo } from '~/libs/seo';
export default {
components: {
OpenInNew,
ChevronDoubleRightIcon,
BullhornOutline,
TeamMember,
JobSearchLink,
},
data() {
return {
Expand Down
8 changes: 4 additions & 4 deletions src/transformers/table-transformer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { selectAll } = require('unist-util-select');
//const { selectAll } = require('unist-util-select');
const map = require('unist-util-map');
const toHast = require('mdast-util-to-hast');
//const toHast = require('mdast-util-to-hast');

const addClasses = (node, classes) => {
node.data = node.data || {};
Expand All @@ -16,13 +16,13 @@ function wrapNode(node) {
children: [node],
data: {
//hName: 'div',
}
},
})
delete node.position;
return addClasses(wrapper,`${node.type}-wrapper`);
}

module.exports = function (options) {
module.exports = function () {
return async function transform(tree) {
return map(tree, (node) => {
if (node.type === 'table') console.log('----------\nNode: ', node);
Expand Down

0 comments on commit a4a0e9b

Please sign in to comment.