From 415b6eb05ed506488e19d2ad23d5f2328faf0f26 Mon Sep 17 00:00:00 2001 From: Ned Schwartz Date: Thu, 17 Nov 2022 18:13:39 -0500 Subject: [PATCH] allow `.server.[ext]` file extension This change updates the recommended eslint config to match the `.server.[ext]` file extension introduced in https://github.com/github/github/pull/247398 ... although the actual extension is under discussion and may change. --- lib/configs/recommended.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configs/recommended.js b/lib/configs/recommended.js index e2861f78..ee516bb9 100644 --- a/lib/configs/recommended.js +++ b/lib/configs/recommended.js @@ -18,7 +18,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']}], - 'filenames/match-regex': ['error', '^[a-z0-9-]+(.d|.config)?$'], + 'filenames/match-regex': ['error', '^[a-z0-9-]+(.d|.config|.server)?$'], 'func-style': ['error', 'declaration', {allowArrowFunctions: true}], 'github/array-foreach': 'error', 'github/no-implicit-buggy-globals': 'error',