@@ -12,19 +12,19 @@ Currently, two official plugins are available:
1212If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
1313
1414``` js
15- export default tseslint . config ([
15+ export default defineConfig ([
1616 globalIgnores ([' dist' ]),
1717 {
1818 files: [' **/*.{ts,tsx}' ],
1919 extends: [
2020 // Other configs...
2121
2222 // Remove tseslint.configs.recommended and replace with this
23- ... tseslint .configs .recommendedTypeChecked ,
23+ tseslint .configs .recommendedTypeChecked ,
2424 // Alternatively, use this for stricter rules
25- ... tseslint .configs .strictTypeChecked ,
25+ tseslint .configs .strictTypeChecked ,
2626 // Optionally, add this for stylistic rules
27- ... tseslint .configs .stylisticTypeChecked ,
27+ tseslint .configs .stylisticTypeChecked ,
2828
2929 // Other configs...
3030 ],
@@ -46,7 +46,7 @@ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-re
4646import reactX from ' eslint-plugin-react-x'
4747import reactDom from ' eslint-plugin-react-dom'
4848
49- export default tseslint . config ([
49+ export default defineConfig ([
5050 globalIgnores ([' dist' ]),
5151 {
5252 files: [' **/*.{ts,tsx}' ],
0 commit comments