Skip to content

Commit

Permalink
Merge pull request #16 from morganstanley/dependabot/npm_and_yarn/esl…
Browse files Browse the repository at this point in the history
…int-9.13.0

Bump eslint from 8.49.0 to 9.13.0
  • Loading branch information
bingenito authored Nov 7, 2024
2 parents bd78a71 + 1ce829e commit 6845a7d
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 376 deletions.
28 changes: 0 additions & 28 deletions .eslintrc.json

This file was deleted.

42 changes: 42 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const globals = require("globals");
const js = require("@eslint/js");

const {
FlatCompat,
} = require("@eslint/eslintrc");

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [...compat.extends(
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:n/recommended",
), {
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

ecmaVersion: "latest"
},

rules: {
"eslint-plugin/require-meta-docs-description": ["error", {
pattern: "^(Enforce|Require|Disallow|Prefer).+\\.$",
}],
"n/no-extraneous-require": "off"
},
}, {
files: ["**/tests/*.js"],

languageOptions: {
globals: {
...globals.mocha,
},
},
}];
Loading

0 comments on commit 6845a7d

Please sign in to comment.