46 lines
981 B
JavaScript
46 lines
981 B
JavaScript
// EN: Minimal ESLint flat config for web-client package.
|
|
// VI: Cấu hình ESLint flat tối thiểu cho package web-client.
|
|
import tsParser from '@typescript-eslint/parser';
|
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
|
|
export default [
|
|
{
|
|
ignores: [
|
|
'node_modules/**',
|
|
'.next/**',
|
|
'playwright-report/**',
|
|
'test-results/**',
|
|
'coverage/**',
|
|
'dist/**',
|
|
'**/*.test.ts',
|
|
'**/*.test.tsx',
|
|
'**/*.spec.ts',
|
|
'**/*.spec.tsx',
|
|
'**/*.stories.ts',
|
|
'**/*.stories.tsx',
|
|
'e2e/**',
|
|
'.storybook/**',
|
|
'src/test/**',
|
|
],
|
|
},
|
|
{
|
|
files: ['src/**/*.{ts,tsx}'],
|
|
languageOptions: {
|
|
parser: tsParser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: {
|
|
'react-hooks': reactHooksPlugin,
|
|
},
|
|
rules: {
|
|
'no-debugger': 'error',
|
|
},
|
|
},
|
|
];
|