Skip to content

Commit 6845a7d

Browse files
authored
Merge pull request #16 from morganstanley/dependabot/npm_and_yarn/eslint-9.13.0
Bump eslint from 8.49.0 to 9.13.0
2 parents bd78a71 + 1ce829e commit 6845a7d

File tree

6 files changed

+445
-376
lines changed

6 files changed

+445
-376
lines changed

.eslintrc.json

-28
This file was deleted.

eslint.config.cjs

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
const globals = require("globals");
2+
const js = require("@eslint/js");
3+
4+
const {
5+
FlatCompat,
6+
} = require("@eslint/eslintrc");
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
module.exports = [...compat.extends(
15+
"eslint:recommended",
16+
"plugin:eslint-plugin/recommended",
17+
"plugin:n/recommended",
18+
), {
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
...globals.node,
23+
},
24+
25+
ecmaVersion: "latest"
26+
},
27+
28+
rules: {
29+
"eslint-plugin/require-meta-docs-description": ["error", {
30+
pattern: "^(Enforce|Require|Disallow|Prefer).+\\.$",
31+
}],
32+
"n/no-extraneous-require": "off"
33+
},
34+
}, {
35+
files: ["**/tests/*.js"],
36+
37+
languageOptions: {
38+
globals: {
39+
...globals.mocha,
40+
},
41+
},
42+
}];

0 commit comments

Comments
 (0)