Files
codecov-action/eslint.config.mjs
Tom Hu ef609d6cb5 chore(deps): bump to eslint9+ and remove eslint-config-google (#1591)
* chore(deps): remove eslint-google as not supported by eslint9

* fix: actually remove eslint-config-google
2024-10-03 10:47:20 -05:00

44 lines
1.1 KiB
JavaScript

import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
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
});
export default [
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
globals: {
...globals.browser,
...globals.commonjs,
},
parser: tsParser,
ecmaVersion: 12,
sourceType: "script",
},
rules: {
"max-len": ["error", {
code: 120,
}],
"linebreak-style": 0,
},
},
];