Skip to content

Commit

Permalink
Merge branch 'prerelease'
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jul 28, 2024
2 parents 9635918 + b5dae64 commit ef3ff2a
Show file tree
Hide file tree
Showing 6 changed files with 278 additions and 1,634 deletions.
36 changes: 0 additions & 36 deletions .eslintrc.json

This file was deleted.

13 changes: 13 additions & 0 deletions check-env.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import which from "which";

function check(util) {
try {
which.sync(util);
console.log(` * External dependency <${util}> is present.`);
} catch (e) {
console.error(` * External dependency <${util}> not found.`);
}
}

check("otc2otf");
check("otf2ttf");
13 changes: 0 additions & 13 deletions checkenv.js

This file was deleted.

38 changes: 38 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: ["hcfg", "sources"]
},

// Main monorepo
{
files: ["make/**/*.mjs", "tools/**/*.mjs", "verdafile.mjs", "check-env.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]
}
}
];
Loading

0 comments on commit ef3ff2a

Please sign in to comment.