Skip to content

Commit

Permalink
[INTERNAL] Remove ESlint compat
Browse files Browse the repository at this point in the history
+ Replace with recommened js.config + google
  • Loading branch information
maxreichmann committed Aug 1, 2024
1 parent 8b92ad8 commit 9975c47
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
import globals from "globals";
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
});
import google from "eslint-config-google";

export default [{
ignores: ["**/site/"],
}, ...compat.extends("eslint:recommended", "google"), {
}, js.configs.recommended, google, {
plugins: {},

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

0 comments on commit 9975c47

Please sign in to comment.