Skip to content

Commit

Permalink
Bump deps and migrate ESLINT to v9 (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis authored Jul 4, 2024
1 parent f45eab7 commit 6e3c73b
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 1,055 deletions.
37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

42 changes: 42 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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],
},
},
];
Loading

0 comments on commit 6e3c73b

Please sign in to comment.