golangci-lint-action/eslint.config.mjs
dependabot[bot] fce8c98977
Some checks failed
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, latest) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.7) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.7) (push) Has been cancelled
build-and-test / test (windows-latest, ) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (macos-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, v2.7.2) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, v2.7.2) (push) Has been cancelled
build-and-test / test (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, 655e8ede5178280b2a640e185bc4a343aed0f54e) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, ) (push) Has been cancelled
Code Scanning - Action / codeQL (push) Has been cancelled
build-and-test / build (push) Has been cancelled
build-and-test / test (macos-latest, ) (push) Has been cancelled
build-and-test / test (macos-latest, latest) (push) Has been cancelled
build-and-test / test (macos-latest, v2.7) (push) Has been cancelled
build-and-test / test (macos-latest, v2.7.2) (push) Has been cancelled
build-and-test / test (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, ) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.7) (push) Has been cancelled
build-and-test / test (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, ) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, 655e8ede5178280b2a640e185bc4a343aed0f54e) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, latest) (push) Has been cancelled
build-and-test / test (ubuntu-latest, v2.7.2) (push) Has been cancelled
build-and-test / test (windows-latest, v2.7) (push) Has been cancelled
build-and-test / test (windows-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-go-install (macos-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, v2.7) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-monorepo (macos-latest) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-22.04-arm, v2.7.2) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, ) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, 655e8ede5178280b2a640e185bc4a343aed0f54e) (push) Has been cancelled
build-and-test / test-go-install (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, latest) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, latest) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, 655e8ede5178280b2a640e185bc4a343aed0f54e) (push) Has been cancelled
build-and-test / test-go-install (ubuntu-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, latest) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-22.04-arm, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-go-mod (ubuntu-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-mod) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, ) (push) Has been cancelled
build-and-test / test-go-mod (windows-latest, fixtures/go-tool) (push) Has been cancelled
build-and-test / test-plugins (macos-latest, v2.7.2) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-22.04-arm, ) (push) Has been cancelled
build-and-test / test-plugins (ubuntu-latest, v2.7) (push) Has been cancelled
build-and-test / test-plugins (windows-latest, v2.7) (push) Has been cancelled
build-and-test / test-monorepo (ubuntu-22.04-arm) (push) Has been cancelled
build-and-test / test-monorepo (windows-latest) (push) Has been cancelled
build(deps-dev): bump the dev-dependencies group across 1 directory with 3 updates (#1344)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2026-02-16 15:15:42 +01:00

55 lines
No EOL
1.6 KiB
JavaScript

import { defineConfig } from "eslint/config";
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import simpleImportSort from "eslint-plugin-simple-import-sort";
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 defineConfig([{
extends: fixupConfigRules(compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
)),
plugins: {
"@typescript-eslint": fixupPluginRules(typescriptEslint),
"simple-import-sort": simpleImportSort,
},
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
parser: tsParser,
ecmaVersion: 2020,
sourceType: "commonjs",
},
rules: {
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort-imports": "off",
},
}]);