Skip to content

Commit

Permalink
feat: routing and styling stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TheClashFruit committed Jul 26, 2024
1 parent ffbfa81 commit ca6832c
Show file tree
Hide file tree
Showing 20 changed files with 1,926 additions and 406 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Pot

Our back-end that powers the Zleed API.
Our back-end that powers the Zleed API.
3 changes: 3 additions & 0 deletions data/swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"openapi": "3.0.3"
}
50 changes: 22 additions & 28 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
import globals from 'globals';
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';

export default [
{
files: [
'**/*.{js,mjs,cjs,ts}'
],
ignores: [
'node_modules/*',
'build/*'
],
rules: {
indent: [
'error',
2
],
quotes: [
'error',
'single'
],
semi: [
'error',
'always'
]
}
},
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';

export default tseslint.config(
{
languageOptions: {
globals: globals.node
globals: globals.node
}
},
pluginJs.configs.recommended,
...tseslint.configs.recommended
];
...tseslint.configs.recommended,
eslintConfigPrettier,
eslintPluginPrettier,
{
files: ['**/*.{js,mjs,cjs,ts}'],
ignores: ['node_modules/*', 'node_modules/**/*', 'build/*', 'build/**/*'],
rules: {
indent: ['error', 2],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'space-in-brackets': ['error', 'always'],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'warn'
}
}
);
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,36 @@
"build": "tsc",
"dev": "nodemon -r dotenv/config src/index.ts",
"lint": "eslint",
"fix": "eslint --fix"
"fix": "eslint --fix",
"prepare": "husky"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@eslint/js": "^9.7.0",
"@types/cors": "^2.8.17",
"@types/eslint__js": "^8.42.3",
"@types/express": "^4.17.21",
"dotenv": "^16.4.5",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.8.0",
"husky": "^9.1.2",
"lint-staged": "^15.2.7",
"nodemon": "^3.1.4",
"prettier": "3.3.3",
"typescript": "^5.5.3",
"typescript-eslint": "^7.16.1"
},
"dependencies": {
"express": "^4.19.2"
"chalk": "4",
"cors": "^2.8.5",
"express": "^4.19.2",
"nodejs-snowflake": "^2.0.1"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
}
}
Loading

0 comments on commit ca6832c

Please sign in to comment.