Skip to content

Commit 47ea838

Browse files
committed
added prettier + eslint | added addons support for pre-registered key callback mappings
1 parent 589358a commit 47ea838

12 files changed

+1366
-171
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore artifacts:
2+
build

.prettierrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
3+
"overrides": [
4+
{
5+
"files": "*.svelte",
6+
"options": { "parser": "svelte" }
7+
}
8+
],
9+
"printWidth": 80,
10+
"tabWidth": 2,
11+
"trailingComma": "all",
12+
"singleQuote": true,
13+
"semi": true,
14+
"arrowParens": "always",
15+
16+
"importOrder": [
17+
"<TYPES>",
18+
"",
19+
"<BUILTIN_MODULES>",
20+
"<THIRD_PARTY_MODULES>",
21+
"^svelte(.*)$",
22+
"^@supeer(.*)$",
23+
"",
24+
"^\\$app/(.*)$",
25+
"^\\$lib/(.*)$",
26+
"^\\$entities/(.*)$",
27+
"^\\$components/(.*)$",
28+
"^[../]",
29+
"^[./]",
30+
".css$"
31+
],
32+
"importOrderSeparation": false,
33+
"importOrderSortSpecifiers": true
34+
}

eslint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import eslintConfigPrettier from 'eslint-config-prettier';
2+
3+
export default [eslintConfigPrettier];

0 commit comments

Comments
 (0)