Skip to content

Commit

Permalink
chore: upgrade eslint to v9 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Nov 19, 2024
1 parent 624c869 commit 7361d5e
Show file tree
Hide file tree
Showing 8 changed files with 462 additions and 564 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

13 changes: 0 additions & 13 deletions .eslintrc.yml

This file was deleted.

31 changes: 31 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["dist/*.js"],
}, ...compat.extends("chartjs"), {
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

ecmaVersion: 2020,
sourceType: "module",
},

rules: {
complexity: [1, 15],
},
}];
Loading

0 comments on commit 7361d5e

Please sign in to comment.