
CVE-2023-28771에 대한 개념 증명 익스플로잇으로, Zyxel 장치의 심각한 취약점을 보안 테스트 및 검증을 위해 시연합니다.
이 템플릿은 React가 Vite에서 HMR 및 일부 ESLint 규칙과 함께 작동하도록 하는 최소한의 설정을 제공합니다.
현재 두 가지 공식 플러그인이 제공됩니다:
프로덕션 애플리케이션을 개발 중이라면 타입 인식 린트 규칙을 활성화하도록 구성을 업데이트하는 것을 권장합니다:
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
React 관련 린트 규칙을 위해 eslint-plugin-react-x 및 eslint-plugin-react-dom을 설치할 수도 있습니다:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])