Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sahinvardar committed Nov 22, 2023
1 parent f30db29 commit ce78f4e
Show file tree
Hide file tree
Showing 5 changed files with 2,575 additions and 119 deletions.
47 changes: 47 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:typescript-sort-keys/recommended'],
plugins: ['@typescript-eslint', 'unused-imports','typescript-sort-keys'],
ignorePatterns: [
'*.cjs',
'jest.*.ts',
'/dist',
'**/cdk.out/*',
'**/build/*',
'pnpm-*.yaml',
'*.sql',
'*.sh',
'*.png',
'*.svg',
'*.jpg',
'*.jpeg',
'*.csv',
'*.ttf',
'*.postcss',
'*.html',
'*.md',
'*.css'
],
overrides: [],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2021
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'turbo/no-undeclared-env-vars': 'off',
'unused-imports/no-unused-imports-ts': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' }
]
},
env: {
browser: true,
es2022: true,
node: true
},
globals: {
$$Generic: 'readonly'
}
};
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"arrowParens": "avoid",
"trailingComma": "none"
}
31 changes: 25 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"scripts": {
"build": "tsc --build",
"watch": "tsc --build --watch",
"repo-clean": "git clean -xdf -e .env"
"repo-clean": "git clean -xdf -e .env",
"semantic-release": "semantic-release",
"format": "prettier --plugin-search-dir . --write . && prettier-package-json --write && eslint --fix ."
},
"files": ["lib"],
"author": "Sahin Vardar",
"license": "MIT",
"packageManager": "pnpm@8.6.0",
"packageManager": "pnpm@8.10.5",
"peerDependencies": {
"@apimda/npm-layer-version": "1.x",
"@aws-cdk/aws-apigatewayv2-alpha": "2.x",
Expand All @@ -20,18 +23,34 @@
"constructs": "10.x"
},
"devDependencies": {
"eslint-plugin-typescript-sort-keys": "^3.1.0",
"@apimda/npm-layer-version": "^1.0.0",
"@aws-cdk/aws-apigatewayv2-alpha": "2.110.1-alpha.0",
"@aws-cdk/aws-apigatewayv2-integrations-alpha": "2.110.1-alpha.0",
"@types/aws-lambda": "^8.10.115",
"@types/folder-hash": "^4.0.2",
"@types/node": "^20.1.2",
"@types/aws-lambda": "^8.10.128",
"@types/folder-hash": "^4.0.4",
"@types/node": "^20.9.4",
"aws-cdk-lib": "^2.110.1",
"constructs": "^10.3.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prettier-package-json": "^2.8.0",
"semantic-release": "^22.0.8",
"typescript": "^5.3.2"
},
"repository": {
"type": "git",
"url": "git@github.com:vardario/cdk-svelte-app.git"
}
},
"lint-staged": {
"*": [
"prettier --write --ignore-unknown",
"eslint --fix"
],
"package.json": "prettier-package-json --write"
},
}
Loading

0 comments on commit ce78f4e

Please sign in to comment.