[st] fix: eslint, typescript 에러
This commit is contained in:
@@ -6,16 +6,26 @@ const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
baseDirectory: __dirname,
|
||||
});
|
||||
|
||||
const eslintConfig = [
|
||||
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||
{
|
||||
rules: {
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||
{
|
||||
rules: {
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
{
|
||||
argsIgnorePattern: "^_",
|
||||
varsIgnorePattern: "^_",
|
||||
caughtErrorsIgnorePattern: "^_",
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/no-wrapper-object-types": "warn",
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
@@ -5,35 +5,81 @@ import SearchForm from "@/components/module/SearchForm";
|
||||
import type { ColumnConfig } from "@/components/type/DataGrid.type";
|
||||
|
||||
const StatisticsInputManagement = () => {
|
||||
const [rowData, setRowData] = useState<Record<string, string | number>[]>([]);
|
||||
const [rowData, setRowData] = useState<Record<string, string | number>[]>(
|
||||
[],
|
||||
);
|
||||
|
||||
const columns: ColumnConfig[] = [
|
||||
{ name: 'sido', fieldName: '시도', header: { text: '시도' }, mergeCells: true, editable: false, sortdisable: true },
|
||||
{ name: 'sgg', fieldName: '시군구', header: { text: '시군구' }, mergeCells: true, editable: false, sortdisable: true },
|
||||
{ name: '구분', fieldName: '구분', header: { text: '구분' }, editable: false, sortdisable: true },
|
||||
{ name: '광역자치단체', fieldName: '광역자치단체', header: { text: '광역자치단체' }, editable: false, sortdisable: true },
|
||||
{ name: '공단', fieldName: '공단', header: { text: '공단' }, editable: false, sortdisable: true },
|
||||
{ name: '처리내역', fieldName: '처리내역', header: { text: '처리내역' }, editable: false, sortdisable: true },
|
||||
{
|
||||
name: "sido",
|
||||
fieldName: "시도",
|
||||
header: { text: "시도" },
|
||||
mergeCells: true,
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
{
|
||||
name: "sgg",
|
||||
fieldName: "시군구",
|
||||
header: { text: "시군구" },
|
||||
mergeCells: true,
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
{
|
||||
name: "구분",
|
||||
fieldName: "구분",
|
||||
header: { text: "구분" },
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
{
|
||||
name: "광역자치단체",
|
||||
fieldName: "광역자치단체",
|
||||
header: { text: "광역자치단체" },
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
{
|
||||
name: "공단",
|
||||
fieldName: "공단",
|
||||
header: { text: "공단" },
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
{
|
||||
name: "처리내역",
|
||||
fieldName: "처리내역",
|
||||
header: { text: "처리내역" },
|
||||
editable: false,
|
||||
sortdisable: true,
|
||||
},
|
||||
];
|
||||
|
||||
const columnLayout = [
|
||||
'sido',
|
||||
'sgg',
|
||||
'구분',
|
||||
"sido",
|
||||
"sgg",
|
||||
"구분",
|
||||
{
|
||||
name: 'groupA',
|
||||
name: "groupA",
|
||||
hideChildHeaders: false,
|
||||
header: { text: '검토내역' },
|
||||
items: ['광역자치단체', '공단', '처리내역'],
|
||||
header: { text: "검토내역" },
|
||||
items: ["광역자치단체", "공단", "처리내역"],
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<SearchForm sgg={false} sido={false} />
|
||||
<DataGrid columnInfo={{ columns, columnLayout }} rowData={rowData} setRowData={setRowData} isExcelImport={false} isExcelExport={false} />
|
||||
<SearchForm sido={false} />
|
||||
<DataGrid
|
||||
columnInfo={{ columns, columnLayout }}
|
||||
rowData={rowData}
|
||||
setRowData={setRowData}
|
||||
isExcelImport={false}
|
||||
isExcelExport={false}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default StatisticsInputManagement;
|
||||
export default StatisticsInputManagement;
|
||||
|
||||
@@ -3,9 +3,9 @@ import SearchForm from "@/components/module/SearchForm";
|
||||
const StatisticsPopulationManagement = () => {
|
||||
return (
|
||||
<>
|
||||
<SearchForm sgg={false} sido={false} />
|
||||
<SearchForm sido={false} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default StatisticsPopulationManagement;
|
||||
export default StatisticsPopulationManagement;
|
||||
|
||||
Reference in New Issue
Block a user