Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,23 @@ module.exports = {
'@typescript-eslint/no-floating-promises': 'warn',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'no-console': ['warn', { allow: ['warn', 'error'] }],
},
};
overrides: [
{
files: [
'**/*.test.ts',
'**/*.spec.ts',
'**/test/**/*.ts',
'**/tests/**/*.ts',
'**/scripts/**/*.ts',
'**/scripts/**/*.js',
'**/examples/**/*.ts',
'**/examples/**/*.js',
],
rules: {
'no-console': 'off',
},
},
],
};
9 changes: 9 additions & 0 deletions app/backend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@ export default tseslint.config(
'@typescript-eslint/no-unsafe-member-access': 'warn',
'@typescript-eslint/no-unsafe-return': 'warn',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-console': ['warn', { allow: ['warn', 'error'] }],
"prettier/prettier": ["error", { endOfLine: "auto" }],
},
},
{
// Dev-only scripts and usage examples intentionally write progress to stdout.
files: ['prisma/seed.ts', 'src/**/examples/**/*.ts', 'scripts/**/*.ts', 'scripts/**/*.js'],
rules: {
'no-console': 'off',
},
},
{
// Specific configuration for error handling files
files: ['src/common/filters/*.ts', 'src/common/interceptors/*.ts'],
Expand All @@ -56,6 +64,7 @@ export default tseslint.config(
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/unbound-method': 'off',
'no-console': 'off',
},
}
);
11 changes: 11 additions & 0 deletions app/frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
{
rules: {
"no-console": ["warn", { allow: ["warn", "error"] }],
},
},
{
files: ["**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"],
rules: {
"no-console": "off",
},
},
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
Expand Down
11 changes: 11 additions & 0 deletions app/mobile/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,15 @@ export default defineConfig([
{
ignores: ['dist/**'],
},
{
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }],
},
},
{
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
rules: {
'no-console': 'off',
},
},
]);