-
Notifications
You must be signed in to change notification settings - Fork 571
/
eslint.config.mjs
42 lines (37 loc) · 960 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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],
},
},
];