Bump deps and migrate ESLINT to v9 (#2406)
This commit is contained in:
parent
f45eab7759
commit
6e3c73b91e
7 changed files with 227 additions and 1043 deletions
|
@ -1,37 +0,0 @@
|
|||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"commonjs": true,
|
||||
"es6": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"ecmaFeatures": {
|
||||
"jsx": true,
|
||||
"experimentalObjectRestSpread": true
|
||||
},
|
||||
"sourceType": "module"
|
||||
},
|
||||
"extends": ["eslint:recommended", "prettier", "plugin:import/recommended"],
|
||||
"ignorePatterns": ["packages/font-glyphs", "packages/font-otl"],
|
||||
"rules": {
|
||||
"semi": ["error", "always"],
|
||||
"no-var": "error",
|
||||
"no-console": 0,
|
||||
"no-constant-condition": ["error", { "checkLoops": false }],
|
||||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
||||
"no-unused-vars": ["off"],
|
||||
"complexity": ["warn", 16],
|
||||
|
||||
"import/newline-after-import": ["error", { "count": 1 }],
|
||||
"import/no-unresolved": "off",
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
|
||||
"newlines-between": "always",
|
||||
"alphabetize": { "order": "asc", "caseInsensitive": true }
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
42
eslint.config.mjs
Normal file
42
eslint.config.mjs
Normal file
|
@ -0,0 +1,42 @@
|
|||
import globals from "globals";
|
||||
import js from "@eslint/js";
|
||||
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
||||
|
||||
export default [
|
||||
js.configs.recommended,
|
||||
eslintPluginPrettierRecommended,
|
||||
|
||||
// Ignore machine-generated files
|
||||
{
|
||||
ignores: [
|
||||
"packages/font-glyphs/**/*.mjs",
|
||||
"packages/font-otl/**/*.mjs",
|
||||
"packages/font/src/generated/ttfa-ranges.mjs", // Machine-generated
|
||||
],
|
||||
},
|
||||
|
||||
// Main monorepo
|
||||
{
|
||||
files: ["packages/*/src/**/*.mjs", "tools/*/src/**/*.mjs", "verdafile.mjs"],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
sourceType: "module",
|
||||
globals: {
|
||||
...globals.node,
|
||||
...globals.nodeBuiltin,
|
||||
|
||||
...globals.es2021,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
semi: ["error", "always"],
|
||||
"no-var": "error",
|
||||
"no-console": 0,
|
||||
"no-constant-condition": ["error", { checkLoops: false }],
|
||||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
||||
"no-unused-vars": ["off"],
|
||||
complexity: ["warn", 16],
|
||||
},
|
||||
},
|
||||
];
|
1160
package-lock.json
generated
1160
package-lock.json
generated
File diff suppressed because it is too large
Load diff
22
package.json
22
package.json
|
@ -1,33 +1,31 @@
|
|||
{
|
||||
"name": "@iosevka/monorepo",
|
||||
"version": "30.3.1",
|
||||
"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",
|
||||
"clean": "verda -f verdafile.mjs clean",
|
||||
"lint": "eslint . --ext .mjs",
|
||||
"lint": "eslint",
|
||||
"lint:fix": "eslint --fix",
|
||||
"generate-release-sha-file": "node tools/misc/src/generate-release-sha-file.mjs release-archives/*.zip release-archives/SHA-256.txt"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"deep-equal": "^2.2.3",
|
||||
"otb-ttc-bundle": "^1.7.3",
|
||||
"semver": "^7.6.0",
|
||||
"uuid": "^9.0.1",
|
||||
"otb-ttc-bundle": "^1.7.4",
|
||||
"semver": "^7.6.2",
|
||||
"uuid": "^10.0.0",
|
||||
"verda": "^1.12.1",
|
||||
"which": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.57.0",
|
||||
"eslint": "^9.6.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"glob": "^10.3.10",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"glob": "^10.4.2",
|
||||
"patel": "^0.40.0",
|
||||
"prettier": "^3.2.5"
|
||||
"prettier": "^3.3.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
"@iosevka/glyph": "30.3.1",
|
||||
"@iosevka/param": "30.3.1",
|
||||
"@iosevka/util": "30.3.1",
|
||||
"harfbuzzjs": "^0.3.4",
|
||||
"ot-builder": "^1.7.3",
|
||||
"semver": "^7.6.0"
|
||||
"harfbuzzjs": "^0.3.5",
|
||||
"ot-builder": "^1.7.4",
|
||||
"semver": "^7.6.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "30.3.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"semver": "^7.6.0",
|
||||
"semver": "^7.6.2",
|
||||
"wawoff2": "^2.0.1",
|
||||
"@iosevka/util": "30.3.1"
|
||||
}
|
||||
|
|
|
@ -695,7 +695,6 @@ const CollectPlans = computed(`metadata:collect-plans`, async target => {
|
|||
|
||||
const SGR_PREFIX_PREFIX = "SGr-";
|
||||
|
||||
// eslint-disable-next-line complexity
|
||||
async function getCollectPlans(target, rawCollectPlans) {
|
||||
const plans = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue