Skip to content

Commit ef3ff2a

Browse files
committed
Merge branch 'prerelease'
2 parents 9635918 + b5dae64 commit ef3ff2a

File tree

6 files changed

+278
-1634
lines changed

6 files changed

+278
-1634
lines changed

.eslintrc.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

check-env.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import which from "which";
2+
3+
function check(util) {
4+
try {
5+
which.sync(util);
6+
console.log(` * External dependency <${util}> is present.`);
7+
} catch (e) {
8+
console.error(` * External dependency <${util}> not found.`);
9+
}
10+
}
11+
12+
check("otc2otf");
13+
check("otf2ttf");

checkenv.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import globals from "globals";
2+
import js from "@eslint/js";
3+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
4+
5+
export default [
6+
js.configs.recommended,
7+
eslintPluginPrettierRecommended,
8+
9+
// Ignore machine-generated files
10+
{
11+
ignores: ["hcfg", "sources"]
12+
},
13+
14+
// Main monorepo
15+
{
16+
files: ["make/**/*.mjs", "tools/**/*.mjs", "verdafile.mjs", "check-env.mjs"],
17+
languageOptions: {
18+
ecmaVersion: 2022,
19+
sourceType: "module",
20+
globals: {
21+
...globals.node,
22+
...globals.nodeBuiltin,
23+
24+
...globals.es2021
25+
}
26+
},
27+
28+
rules: {
29+
semi: ["error", "always"],
30+
"no-var": "error",
31+
"no-console": 0,
32+
"no-constant-condition": ["error", { checkLoops: false }],
33+
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
34+
"no-unused-vars": ["off"],
35+
complexity: ["warn", 16]
36+
}
37+
}
38+
];

0 commit comments

Comments
 (0)