mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
It's apparently forced now to use the eslint.config.js instead of .eslintrc It got more strict with requiring the underscore on unused vars like `catch(_err)` , but that was all Closes #1012 Closes #995 Closes #992 ## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> - [ ] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Include before/after visuals or gifs if this PR includes visual changes. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section.
34 lines
726 B
TypeScript
34 lines
726 B
TypeScript
import replace from "@rollup/plugin-replace";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import istanbul from "vite-plugin-istanbul";
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: 8888,
|
|
},
|
|
build: {
|
|
sourcemap: true
|
|
},
|
|
plugins: [
|
|
replace({
|
|
preventAssignment: true,
|
|
include: /\/jsonlint-lines-primitives\/lib\/jsonlint.js/,
|
|
delimiters: ["", ""],
|
|
values: {
|
|
"_token_stack:": "",
|
|
},
|
|
}),
|
|
react(),
|
|
istanbul({
|
|
cypress: true,
|
|
requireEnv: false,
|
|
nycrcPath: "./.nycrc.json",
|
|
forceBuildInstrument: true, //Instrument the source code for cypress runs
|
|
}),
|
|
],
|
|
define: {
|
|
global: "window",
|
|
},
|
|
});
|