mirror of
https://github.com/Maks1mS/free-ozon-dpr.git
synced 2025-04-05 08:53:47 +03:00
add eslint
This commit is contained in:
parent
570c2eb323
commit
62c7f55785
16
eslint.config.js
Normal file
16
eslint.config.js
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import globals from "globals";
|
||||||
|
import pluginJs from "@eslint/js";
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
// files: ["src/**/*.js"],
|
||||||
|
ignores: [
|
||||||
|
"dist/**/*.js",
|
||||||
|
"!scripts/**/*.js"
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
languageOptions: { globals: { ...globals.browser, ...globals.node } },
|
||||||
|
},
|
||||||
|
pluginJs.configs.recommended,
|
||||||
|
];
|
887
package-lock.json
generated
887
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,9 +6,13 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview",
|
||||||
|
"lint": "eslint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@eslint/js": "^9.4.0",
|
||||||
|
"eslint": "^9.4.0",
|
||||||
|
"globals": "^15.4.0",
|
||||||
"vite": "^5.2.0",
|
"vite": "^5.2.0",
|
||||||
"vite-plugin-radar": "^0.9.6",
|
"vite-plugin-radar": "^0.9.6",
|
||||||
"vite-plugin-webfont-dl": "^3.9.4"
|
"vite-plugin-webfont-dl": "^3.9.4"
|
||||||
|
@ -4,7 +4,7 @@ import View from 'ol/View';
|
|||||||
import TileLayer from 'ol/layer/Tile';
|
import TileLayer from 'ol/layer/Tile';
|
||||||
import { fromLonLat } from 'ol/proj';
|
import { fromLonLat } from 'ol/proj';
|
||||||
import { XYZ } from 'ol/source';
|
import { XYZ } from 'ol/source';
|
||||||
import { createXYZ } from 'ol/tilegrid';
|
// import { createXYZ } from 'ol/tilegrid';
|
||||||
|
|
||||||
const MAP_TARGET = 'map';
|
const MAP_TARGET = 'map';
|
||||||
const MAP_CENTER = fromLonLat([37.57725139554275, 48.02287702854201]);
|
const MAP_CENTER = fromLonLat([37.57725139554275, 48.02287702854201]);
|
||||||
|
Loading…
Reference in New Issue
Block a user