-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:codex-team/notes.api into fix/uploa…
…d-router
- Loading branch information
Showing
108 changed files
with
1,513 additions
and
919 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ app-config.local.yaml | |
.idea | ||
dist | ||
database | ||
s3 | ||
|
||
# Logs | ||
logs | ||
|
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 +1 @@ | ||
v20 | ||
v22.1.0 |
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,98 @@ | ||
import CodeX from 'eslint-config-codex'; | ||
import { plugin as TsPlugin, parser as TsParser } from 'typescript-eslint'; | ||
/** | ||
* @todo connect architecture config | ||
*/ | ||
export default [ | ||
...CodeX, | ||
/** | ||
* Override only for config files | ||
*/ | ||
{ | ||
name: 'codex/codestyle/configs', | ||
files: ['eslint.config.mjs', 'vitest.config.js'], | ||
rules: { | ||
'n/no-unpublished-import': ['off'], | ||
'@typescript-eslint/naming-convention': ['off'], | ||
}, | ||
}, | ||
/** | ||
* Override for dev files that are not in source code (logically) | ||
*/ | ||
{ | ||
name: 'codex/codestyle/dev-files', | ||
files: ['src/tests/**/*', '**/*.test.ts'], | ||
languageOptions: { | ||
parser: TsParser, | ||
parserOptions: { | ||
project: 'tsconfig.test.json', | ||
tsconfigRootDir: './', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
rules: { | ||
/** | ||
* Current eslint version (9.2.0) has no alias resolver so this error is unfixable | ||
*/ | ||
'n/no-missing-import': ['off'], | ||
'n/no-unpublished-import': ['error', { | ||
allowModules: ['vitest', 'postgres-migrations', '@testcontainers/localstack'], | ||
ignoreTypeImport: true, | ||
}], | ||
/** | ||
* @todo get rid of this rule ignores and solve all eslint errors occured | ||
*/ | ||
'@typescript-eslint/no-unsafe-member-access': ['off'], | ||
'@typescript-eslint/no-unsafe-call': ['off'], | ||
'@typescript-eslint/no-unsafe-assignment': ['off'], | ||
'@typescript-eslint/no-magic-numbers': ['off'], | ||
'@typescript-eslint/no-unsafe-return': ['off'], | ||
'@typescript-eslint/restrict-template-expressions': ['off'], | ||
'jsdoc/require-jsdoc': ['off'], | ||
}, | ||
}, | ||
/** | ||
* Override for sourve code files | ||
*/ | ||
{ | ||
name: 'notex.api', | ||
ignores: ['vitest.config.js', 'eslint.config.mjs', 'src/tests/**/*', '**/*.test.ts'], | ||
plugins: { | ||
'@typescript-eslint': TsPlugin, | ||
}, | ||
languageOptions: { | ||
parser: TsParser, | ||
parserOptions: { | ||
project: 'tsconfig.eslint.json', | ||
tsconfigRootDir: './', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
rules: { | ||
/** | ||
* Current eslint version (9.2.0) has no alias resolver so this error is unfixable | ||
*/ | ||
'n/no-missing-import': ['off'], | ||
'n/no-unpublished-import': ['error'], | ||
'n/no-unsupported-features/es-builtins': ['error', { | ||
version: '>=22.1.0', | ||
}], | ||
'@typescript-eslint/naming-convention': ['error', { | ||
selector: 'property', | ||
format: ['camelCase', 'PascalCase'], | ||
|
||
filter: { | ||
regex: '^(?!(2xx|2[0-9][0-9]|application/json)$).*', | ||
match: true, | ||
}, | ||
}], | ||
/** | ||
* @todo get rid of this rule ignores and solve all eslint errors occured | ||
*/ | ||
'@typescript-eslint/no-misused-promises': ['off'], | ||
'jsdoc/require-jsdoc': ['off'], | ||
'jsdoc/informative-docs': ['off'], | ||
'jsdoc/require-returns-description': ['off'], | ||
}, | ||
}, | ||
]; |
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ export enum MemberRole { | |
/** | ||
* Team member can read and write notes | ||
*/ | ||
Write = 1, | ||
Write = 1 | ||
} | ||
|
||
/** | ||
|
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.