Files
YANPM/apps/frontend/eslint.config.ts

30 lines
661 B
TypeScript

import js from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
// Ignore files and directories
ignores: ['dist', 'node_modules', 'app/generated'],
},
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.node,
},
parserOptions: {
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Add custom rules here
'no-console': 'warn',
},
}
);