38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
// EN: ESLint v9 Flat Config for Template Service
|
|
// VI: ESLint v9 Flat Config cho Template Service
|
|
import goodgoConfig from '@goodgo/eslint-config';
|
|
|
|
export default [
|
|
// EN: Global ignores (must be first and standalone)
|
|
// VI: Ignores toàn cục (phải đặt đầu tiên và độc lập)
|
|
{
|
|
ignores: [
|
|
'**/*.test.ts',
|
|
'**/*.spec.ts',
|
|
'**/*.e2e.ts',
|
|
'**/__tests__/**',
|
|
'**/tests/**',
|
|
'dist/**',
|
|
'node_modules/**',
|
|
],
|
|
},
|
|
// EN: Apply base config
|
|
// VI: Áp dụng config cơ bản
|
|
...goodgoConfig,
|
|
// EN: Service-specific configuration
|
|
// VI: Cấu hình riêng cho service
|
|
{
|
|
files: ['src/**/*.ts'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
tsconfigRootDir: import.meta.dirname,
|
|
project: './tsconfig.json',
|
|
},
|
|
},
|
|
rules: {
|
|
// EN: Add service-specific rules here
|
|
// VI: Thêm rules riêng cho service ở đây
|
|
},
|
|
},
|
|
];
|