Skip to content

Commit

Permalink
Fix eslint config + fix linter report
Browse files Browse the repository at this point in the history
  • Loading branch information
rhybrillou committed Nov 26, 2024
1 parent 5ef665a commit 776b958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
17 changes: 3 additions & 14 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,16 @@ import stylistic from "@stylistic/eslint-plugin";
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 [
{
ignores: [
"dist/",
"lib/",
"node_modules/",
"!src/",
],
},
...compat.extends("plugin:github/recommended"), {
{
plugins: {
jest,
"@stylistic": stylistic,
Expand All @@ -47,6 +34,8 @@ export default [
},
},

files: [ "**/*.ts" ],

rules: {
"i18n-text/no-en": "off",
"eslint-comments/no-use": "off",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as core from '@actions/core'
import axios, {isAxiosError} from 'axios'
import axiosRetry, {isNetworkError, isRetryableError} from 'axios-retry';
import axiosRetry, {isNetworkError, isRetryableError} from 'axios-retry'

import * as https from 'https'

Expand Down

0 comments on commit 776b958

Please sign in to comment.