✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
71 lines
3.4 KiB
JavaScript
71 lines
3.4 KiB
JavaScript
"use strict";
|
|
module.exports = {
|
|
rules: {
|
|
"google-font-display": require("./rules/google-font-display"),
|
|
"google-font-preconnect": require("./rules/google-font-preconnect"),
|
|
"inline-script-id": require("./rules/inline-script-id"),
|
|
"next-script-for-ga": require("./rules/next-script-for-ga"),
|
|
"no-assign-module-variable": require("./rules/no-assign-module-variable"),
|
|
"no-async-client-component": require("./rules/no-async-client-component"),
|
|
"no-before-interactive-script-outside-document": require("./rules/no-before-interactive-script-outside-document"),
|
|
"no-css-tags": require("./rules/no-css-tags"),
|
|
"no-document-import-in-page": require("./rules/no-document-import-in-page"),
|
|
"no-duplicate-head": require("./rules/no-duplicate-head"),
|
|
"no-head-element": require("./rules/no-head-element"),
|
|
"no-head-import-in-document": require("./rules/no-head-import-in-document"),
|
|
"no-html-link-for-pages": require("./rules/no-html-link-for-pages"),
|
|
"no-img-element": require("./rules/no-img-element"),
|
|
"no-page-custom-font": require("./rules/no-page-custom-font"),
|
|
"no-script-component-in-head": require("./rules/no-script-component-in-head"),
|
|
"no-styled-jsx-in-document": require("./rules/no-styled-jsx-in-document"),
|
|
"no-sync-scripts": require("./rules/no-sync-scripts"),
|
|
"no-title-in-document-head": require("./rules/no-title-in-document-head"),
|
|
"no-typos": require("./rules/no-typos"),
|
|
"no-unwanted-polyfillio": require("./rules/no-unwanted-polyfillio")
|
|
},
|
|
configs: {
|
|
recommended: {
|
|
plugins: [
|
|
"@next/next"
|
|
],
|
|
rules: {
|
|
// warnings
|
|
"@next/next/google-font-display": "warn",
|
|
"@next/next/google-font-preconnect": "warn",
|
|
"@next/next/next-script-for-ga": "warn",
|
|
"@next/next/no-async-client-component": "warn",
|
|
"@next/next/no-before-interactive-script-outside-document": "warn",
|
|
"@next/next/no-css-tags": "warn",
|
|
"@next/next/no-head-element": "warn",
|
|
"@next/next/no-html-link-for-pages": "warn",
|
|
"@next/next/no-img-element": "warn",
|
|
"@next/next/no-page-custom-font": "warn",
|
|
"@next/next/no-styled-jsx-in-document": "warn",
|
|
"@next/next/no-sync-scripts": "warn",
|
|
"@next/next/no-title-in-document-head": "warn",
|
|
"@next/next/no-typos": "warn",
|
|
"@next/next/no-unwanted-polyfillio": "warn",
|
|
// errors
|
|
"@next/next/inline-script-id": "error",
|
|
"@next/next/no-assign-module-variable": "error",
|
|
"@next/next/no-document-import-in-page": "error",
|
|
"@next/next/no-duplicate-head": "error",
|
|
"@next/next/no-head-import-in-document": "error",
|
|
"@next/next/no-script-component-in-head": "error"
|
|
}
|
|
},
|
|
"core-web-vitals": {
|
|
plugins: [
|
|
"@next/next"
|
|
],
|
|
extends: [
|
|
"plugin:@next/next/recommended"
|
|
],
|
|
rules: {
|
|
"@next/next/no-html-link-for-pages": "error",
|
|
"@next/next/no-sync-scripts": "error"
|
|
}
|
|
}
|
|
}
|
|
};
|