Bring back eslint-plugin-import
This commit is contained in:
parent
1666e2b37a
commit
1b7ad7cab9
21 changed files with 910 additions and 34 deletions
|
@ -1,10 +1,12 @@
|
||||||
import globals from "globals";
|
import globals from "globals";
|
||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||||
|
import importPlugin from "eslint-plugin-import";
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
eslintPluginPrettierRecommended,
|
eslintPluginPrettierRecommended,
|
||||||
|
importPlugin.flatConfigs.recommended,
|
||||||
|
|
||||||
// Ignore machine-generated files
|
// Ignore machine-generated files
|
||||||
{
|
{
|
||||||
|
@ -37,6 +39,19 @@ export default [
|
||||||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
||||||
"no-unused-vars": ["off"],
|
"no-unused-vars": ["off"],
|
||||||
complexity: ["warn", 16],
|
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
855
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,10 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@iosevka/monorepo",
|
"name": "@iosevka/monorepo",
|
||||||
"version": "31.8.0",
|
"version": "31.8.0",
|
||||||
"workspaces": [
|
"workspaces": ["packages/*", "tools/*"],
|
||||||
"packages/*",
|
|
||||||
"tools/*"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "verda -f verdafile.mjs",
|
"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",
|
"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": "^9.12.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
|
"eslint-plugin-import": "^2.31.0",
|
||||||
"glob": "^11.0.0",
|
"glob": "^11.0.0",
|
||||||
"patel": "^0.40.0",
|
"patel": "^0.40.0",
|
||||||
"prettier": "^3.3.3"
|
"prettier": "^3.3.3"
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iosevka/geometry": "31.8.0",
|
"@iosevka/geometry": "31.8.0",
|
||||||
"@iosevka/glyph": "31.8.0",
|
"@iosevka/glyph": "31.8.0",
|
||||||
"@iosevka/util": "31.8.0"
|
"@iosevka/util": "31.8.0",
|
||||||
|
"typo-geom": "^0.16.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {
|
||||||
VirtualControlKnot,
|
VirtualControlKnot,
|
||||||
} from "@iosevka/geometry/spiro-control";
|
} from "@iosevka/geometry/spiro-control";
|
||||||
import { bez3, fallback, mix } from "@iosevka/util";
|
import { bez3, fallback, mix } from "@iosevka/util";
|
||||||
|
|
||||||
import { BiKnotCollector } from "../../geometry/src/spiro-expand.mjs";
|
import { BiKnotCollector } from "../../geometry/src/spiro-expand.mjs";
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"@iosevka/util": "31.8.0",
|
"@iosevka/util": "31.8.0",
|
||||||
"harfbuzzjs": "^0.4.0",
|
"harfbuzzjs": "^0.4.0",
|
||||||
"ot-builder": "^1.7.4",
|
"ot-builder": "^1.7.4",
|
||||||
"semver": "^7.6.3"
|
"semver": "^7.6.3",
|
||||||
|
"@msgpack/msgpack": "^2.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { linreg } from "@iosevka/util";
|
||||||
import * as SpiroJs from "spiro";
|
import * as SpiroJs from "spiro";
|
||||||
|
|
||||||
import { linreg } from "@iosevka/util";
|
|
||||||
import * as CurveUtil from "./curve-util.mjs";
|
import * as CurveUtil from "./curve-util.mjs";
|
||||||
import { Point } from "./point.mjs";
|
import { Point } from "./point.mjs";
|
||||||
import { MonoKnot } from "./spiro-to-outline.mjs";
|
import { MonoKnot } from "./spiro-to-outline.mjs";
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
"@iosevka/param": "31.8.0",
|
"@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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"@iarna/toml": "^2.2.5",
|
"@iarna/toml": "^2.2.5",
|
||||||
"@iosevka/param": "31.8.0",
|
"@iosevka/param": "31.8.0",
|
||||||
"@unicode/unicode-16.0.0": "^1.6.0",
|
"@unicode/unicode-16.0.0": "^1.6.0",
|
||||||
"cldr": "^7.5.0"
|
"cldr": "^7.5.0",
|
||||||
|
"@msgpack/msgpack": "^2.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default (function (args) {
|
export default (function (args) {
|
||||||
const theme = themes[args.theme];
|
const theme = themes[args.theme];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default CharGrid;
|
export default CharGrid;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default (function (args) {
|
export default (function (args) {
|
||||||
const theme = themes[args.theme];
|
const theme = themes[args.theme];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default (function (args) {
|
export default (function (args) {
|
||||||
const theme = themes[args.theme];
|
const theme = themes[args.theme];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const languages = [
|
const languages = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
function* makeSample(theme, args) {
|
function* makeSample(theme, args) {
|
||||||
const groupSet = new Set(args.ligSets);
|
const groupSet = new Set(args.ligSets);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default (function (args) {
|
export default (function (args) {
|
||||||
const theme = themes[args.theme];
|
const theme = themes[args.theme];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
export const ssStrings = [
|
export const ssStrings = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
const ssStrings = [
|
const ssStrings = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as themes from "../themes/index.mjs";
|
import themes from "../themes/index.mjs";
|
||||||
|
|
||||||
export default (function (args) {
|
export default (function (args) {
|
||||||
const theme = themes[args.theme];
|
const theme = themes[args.theme];
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
export const light = {
|
const themes = {
|
||||||
body: "#20242E",
|
light: {
|
||||||
dimmed: "#20242E40",
|
body: "#20242E",
|
||||||
stress: "#048FBF",
|
dimmed: "#20242E40",
|
||||||
sigil: "#974caf",
|
stress: "#048FBF",
|
||||||
title: "#8757AD",
|
sigil: "#974caf",
|
||||||
};
|
title: "#8757AD",
|
||||||
export const dark = {
|
},
|
||||||
body: "#DEE4E3",
|
dark: {
|
||||||
dimmed: "#DEE4E340",
|
body: "#DEE4E3",
|
||||||
stress: "#03AEE9",
|
dimmed: "#DEE4E340",
|
||||||
sigil: "#c49ed1",
|
stress: "#03AEE9",
|
||||||
title: "#B77FDB",
|
sigil: "#c49ed1",
|
||||||
|
title: "#B77FDB",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default themes;
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"semver": "^7.6.3",
|
"semver": "^7.6.3",
|
||||||
"wawoff2": "^2.0.1",
|
"wawoff2": "^2.0.1",
|
||||||
"@iosevka/util": "31.8.0"
|
"@iosevka/util": "31.8.0",
|
||||||
|
"@unicode/unicode-16.0.0": "^1.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue