Skip to content

Commit

Permalink
test: updates eslint to major version 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Pactionly committed Jun 11, 2024
1 parent 67517dc commit 74e6344
Show file tree
Hide file tree
Showing 4 changed files with 371 additions and 232 deletions.
15 changes: 0 additions & 15 deletions .eslintrc.json

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const globals = require("globals");
const eslint = require("@eslint/js");
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
const mochaPlugin = require("eslint-plugin-mocha");

module.exports = [
eslint.configs.recommended,
mochaPlugin.configs.flat.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
sourceType: "commonjs",
ecmaVersion: 2020,
globals: {
...globals.node,
},
},
rules: {
"prettier/prettier": "error",
"mocha/no-mocha-arrows": "off", // Temporary to not include excessive changes in eslint upgrade
},
},
];
Loading

0 comments on commit 74e6344

Please sign in to comment.