Bring back eslint-plugin-import

This commit is contained in:
be5invis 2024-10-11 19:09:52 -07:00
parent 1666e2b37a
commit 1b7ad7cab9
21 changed files with 910 additions and 34 deletions

View file

@ -1,10 +1,12 @@
import globals from "globals";
import js from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import importPlugin from "eslint-plugin-import";
export default [
js.configs.recommended,
eslintPluginPrettierRecommended,
importPlugin.flatConfigs.recommended,
// Ignore machine-generated files
{
@ -37,6 +39,19 @@ export default [
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-unused-vars": ["off"],
complexity: ["warn", 16],
// eslint-import rules
"import/no-unresolved": "off", // ESLint does not support subpath exports, but we do
"import/no-extraneous-dependencies": "error",
"import/newline-after-import": ["error", { count: 1 }],
"import/order": [
"error",
{
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
"newlines-between": "always",
alphabetize: { order: "asc", caseInsensitive: true },
},
],
},
},
];

855
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,7 @@
{
"name": "@iosevka/monorepo",
"version": "31.8.0",
"workspaces": [
"packages/*",
"tools/*"
],
"workspaces": ["packages/*", "tools/*"],
"scripts": {
"build": "verda -f verdafile.mjs",
"bump-ver": "node tools/misc/src/update-package-json-version.mjs && npm install && node tools/misc/src/generate-ttfa-ranges.mjs",
@ -26,6 +23,7 @@
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-import": "^2.31.0",
"glob": "^11.0.0",
"patel": "^0.40.0",
"prettier": "^3.3.3"

View file

@ -10,6 +10,7 @@
"dependencies": {
"@iosevka/geometry": "31.8.0",
"@iosevka/glyph": "31.8.0",
"@iosevka/util": "31.8.0"
"@iosevka/util": "31.8.0",
"typo-geom": "^0.16.1"
}
}

View file

@ -9,6 +9,7 @@ import {
VirtualControlKnot,
} from "@iosevka/geometry/spiro-control";
import { bez3, fallback, mix } from "@iosevka/util";
import { BiKnotCollector } from "../../geometry/src/spiro-expand.mjs";
///////////////////////////////////////////////////////////////////////////////////////////////////

View file

@ -19,6 +19,7 @@
"@iosevka/util": "31.8.0",
"harfbuzzjs": "^0.4.0",
"ot-builder": "^1.7.4",
"semver": "^7.6.3"
"semver": "^7.6.3",
"@msgpack/msgpack": "^2.8.0"
}
}

View file

@ -1,6 +1,6 @@
import { linreg } from "@iosevka/util";
import * as SpiroJs from "spiro";
import { linreg } from "@iosevka/util";
import * as CurveUtil from "./curve-util.mjs";
import { Point } from "./point.mjs";
import { MonoKnot } from "./spiro-to-outline.mjs";

View file

@ -8,6 +8,7 @@
"dependencies": {
"@iarna/toml": "^2.2.5",
"@iosevka/param": "31.8.0",
"@unicode/unicode-16.0.0": "^1.6.0"
"@unicode/unicode-16.0.0": "^1.6.0",
"semver": "^7.6.3"
}
}

View file

@ -12,6 +12,7 @@
"@iarna/toml": "^2.2.5",
"@iosevka/param": "31.8.0",
"@unicode/unicode-16.0.0": "^1.6.0",
"cldr": "^7.5.0"
"cldr": "^7.5.0",
"@msgpack/msgpack": "^2.8.0"
}
}

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default (function (args) {
const theme = themes[args.theme];

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default CharGrid;

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default (function (args) {
const theme = themes[args.theme];

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default (function (args) {
const theme = themes[args.theme];

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
// prettier-ignore
const languages = [

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
function* makeSample(theme, args) {
const groupSet = new Set(args.ligSets);

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default (function (args) {
const theme = themes[args.theme];

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
// prettier-ignore
export const ssStrings = [

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
// prettier-ignore
const ssStrings = [

View file

@ -1,4 +1,4 @@
import * as themes from "../themes/index.mjs";
import themes from "../themes/index.mjs";
export default (function (args) {
const theme = themes[args.theme];

View file

@ -1,14 +1,18 @@
export const light = {
body: "#20242E",
dimmed: "#20242E40",
stress: "#048FBF",
sigil: "#974caf",
title: "#8757AD",
};
export const dark = {
body: "#DEE4E3",
dimmed: "#DEE4E340",
stress: "#03AEE9",
sigil: "#c49ed1",
title: "#B77FDB",
const themes = {
light: {
body: "#20242E",
dimmed: "#20242E40",
stress: "#048FBF",
sigil: "#974caf",
title: "#8757AD",
},
dark: {
body: "#DEE4E3",
dimmed: "#DEE4E340",
stress: "#03AEE9",
sigil: "#c49ed1",
title: "#B77FDB",
},
};
export default themes;

View file

@ -5,6 +5,7 @@
"dependencies": {
"semver": "^7.6.3",
"wawoff2": "^2.0.1",
"@iosevka/util": "31.8.0"
"@iosevka/util": "31.8.0",
"@unicode/unicode-16.0.0": "^1.6.0"
}
}