I have import sources in my ts file
Here is it
import accounting from "accounting";
import { Feature } from "geojson";
import { GeoJsonProperties } from "geojson";
import { GeoJSONGeometry } from "mapbox-gl";
import Helpers from "../../common/helpers";
import { Layer } from "mapbox-gl";
import mapboxgl from "mapbox-gl";
import { Map } from "mapbox-gl";
import { Popup } from "mapbox-gl";
import { __ } from "../../common/translation";
But I have error in codacy
Import sources within a group must be alphabetized
I cannot understand why, because all already alphabetized?
How I can fix this?
As per this answer :
The filepaths are also used as part of the ordering...
These are the 'sources' being referenced in the error. You can disable this in your tslint.json
file with the following rule:
"ordered-imports": false
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.