Migrate
This commit is contained in:
37
microservices/services/_template_nodejs/eslint.config.js
Normal file
37
microservices/services/_template_nodejs/eslint.config.js
Normal file
@@ -0,0 +1,37 @@
|
||||
// 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
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user