Skip to content

Commit

Permalink
Lint + add prettier to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Sep 22, 2022
1 parent 8c1754c commit b4bd5d9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"default": true,
"MD013": { "line_length": 120},
"MD013": { "line_length": 120 },
"MD041": false
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"scripts": {
"serve": "cross-env BUILD_ENV=local vue-cli-service serve",
"build": "cross-env BUILD_ENV=camptocamp vue-cli-service build --skip-plugins eslint",
"lint": "vue-cli-service lint",
"lint": "prettier --write \"**/*.{ts,js,json,css,scss,less,md,html}\" && vue-cli-service lint",
"build:github": "cross-env BUILD_ENV=github vue-cli-service build --skip-plugins eslint",
"generate-icons": "node tools/generate-icons.js",
"lint:no-fix": "vue-cli-service lint --no-fix",
"lint:no-fix": "prettier --check \"**/*.{ts,js,json,css,scss,less,md,html}\" && vue-cli-service lint --no-fix",
"messages:extract": "node tools/extract-messages.js",
"prepare": "husky install && npm run snyk-protect",
"snyk-protect": "snyk-protect",
Expand Down
2 changes: 1 addition & 1 deletion public/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This folder contains [static files](https://cli.vuejs.org/guide/html-and-static-assets.html#static-assets-handling)
referenced in `/src` by absolute path. Actually, it should not contains anything but index.html, and robots.txt.
referenced in `/src` by absolute path. Actually, it should not contains anything but index.html, and robots.txt.
2 changes: 1 addition & 1 deletion public/google2547ab594974f932.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-site-verification: google2547ab594974f932.html
google-site-verification: google2547ab594974f932.html
2 changes: 1 addition & 1 deletion public/google7c06555988eb9ae6.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-site-verification: google7c06555988eb9ae6.html
google-site-verification: google7c06555988eb9ae6.html
2 changes: 1 addition & 1 deletion src/assets/sass/external-links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $escaped-color-link: '%23#{str-slice(inspect($color-link), 2)}';
@media print {
a[href*="//"]::after
{
content: " [" attr(href) "]";
content: ' [' attr(href) ']';
font-size: 0.6em;
background: none;
padding-right: 0;
Expand Down
3 changes: 1 addition & 2 deletions src/assets/sass/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
:lang(hu) &::after,
:lang(it) &::after,
:lang(sl) &::after,
:lang(zh) &::after
{
:lang(zh) &::after {
content: ':';
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/apis/forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Forum.prototype.getLatest = function (excludeCategoryIds) {
};

Forum.prototype.readAnnouncement = function (lang) {
lang = ['zh_CN', 'hu','sl'].includes(lang) ? 'en' : lang;
lang = ['zh_CN', 'hu', 'sl'].includes(lang) ? 'en' : lang;
return this.get('/t/annonce-' + lang + '.json');
};

Expand Down
2 changes: 1 addition & 1 deletion src/js/vue-plugins/gettext-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function getMessages(lang) {
return import(/* webpackChunkName: "translations-es" */ `@/translations/es.json`);
} else if (lang === 'hu') {
return import(/* webpackChunkName: "translations-hu" */ `@/translations/hu.json`);
} else if (lang === 'zh_CN') {
} else if (lang === 'zh_CN') {
return import(/* webpackChunkName: "translations-zh" */ `@/translations/zh_CN.json`);
} else if (lang === 'sl') {
return import(/* webpackChunkName: "translations-sl" */ `@/translations/sl.json`);
Expand Down

0 comments on commit b4bd5d9

Please sign in to comment.