🎉 Initialize NPM project and install dependencies

This commit is contained in:
RaviAnand Mohabir 2021-05-17 18:47:18 +02:00
parent 5f53fd851c
commit 4ad637dd36
6 changed files with 3709 additions and 0 deletions

21
.eslintrc.cjs Normal file
View File

@ -0,0 +1,21 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
plugins: ["@typescript-eslint"],
ignorePatterns: ["*.cjs"],
parserOptions: {
sourceType: "module",
ecmaVersion: 2019,
},
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["off", { argsIgnorePattern: "^_" }],
},
env: {
browser: true,
es2017: true,
node: true,
},
};

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

2
.prettierignore Normal file
View File

@ -0,0 +1,2 @@
dist/**
node_modules/**

4
.prettierrc Normal file
View File

@ -0,0 +1,4 @@
{
"trailingComma": "all",
"printWidth": 100
}

3644
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

37
package.json Normal file
View File

@ -0,0 +1,37 @@
{
"name": "SvelteKitAuth",
"version": "1.0.0",
"description": "Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --write --plugin-search-dir=. ."
},
"keywords": [
"sveltejs",
"sveltekit",
"auth",
"oauth"
],
"author": "RaviAnand Mohabir <moravrav@gmail.com> (https://ravianand.web.app)",
"license": "MIT",
"private": false,
"types": "dist/index.d.ts",
"dependencies": {
"cookie": "^0.4.1",
"jsonwebtoken": "^8.5.1"
},
"devDependencies": {
"@sveltejs/kit": "^1.0.0-next.1",
"@types/jsonwebtoken": "^8.5.1",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"prettier": "^2.3.0",
"tslib": "^2.2.0",
"typescript": "^4.2.4"
}
}