Skip to content

Commit faa9a9b

Browse files
committed
style: 🛁 switch to tab indentation
1 parent 39b49e1 commit faa9a9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2074
-2074
lines changed

.cz.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commitizen": {
3-
"name": "cz_conventional_commits",
4-
"version": "2.0.0",
5-
"tag_format": "$version",
6-
"bump_message": "ci: release $current_version \u2192 $new_version [skip-ci]"
7-
}
2+
"commitizen": {
3+
"name": "cz_conventional_commits",
4+
"version": "2.0.0",
5+
"tag_format": "$version",
6+
"bump_message": "ci: release $current_version \u2192 $new_version [skip-ci]"
7+
}
88
}

.eslintrc.cjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module.exports = {
2-
root: true,
3-
extends: ['eslint:recommended', 'prettier'],
4-
plugins: ['svelte3'],
5-
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
6-
parserOptions: {
7-
sourceType: 'module',
8-
ecmaVersion: 2019,
9-
},
10-
env: {
11-
browser: true,
12-
es2017: true,
13-
node: true,
14-
},
2+
root: true,
3+
extends: ['eslint:recommended', 'prettier'],
4+
plugins: ['svelte3'],
5+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
6+
parserOptions: {
7+
sourceType: 'module',
8+
ecmaVersion: 2019,
9+
},
10+
env: {
11+
browser: true,
12+
es2017: true,
13+
node: true,
14+
},
1515
};

.prettierrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"useTabs": false,
3-
"arrowParens": "always",
4-
"singleQuote": true,
5-
"trailingComma": "all",
6-
"printWidth": 100
2+
"useTabs": true,
3+
"arrowParens": "always",
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"printWidth": 100
77
}

.stylelintrc.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"extends": "stylelint-config-recommended-scss",
3-
"rules": {
4-
"color-named": "never",
5-
"font-family-name-quotes": "always-where-required",
6-
"font-weight-notation": "named-where-possible",
7-
"function-url-no-scheme-relative": true,
8-
"function-url-quotes": "always",
9-
"string-quotes": "single",
10-
"value-keyword-case": "lower",
11-
"unit-disallowed-list": [],
12-
"max-empty-lines": 2,
13-
"no-descending-specificity": true,
14-
"no-duplicate-selectors": true,
15-
"font-family-no-missing-generic-family-keyword": null,
16-
"property-no-unknown": [
17-
true,
18-
{
19-
"ignoreProperties": ["/^lost-/"]
20-
}
21-
]
22-
},
23-
"ignoreFiles": ["node_modules/*", "src/assets/**", "build/**", "src/lib/styles/normalise.css"],
24-
"defaultSeverity": "error",
25-
"customSyntax": "postcss-html"
2+
"extends": "stylelint-config-recommended-scss",
3+
"rules": {
4+
"color-named": "never",
5+
"font-family-name-quotes": "always-where-required",
6+
"font-weight-notation": "named-where-possible",
7+
"function-url-no-scheme-relative": true,
8+
"function-url-quotes": "always",
9+
"string-quotes": "single",
10+
"value-keyword-case": "lower",
11+
"unit-disallowed-list": [],
12+
"max-empty-lines": 2,
13+
"no-descending-specificity": true,
14+
"no-duplicate-selectors": true,
15+
"font-family-no-missing-generic-family-keyword": null,
16+
"property-no-unknown": [
17+
true,
18+
{
19+
"ignoreProperties": ["/^lost-/"]
20+
}
21+
]
22+
},
23+
"ignoreFiles": ["node_modules/*", "src/assets/**", "build/**", "src/lib/styles/normalise.css"],
24+
"defaultSeverity": "error",
25+
"customSyntax": "postcss-html"
2626
}

.vscode/settings.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"editor.formatOnSave": true,
3-
"[markdown]": {
4-
"editor.wordWrap": "bounded",
5-
"editor.wordWrapColumn": 80,
6-
"editor.quickSuggestions": {
7-
"comments": "off",
8-
"strings": "off",
9-
"other": "off"
10-
}
11-
},
12-
"[svelte]": {
13-
"editor.defaultFormatter": "svelte.svelte-vscode"
14-
}
2+
"editor.formatOnSave": true,
3+
"[markdown]": {
4+
"editor.wordWrap": "bounded",
5+
"editor.wordWrapColumn": 80,
6+
"editor.quickSuggestions": {
7+
"comments": "off",
8+
"strings": "off",
9+
"other": "off"
10+
}
11+
},
12+
"[svelte]": {
13+
"editor.defaultFormatter": "svelte.svelte-vscode"
14+
}
1515
}

generate-manifest.js

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,50 @@ const DEFAULT_SIZES = [128, 144, 152, 192, 256, 512];
1313
const iconImage = sharp(icon);
1414

1515
const resizeIcon = async ({ size, path }) => {
16-
await iconImage.resize(size).toFile(path, (err) => {
17-
if (err) {
18-
console.error(err);
19-
}
20-
});
16+
await iconImage.resize(size).toFile(path, (err) => {
17+
if (err) {
18+
console.error(err);
19+
}
20+
});
2121
};
2222

2323
const main = async () => {
24-
try {
25-
const { height, width } = await iconImage.metadata();
26-
const maxSize = Math.min(width, height);
27-
const sizes = DEFAULT_SIZES.filter((element) => element <= maxSize);
28-
29-
const manifest = {
30-
name: siteTitle,
31-
short_name: siteShortTitle,
32-
start_url: '/index.html',
33-
background_color: backgroundColor,
34-
theme_color: themeColor,
35-
display: 'standalone',
36-
icons: sizes.map((size) => {
37-
const path = `icons/icon-${size}x${size}.png`;
38-
resizeIcon({ size, path: `static/${path}` });
39-
40-
return {
41-
src: path,
42-
sizes: `${size}x${size}`,
43-
type: 'image/png',
44-
purpose: 'any maskable',
45-
};
46-
}),
47-
};
48-
49-
fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2));
50-
} catch (error) {
51-
console.error(error);
52-
}
24+
try {
25+
const { height, width } = await iconImage.metadata();
26+
const maxSize = Math.min(width, height);
27+
const sizes = DEFAULT_SIZES.filter((element) => element <= maxSize);
28+
29+
const manifest = {
30+
name: siteTitle,
31+
short_name: siteShortTitle,
32+
start_url: '/index.html',
33+
background_color: backgroundColor,
34+
theme_color: themeColor,
35+
display: 'standalone',
36+
icons: sizes.map((size) => {
37+
const path = `icons/icon-${size}x${size}.png`;
38+
resizeIcon({ size, path: `static/${path}` });
39+
40+
return {
41+
src: path,
42+
sizes: `${size}x${size}`,
43+
type: 'image/png',
44+
purpose: 'any maskable',
45+
};
46+
}),
47+
};
48+
49+
fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2));
50+
} catch (error) {
51+
console.error(error);
52+
}
5353
};
5454

5555
console.log('Generating manifest.json');
5656
fs.mkdir(iconsDirectory, { recursive: true }, (err) => {
57-
if (err) {
58-
return console.error(err);
59-
}
57+
if (err) {
58+
return console.error(err);
59+
}
6060
});
6161

6262
main();

0 commit comments

Comments
 (0)