Files
compor-academy/eslint.config.js
Cauê Faleiros 50905eefd7
All checks were successful
CI / Validate frontend and API (push) Successful in 3m5s
CI / Build and publish Docker images (push) Successful in 1m42s
feat: add 2FA, secure cookies and publishing tools
2026-11-06 10:29:37 -03:00

29 lines
785 B
JavaScript

import tseslint from 'typescript-eslint';
export default [
{
ignores: ['dist/**', 'node_modules/**', 'design/**', 'server/migrations/**', 'package-lock.json'],
},
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: { jsx: true },
},
},
plugins: { '@typescript-eslint': tseslint.plugin },
rules: {
'no-debugger': 'error',
'no-duplicate-imports': 'error',
'no-unreachable': 'error',
'no-constant-condition': 'error',
'no-var': 'error',
'prefer-const': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
},
},
];