| 1234567891011121314151617181920212223242526272829303132333435363738 |
- module.exports = {
- root: true,
- ignorePatterns: ['node_modules', 'dist', '*.config.js'],
- plugins: ['@typescript-eslint'],
- extends: [
- 'eslint:recommended',
- 'plugin:@typescript-eslint/recommended-type-checked',
- 'plugin:@typescript-eslint/stylistic-type-checked',
- 'prettier',
- ],
- parser: '@typescript-eslint/parser',
- parserOptions: {
- ecmaVersion: 'latest',
- sourceType: 'module',
- project: ['./tsconfig.json', './apps/*/tsconfig.json', './packages/*/tsconfig.json'],
- },
- rules: {
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
- '@typescript-eslint/explicit-function-return-type': 'off',
- '@typescript-eslint/no-explicit-any': 'warn',
- 'no-console': ['warn', { allow: ['warn', 'error'] }],
- },
- overrides: [
- {
- files: ['apps/web-dashboard/**/*.ts', 'apps/web-dashboard/**/*.tsx'],
- parserOptions: {
- project: './apps/web-dashboard/tsconfig.json',
- },
- },
- {
- files: ['*.test.ts', '*.spec.ts'],
- rules: {
- '@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-unused-vars': 'off',
- },
- },
- ],
- };
|