migrate from pg to sequelize

This commit is contained in:
Rene Kievits
2024-09-14 02:20:30 +02:00
parent 5ed26bd488
commit 9fd47761b0
26 changed files with 1205 additions and 745 deletions

59
eslint.config.mjs Normal file
View File

@@ -0,0 +1,59 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
export default [
{
files: ['eslint.config.mjs'],
languageOptions: {
sourceType: 'module',
ecmaVersion: 2021,
},
rules: {
'semi': ['error', 'never'],
'quotes': ['error', 'single'],
'indent': ['error', 2],
'linebreak-style': ['error', 'unix'],
'comma-dangle': ['error', 'always-multiline'],
'no-unused-vars': ['error', {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
caughtErrors: 'none',
argsIgnorePattern: '_',
}],
},
},
{
files: ['**/*.js'],
languageOptions: {
sourceType: 'commonjs',
ecmaVersion: 2021,
},
rules: {
'semi': ['error', 'never'],
'quotes': ['error', 'single'],
'indent': ['error', 2],
'linebreak-style': ['error', 'unix'],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'no-unused-vars': ['error', {
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
caughtErrors: 'none',
argsIgnorePattern: '_',
}],
},
},
{
languageOptions: {
globals: globals.browser,
},
},
pluginJs.configs.recommended,
]