Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood committed Jan 25, 2024
0 parents commit 05c3234
Show file tree
Hide file tree
Showing 27 changed files with 5,057 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
.svelte-kit
build
node_modules
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
106 changes: 106 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"root": true,
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:svelte/recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"extraFileExtensions": [".svelte"]
},
"env": { "browser": true },
"overrides": [
{
"files": ["*.svelte"],
"parser": "svelte-eslint-parser",
"parserOptions": { "parser": "@typescript-eslint/parser" }
}
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-constant-binary-expression": "error",
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-new-native-nonconstructor": "error",
"no-promise-executor-return": "error",
"no-self-assign": "off",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": "off",
"no-use-before-define": "error",
"require-atomic-updates": "error",
"block-scoped-var": "error",
"class-methods-use-this": "error",
"consistent-this": ["error", "self"],
"curly": ["error", "multi"],
"default-case": "error",
"dot-notation": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"init-declarations": "error",
"logical-assignment-operators": "error",
"new-cap": "error",
"no-alert": "warn",
"no-array-constructor": "error",
"no-caller": "error",
"no-console": "warn",
"no-else-return": "error",
"no-empty-function": "error",
"no-empty-static-block": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-invalid-this": "off",
"no-iterator": "error",
"no-label-var": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-nested-ternary": "warn",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"no-var": "error",
"no-void": "error",
"operator-assignment": "error",
"prefer-arrow-callback": "warn",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-exponentiation-operator": "warn",
"prefer-named-capture-group": "error",
"prefer-numeric-literals": "error",
"prefer-object-has-own": "error",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"radix": "error",
"require-await": "error",
"sort-imports": ["error", { "allowSeparatedGroups": true }],
"spaced-comment": "warn",
"yoda": ["warn", "never", { "exceptRange": true }]
}
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.env
.svelte-kit
build
data
node_modules
8 changes: 8 additions & 0 deletions .linthtmlrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@linthtml/linthtml-config-recommended",
"rules": {
"attr-quote-style": [true, "double"],
"line-max-len": [true, 120],
"title-max-len": [true, 60]
}
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DS_Store
.svelte-kit
build
node_modules
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
19 changes: 19 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"useTabs": false,
"arrowParens": "avoid",
"tabWidth": 4,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "all",
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{ "files": "*.yml", "options": { "tabWidth": 2 } },
{
"files": "*.svelte",
"options": {
"parser": "svelte",
"svelteAllowShorthand": true
}
}
]
}
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["stylelint-config-standard", "stylelint-config-tailwindcss"] }
52 changes: 52 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "drap",
"version": "0.0.0",
"type": "module",
"packageManager": "pnpm@8.14.3",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"sync": "svelte-kit sync",
"fmt": "prettier --check .",
"fmt:fix": "prettier --write .",
"lint": "pnpm lint:html && pnpm lint:css && pnpm lint:js && pnpm lint:svelte",
"lint:html": "linthtml src/**/*.html",
"lint:css": "stylelint src/**/*.css",
"lint:js": "eslint **/*.{js,svelte,ts}",
"lint:svelte": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@linthtml/linthtml": "^0.9.5",
"@linthtml/linthtml-config-recommended": "^0.1.0",
"@skeletonlabs/skeleton": "^2.7.1",
"@skeletonlabs/tw-plugin": "^0.3.1",
"@steeze-ui/heroicons": "^2.3.0",
"@steeze-ui/svelte-icon": "^1.5.0",
"@sveltejs/adapter-node": "^4.0.1",
"@sveltejs/kit": "^2.4.3",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tailwindcss/typography": "^0.5.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"pino": "^8.17.2",
"postgres": "^3.4.3",
"prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.11",
"stylelint": "^16.2.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-config-tailwindcss": "^0.0.7",
"svelte": "^4.2.9",
"svelte-check": "^3.6.3",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"valibot": "^0.27.0",
"vite": "^5.0.12",
"vite-plugin-tailwind-purgecss": "^0.2.0"
}
}
Loading

0 comments on commit 05c3234

Please sign in to comment.