-
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
Showing
76 changed files
with
1,193 additions
and
796 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,63 @@ | ||
module.exports = { | ||
env: { | ||
commonjs: true, | ||
es2022: true, | ||
node: true, | ||
jest: true, | ||
'jest/globals': true | ||
}, | ||
extends: [ | ||
'standard', | ||
'prettier', | ||
'plugin:import/recommended', | ||
'plugin:jest-formatting/recommended', | ||
'plugin:n/recommended', | ||
'plugin:promise/recommended' | ||
], | ||
overrides: [ | ||
{ | ||
files: ['**/*.cjs'], | ||
parserOptions: { | ||
sourceType: 'commonjs' | ||
} | ||
}, | ||
{ | ||
files: ['**/*.test.js'], | ||
plugins: ['jest'], | ||
extends: ['plugin:jest/recommended', 'plugin:jest-formatting/recommended'] | ||
} | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
plugins: ['import', 'jest', 'jest-formatting', 'n', 'promise', 'prettier'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto' | ||
} | ||
], | ||
'no-console': 'error', | ||
|
||
// Check for mandatory file extensions | ||
// https://nodejs.org/api/esm.html#mandatory-file-extensions | ||
'import/extensions': ['error', 'always', { ignorePackages: true }], | ||
|
||
// Skip rules handled by TypeScript compiler | ||
'import/default': 'off', | ||
'import/namespace': 'off', | ||
'n/no-extraneous-require': 'off', | ||
'n/no-extraneous-import': 'off', | ||
'n/no-missing-require': 'off', | ||
'n/no-missing-import': 'off' | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
node: true, | ||
typescript: true | ||
} | ||
}, | ||
ignorePatterns: ['.server', '.public', 'src/__fixtures__', 'coverage'] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.config.* | ||
*.test.* | ||
__fixtures__ | ||
test-helpers |
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,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
tabWidth: 2, | ||
semi: false, | ||
singleQuote: true, | ||
|
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 |
---|---|---|
|
@@ -38,4 +38,4 @@ ARG PORT | |
ENV PORT ${PORT} | ||
EXPOSE ${PORT} | ||
|
||
CMD [ "node", "./.server" ] | ||
CMD [ "node", "." ] |
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,31 @@ | ||
const { NODE_ENV } = process.env | ||
|
||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
modules: NODE_ENV === 'test' ? 'auto' : false, | ||
targets: { | ||
node: '20' | ||
} | ||
} | ||
] | ||
], | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
root: ['./'], | ||
alias: { | ||
'~': '.' | ||
} | ||
} | ||
] | ||
], | ||
env: { | ||
test: { | ||
plugins: ['babel-plugin-transform-import-meta'] | ||
} | ||
} | ||
} |
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,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
mongodbMemoryServerOptions: { | ||
binary: { | ||
skipMD5: true | ||
|
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,4 +1,4 @@ | ||
module.exports = { | ||
export default { | ||
rootDir: '.', | ||
verbose: true, | ||
resetModules: true, | ||
|
Oops, something went wrong.