Files
Laca-City/frontend/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md
PhongPham c65cc97a33 🎯 MapView v2.0 - Global Deployment Ready
 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
2025-07-20 19:52:16 +07:00

2.8 KiB

import/newline-after-import

🔧 This rule is automatically fixable by the --fix CLI option.

Enforces having one or more empty lines after the last top-level import statement or require call.

Rule Details

This rule supports the following options:

  • count which sets the number of newlines that are enforced after the last top-level import statement or require call. This option defaults to 1.

  • exactCount which enforce the exact numbers of newlines that is mentioned in count. This option defaults to false.

  • considerComments which enforces the rule on comments after the last import-statement as well when set to true. This option defaults to false.

Valid:

import defaultExport from './foo';

const FOO = 'BAR';
import defaultExport from './foo';
import { bar }  from 'bar-lib';

const FOO = 'BAR';
const FOO = require('./foo');
const BAR = require('./bar');

const BAZ = 1;

Invalid:

import * as foo from 'foo'
const FOO = 'BAR';
import * as foo from 'foo';
const FOO = 'BAR';

import { bar }  from 'bar-lib';
const FOO = require('./foo');
const BAZ = 1;
const BAR = require('./bar');

With count set to 2 this will be considered valid:

import defaultExport from './foo';


const FOO = 'BAR';
import defaultExport from './foo';



const FOO = 'BAR';

With count set to 2 these will be considered invalid:

import defaultExport from './foo';
const FOO = 'BAR';
import defaultExport from './foo';

const FOO = 'BAR';

With count set to 2 and exactCount set to true this will be considered valid:

import defaultExport from './foo';


const FOO = 'BAR';

With count set to 2 and exactCount set to true these will be considered invalid:

import defaultExport from './foo';
const FOO = 'BAR';
import defaultExport from './foo';

const FOO = 'BAR';
import defaultExport from './foo';



const FOO = 'BAR';
import defaultExport from './foo';




const FOO = 'BAR';

With considerComments set to false this will be considered valid:

import defaultExport from './foo'
// some comment here.
const FOO = 'BAR'

With considerComments set to true this will be considered valid:

import defaultExport from './foo'

// some comment here.
const FOO = 'BAR'

With considerComments set to true this will be considered invalid:

import defaultExport from './foo'
// some comment here.
const FOO = 'BAR'

Example options usage

{
  "rules": {
    "import/newline-after-import": ["error", { "count": 2 }]
  }
}

When Not To Use It

If you like to visually group module imports with its usage, you don't want to use this rule.