Skip to content

Commit 9975c47

Browse files
committed
[INTERNAL] Remove ESlint compat
+ Replace with recommened js.config + google
1 parent 8b92ad8 commit 9975c47

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

eslint.config.mjs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
import globals from "globals";
2-
import path from "node:path";
3-
import {fileURLToPath} from "node:url";
42
import js from "@eslint/js";
5-
import {FlatCompat} from "@eslint/eslintrc";
6-
7-
const __filename = fileURLToPath(import.meta.url);
8-
const __dirname = path.dirname(__filename);
9-
const compat = new FlatCompat({
10-
baseDirectory: __dirname,
11-
recommendedConfig: js.configs.recommended,
12-
allConfig: js.configs.all
13-
});
3+
import google from "eslint-config-google";
144

155
export default [{
166
ignores: ["**/site/"],
17-
}, ...compat.extends("eslint:recommended", "google"), {
7+
}, js.configs.recommended, google, {
188
plugins: {},
199

2010
languageOptions: {
@@ -52,6 +42,9 @@ export default [{
5242
"comma-dangle": "off",
5343
"no-tabs": "off",
5444
"no-console": "off", // scripts use console.log to print out
45+
// This rule must be disabled as of ESLint 9.
46+
// It's removed and causes issues when present
47+
// https://eslint.org/docs/latest/rules/valid-jsdoc
5548
"valid-jsdoc": 0,
56-
},
49+
}
5750
}];

0 commit comments

Comments
 (0)