Skip to content

Commit

Permalink
chore: dependency updates
Browse files Browse the repository at this point in the history
chore: converted .eslintrc.json to eslint.config.mjs to comply with eslint update
  • Loading branch information
wwills2 committed Jul 16, 2024
1 parent 9cd4803 commit b3a81c4
Show file tree
Hide file tree
Showing 4 changed files with 989 additions and 833 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

50 changes: 50 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import mocha from "eslint-plugin-mocha";
import es from "eslint-plugin-es";
import globals from "globals";
import babelParser from "@babel/eslint-parser";
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 [...compat.extends("eslint:recommended", "plugin:mocha/recommended"), {
plugins: {
mocha,
es,
},

languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
},

parser: babelParser,
ecmaVersion: 13,
sourceType: "module",

parserOptions: {
requireConfigFile: false,
},
},

settings: {
es: {
deprecatedAssertSyntax: true,
allowImportExportEverywhere: true,
importAssertions: true,
},
},

rules: {
"es/no-dynamic-import": "error",
},
}];
Loading

0 comments on commit b3a81c4

Please sign in to comment.