Skip to content

Commit

Permalink
style: 🛁 switch to tab indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneylab committed Aug 24, 2022
1 parent 3750259 commit 9315d27
Show file tree
Hide file tree
Showing 59 changed files with 1,978 additions and 1,978 deletions.
12 changes: 6 additions & 6 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commitizen": {
"name": "cz_conventional_commits",
"version": "2.0.0",
"tag_format": "$version",
"bump_message": "ci: release $current_version \u2192 $new_version [skip-ci]"
}
"commitizen": {
"name": "cz_conventional_commits",
"version": "2.0.0",
"tag_format": "$version",
"bump_message": "ci: release $current_version \u2192 $new_version [skip-ci]"
}
}
26 changes: 13 additions & 13 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['svelte3'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2019,
},
env: {
browser: true,
es2017: true,
node: true,
},
root: true,
extends: ['eslint:recommended', 'prettier'],
plugins: ['svelte3'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2019,
},
env: {
browser: true,
es2017: true,
node: true,
},
};
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"useTabs": false,
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
"useTabs": true,
"arrowParens": "always",
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
}
48 changes: 24 additions & 24 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"extends": "stylelint-config-recommended-scss",
"rules": {
"color-named": "never",
"font-family-name-quotes": "always-where-required",
"font-weight-notation": "named-where-possible",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"string-quotes": "single",
"value-keyword-case": "lower",
"unit-disallowed-list": [],
"max-empty-lines": 2,
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"font-family-no-missing-generic-family-keyword": null,
"property-no-unknown": [
true,
{
"ignoreProperties": ["/^lost-/"]
}
]
},
"ignoreFiles": ["node_modules/*", "src/assets/**", "build/**", "src/lib/styles/normalise.css"],
"defaultSeverity": "error",
"customSyntax": "postcss-html"
"extends": "stylelint-config-recommended-scss",
"rules": {
"color-named": "never",
"font-family-name-quotes": "always-where-required",
"font-weight-notation": "named-where-possible",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"string-quotes": "single",
"value-keyword-case": "lower",
"unit-disallowed-list": [],
"max-empty-lines": 2,
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"font-family-no-missing-generic-family-keyword": null,
"property-no-unknown": [
true,
{
"ignoreProperties": ["/^lost-/"]
}
]
},
"ignoreFiles": ["node_modules/*", "src/assets/**", "build/**", "src/lib/styles/normalise.css"],
"defaultSeverity": "error",
"customSyntax": "postcss-html"
}
26 changes: 13 additions & 13 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"editor.formatOnSave": true,
"[markdown]": {
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 80,
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
}
"editor.formatOnSave": true,
"[markdown]": {
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 80,
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
}
}
74 changes: 37 additions & 37 deletions generate-manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,50 @@ const DEFAULT_SIZES = [128, 144, 152, 192, 256, 512];
const iconImage = sharp(icon);

const resizeIcon = async ({ size, path }) => {
await iconImage.resize(size).toFile(path, (err) => {
if (err) {
console.error(err);
}
});
await iconImage.resize(size).toFile(path, (err) => {
if (err) {
console.error(err);
}
});
};

const main = async () => {
try {
const { height, width } = await iconImage.metadata();
const maxSize = Math.min(width, height);
const sizes = DEFAULT_SIZES.filter((element) => element <= maxSize);

const manifest = {
name: siteTitle,
short_name: siteShortTitle,
start_url: '/',
background_color: backgroundColor,
theme_color: themeColor,
display: 'standalone',
icons: sizes.map((size) => {
const path = `icons/icon-${size}x${size}.png`;
resizeIcon({ size, path: `static/${path}` });

return {
src: path,
sizes: `${size}x${size}`,
type: 'image/png',
purpose: 'any maskable',
};
}),
};

fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2));
} catch (error) {
console.error(error);
}
try {
const { height, width } = await iconImage.metadata();
const maxSize = Math.min(width, height);
const sizes = DEFAULT_SIZES.filter((element) => element <= maxSize);

const manifest = {
name: siteTitle,
short_name: siteShortTitle,
start_url: '/',
background_color: backgroundColor,
theme_color: themeColor,
display: 'standalone',
icons: sizes.map((size) => {
const path = `icons/icon-${size}x${size}.png`;
resizeIcon({ size, path: `static/${path}` });

return {
src: path,
sizes: `${size}x${size}`,
type: 'image/png',
purpose: 'any maskable',
};
}),
};

fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2));
} catch (error) {
console.error(error);
}
};

console.log('Generating manifest.json');
fs.mkdir(iconsDirectory, { recursive: true }, (err) => {
if (err) {
return console.error(err);
}
if (err) {
return console.error(err);
}
});

main();
Loading

0 comments on commit 9315d27

Please sign in to comment.