Skip to content

Commit d338065

Browse files
committed
style: 🛁 switch to tag indentation
1 parent 87c78d9 commit d338065

19 files changed

+699
-699
lines changed

.cz.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commitizen": {
3-
"name": "cz_conventional_commits",
4-
"version": "0.0.1",
5-
"tag_format": "$version"
6-
}
2+
"commitizen": {
3+
"name": "cz_conventional_commits",
4+
"version": "0.0.1",
5+
"tag_format": "$version"
6+
}
77
}

.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"useTabs": false,
3-
"singleQuote": true,
4-
"trailingComma": "none",
5-
"printWidth": 100
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100
66
}

.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
}

jsconfig.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"compilerOptions": {
3-
"baseUrl": ".",
4-
"paths": {
5-
"$lib": ["src/lib"],
6-
"$lib/*": ["src/lib/*"]
7-
}
8-
},
9-
"extends": "./.svelte-kit/tsconfig.json",
10-
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"$lib": ["src/lib"],
6+
"$lib/*": ["src/lib/*"]
7+
}
8+
},
9+
"extends": "./.svelte-kit/tsconfig.json",
10+
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
1111
}

package.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"name": "sveltekit-lazyload-iframe",
3-
"version": "0.0.1",
4-
"license": "BSD-3-Clause",
5-
"description": "Lazy loading iframes in SvelteKit: we see how Core Web Vitals from Google make optimising your Svelte site important to rank.",
6-
"scripts": {
7-
"dev": "vite dev",
8-
"build": "vite build",
9-
"preview": "vite preview",
10-
"check": "svelte-check --fail-on-hints",
11-
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
12-
"lint:scss": "stylelint 'src/**/*.{css,scss,svelte}'",
13-
"format": "prettier --write --plugin-search-dir=. .",
14-
"prettier:check": "prettier --check --plugin-search-dir=. ."
15-
},
16-
"devDependencies": {
17-
"@commitlint/config-conventional": "^17.1.0",
18-
"@fontsource/source-sans-pro": "^4.5.11",
19-
"@sveltejs/kit": "next",
20-
"commitlint": "^17.1.2",
21-
"eslint": "^8.25.0",
22-
"eslint-config-prettier": "^8.5.0",
23-
"eslint-plugin-svelte3": "^4.0.0",
24-
"husky": "^8.0.1",
25-
"postcss": "^8.4.18",
26-
"postcss-html": "^1.5.0",
27-
"prettier": "~2.7.1",
28-
"prettier-plugin-svelte": "^2.8.0",
29-
"sass": "^1.55.0",
30-
"stylelint": "^14.14.0",
31-
"stylelint-config-recommended-scss": "^7.0.0",
32-
"stylelint-config-standard": "^29.0.0",
33-
"stylelint-scss": "^4.3.0",
34-
"svelte": "^3.52.0",
35-
"svelte-preprocess": "^4.10.7",
36-
"vanilla-lazyload": "^17.8.3",
37-
"vite": "^3.1.8"
38-
},
39-
"repository": {
40-
"type": "git",
41-
"url": "https://github.com/rodneylab/sveltekit-lazyload-iframe"
42-
},
43-
"bugs": {
44-
"url": "https://github.com/rodneylab/sveltekit-lazyload-iframe/issues"
45-
},
46-
"type": "module",
47-
"peerDependencies": {
48-
"vite": "^3.1.8"
49-
}
2+
"name": "sveltekit-lazyload-iframe",
3+
"version": "0.0.1",
4+
"license": "BSD-3-Clause",
5+
"description": "Lazy loading iframes in SvelteKit: we see how Core Web Vitals from Google make optimising your Svelte site important to rank.",
6+
"scripts": {
7+
"dev": "vite dev",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"check": "svelte-check --fail-on-hints",
11+
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
12+
"lint:scss": "stylelint 'src/**/*.{css,scss,svelte}'",
13+
"format": "prettier --write --plugin-search-dir=. .",
14+
"prettier:check": "prettier --check --plugin-search-dir=. ."
15+
},
16+
"devDependencies": {
17+
"@commitlint/config-conventional": "^17.1.0",
18+
"@fontsource/source-sans-pro": "^4.5.11",
19+
"@sveltejs/kit": "next",
20+
"commitlint": "^17.1.2",
21+
"eslint": "^8.25.0",
22+
"eslint-config-prettier": "^8.5.0",
23+
"eslint-plugin-svelte3": "^4.0.0",
24+
"husky": "^8.0.1",
25+
"postcss": "^8.4.18",
26+
"postcss-html": "^1.5.0",
27+
"prettier": "~2.7.1",
28+
"prettier-plugin-svelte": "^2.8.0",
29+
"sass": "^1.55.0",
30+
"stylelint": "^14.14.0",
31+
"stylelint-config-recommended-scss": "^7.0.0",
32+
"stylelint-config-standard": "^29.0.0",
33+
"stylelint-scss": "^4.3.0",
34+
"svelte": "^3.52.0",
35+
"svelte-preprocess": "^4.10.7",
36+
"vanilla-lazyload": "^17.8.3",
37+
"vite": "^3.1.8"
38+
},
39+
"repository": {
40+
"type": "git",
41+
"url": "https://github.com/rodneylab/sveltekit-lazyload-iframe"
42+
},
43+
"bugs": {
44+
"url": "https://github.com/rodneylab/sveltekit-lazyload-iframe/issues"
45+
},
46+
"type": "module",
47+
"peerDependencies": {
48+
"vite": "^3.1.8"
49+
}
5050
}

sandbox.config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"infiniteLoopProtection": true,
3-
"hardReloadOnChange": false,
4-
"view": "browser",
5-
"template": "node",
6-
"container": {
7-
"port": 3000,
8-
"startScript": "start",
9-
"node": "14"
10-
}
2+
"infiniteLoopProtection": true,
3+
"hardReloadOnChange": false,
4+
"view": "browser",
5+
"template": "node",
6+
"container": {
7+
"port": 3000,
8+
"startScript": "start",
9+
"node": "14"
10+
}
1111
}

src/app.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<link rel="icon" href="%sveltekit.assets%/favicon.ico" sizes="any" />
6-
<link rel="icon" href="%sveltekit.assets%/icon.svg" type="image/svg+xml" />
7-
<link rel="apple-touch-icon" href="%sveltekit.assets%/apple-touch-icon.png" />
8-
<link rel="manifest" href="/manifest.webmanifest" />
9-
<meta name="viewport" content="width=device-width, initial-scale=1" />
10-
%sveltekit.head%
11-
</head>
12-
<body>
13-
<div id="svelte">%sveltekit.body%</div>
14-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%sveltekit.assets%/favicon.ico" sizes="any" />
6+
<link rel="icon" href="%sveltekit.assets%/icon.svg" type="image/svg+xml" />
7+
<link rel="apple-touch-icon" href="%sveltekit.assets%/apple-touch-icon.png" />
8+
<link rel="manifest" href="/manifest.webmanifest" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1" />
10+
%sveltekit.head%
11+
</head>
12+
<body>
13+
<div id="svelte">%sveltekit.body%</div>
14+
</body>
1515
</html>

0 commit comments

Comments
 (0)