create-arktos
Version:
🚀 A modern Node.js backend boilerplate with TypeScript, Express, JWT authentication, Prisma ORM, PostgreSQL, and Resend email service. Includes complete authentication flow, security middleware, and database management.
95 lines (93 loc) • 2.17 kB
JavaScript
const js = require('@eslint/js');
module.exports = [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'commonjs',
globals: {
console: 'readonly',
process: 'readonly',
Buffer: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
module: 'readonly',
require: 'readonly',
exports: 'readonly',
global: 'readonly',
setTimeout: 'readonly',
setInterval: 'readonly',
clearTimeout: 'readonly',
clearInterval: 'readonly',
},
},
rules: {
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'no-console': [
'warn',
{
allow: ['warn', 'error'],
},
],
'prefer-const': 'error',
'no-var': 'error',
eqeqeq: ['error', 'always'],
curly: ['error', 'all'],
'brace-style': ['error', '1tbs'],
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 2],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'no-trailing-spaces': 'error',
'no-multiple-empty-lines': [
'error',
{
max: 2,
maxEOF: 1,
},
],
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'key-spacing': [
'error',
{
beforeColon: false,
afterColon: true,
},
],
'comma-spacing': [
'error',
{
before: false,
after: true,
},
],
'no-undef': 'error',
'no-redeclare': 'error',
'no-dupe-keys': 'error',
'no-unreachable': 'error',
'valid-typeof': 'error',
},
},
{
files: ['**/*.test.js', '**/*.spec.js'],
languageOptions: {
globals: {
describe: 'readonly',
it: 'readonly',
test: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
before: 'readonly',
after: 'readonly',
},
},
},
];