summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGusted <postmaster@gusted.xyz>2024-10-23 07:07:18 +0200
committerGusted <postmaster@gusted.xyz>2024-10-23 15:28:43 +0200
commit7ad83fce40170b6a970eadc75a33c32479deffb6 (patch)
tree08e81676b6431816f20378cd89980950c92b8022 /tools
parentMerge pull request 'Update dependency eslint-plugin-unicorn to v56 (forgejo)'... (diff)
downloadforgejo-7ad83fce40170b6a970eadc75a33c32479deffb6.tar.xz
forgejo-7ad83fce40170b6a970eadc75a33c32479deffb6.zip
chore: move to Eslint flat config
Make the big move to Eslint flat config format. The outcome of Eslint still should be the same, but some things has changed: - `eslint-plugin-github` is dropped, flat configs have been out for a while and most eslint plugins support it, but for no reason and no activity in sight this plugin is likely not going to support flat config for a while and to avoid other plugins not being able to update (as they are requiring flat configs) drop the github rules. - Nested configs don't work properly and are unified into the root eslint config, this unification did cause some conflicts and thats why the `import-x` is in a seperate 'group' to exclude targeting Vue files. - The `eslint-plugin-i` is deprecated and `esplint-plugin-import-x` is its succesor which has better support for flat configs, the same rules are still applied. The majority of the flat config was generated by `@eslint/migrate-config` tool.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/generate-images.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate-images.js b/tools/generate-images.js
index 0bd3af29e4..d28e0916f7 100755
--- a/tools/generate-images.js
+++ b/tools/generate-images.js
@@ -1,6 +1,6 @@
#!/usr/bin/env node
-import imageminZopfli from 'imagemin-zopfli'; // eslint-disable-line i/no-unresolved
-import {loadSVGFromString, Canvas, Rect, util} from 'fabric/node'; // eslint-disable-line i/no-unresolved
+import imageminZopfli from 'imagemin-zopfli'; // eslint-disable-line import-x/no-unresolved
+import {loadSVGFromString, Canvas, Rect, util} from 'fabric/node'; // eslint-disable-line import-x/no-unresolved
import {optimize} from 'svgo';
import {readFile, writeFile} from 'node:fs/promises';
import {argv, exit} from 'node:process';