From 5fc202181cae197a8b98a27039d4fc974321a282 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Fri, 7 Feb 2025 16:40:15 +0000 Subject: [PATCH 1/3] remove github plugin from typescript --- lib/configs/flat/typescript.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/configs/flat/typescript.js b/lib/configs/flat/typescript.js index 29c48e2d..5fd5695d 100644 --- a/lib/configs/flat/typescript.js +++ b/lib/configs/flat/typescript.js @@ -1,13 +1,11 @@ const tseslint = require('typescript-eslint') const escompat = require('eslint-plugin-escompat') -const github = require('../../plugin') -const {fixupPluginRules} = require('@eslint/compat') module.exports = tseslint.config(...tseslint.configs.recommended, ...escompat.configs['flat/typescript-2020'], { languageOptions: { parser: tseslint.parser, }, - plugins: {'@typescript-eslint': tseslint.plugin, escompat, github: fixupPluginRules(github)}, + plugins: {'@typescript-eslint': tseslint.plugin, escompat}, rules: { camelcase: 'off', 'no-unused-vars': 'off', From 764e3a5d3c9f1c4f302e56e09d44c4432122a881 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Fri, 7 Feb 2025 23:56:39 +0000 Subject: [PATCH 2/3] update to add the default regex --- lib/configs/flat/recommended.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configs/flat/recommended.js b/lib/configs/flat/recommended.js index 748647ea..77da79c1 100644 --- a/lib/configs/flat/recommended.js +++ b/lib/configs/flat/recommended.js @@ -32,7 +32,7 @@ module.exports = { 'eslint-comments/no-unused-disable': 'error', 'eslint-comments/no-unused-enable': 'error', 'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}], - 'github/filenames-match-regex': 'error', + 'github/filenames-match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'], 'func-style': ['error', 'declaration', {allowArrowFunctions: true}], 'github/array-foreach': 'error', 'github/no-implicit-buggy-globals': 'error', From d81a53d2b31fadce716de1dd66bb735e2e76cc1c Mon Sep 17 00:00:00 2001 From: Grace Park Date: Sat, 8 Feb 2025 00:13:53 +0000 Subject: [PATCH 3/3] mistake --- lib/configs/flat/recommended.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configs/flat/recommended.js b/lib/configs/flat/recommended.js index 77da79c1..748647ea 100644 --- a/lib/configs/flat/recommended.js +++ b/lib/configs/flat/recommended.js @@ -32,7 +32,7 @@ module.exports = { 'eslint-comments/no-unused-disable': 'error', 'eslint-comments/no-unused-enable': 'error', 'eslint-comments/no-use': ['error', {allow: ['eslint', 'eslint-disable-next-line', 'eslint-env', 'globals']}], - 'github/filenames-match-regex': ['error', '^[a-z0-9-]+(.[a-z0-9-]+)?$'], + 'github/filenames-match-regex': 'error', 'func-style': ['error', 'declaration', {allowArrowFunctions: true}], 'github/array-foreach': 'error', 'github/no-implicit-buggy-globals': 'error',