-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffbfa81
commit ca6832c
Showing
20 changed files
with
1,926 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm exec lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"openapi": "3.0.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.