Skip to content

Commit 92e630d

Browse files
committed
Use patterns array consistently
1 parent e7fc427 commit 92e630d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/configs/graphql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
import * as graphqlEslint from '@graphql-eslint/eslint-plugin';
44
import tseslint from 'typescript-eslint';
5-
import { GRAPHQL_FILE_PATTERN, NODE_FILE_PATTERNS } from '../lib/patterns.js';
5+
import { GRAPHQL_FILE_PATTERNS, NODE_FILE_PATTERNS } from '../lib/patterns.js';
66
import node from './node.js';
77

88
export { NAMING_CONVENTION_OPTIONS_GRAPHQL } from '../lib/rule-options.js';
99

1010
export default tseslint.config(...node, {
11-
files: [GRAPHQL_FILE_PATTERN],
11+
files: GRAPHQL_FILE_PATTERNS,
1212
plugins: {
1313
'@graphql-eslint': graphqlEslint,
1414
},

src/configs/javascript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
JS_TS_JSON_FILE_PATTERNS,
1515
JSON_FILE_PATTERNS,
1616
MOCKS_FILE_PATTERNS,
17-
SVELTE_FILE_PATTERN,
17+
SVELTE_FILE_PATTERNS,
1818
TEST_FILE_PATTERNS,
1919
TYPESCRIPT_DECLARATION_FILE_PATTERNS,
2020
} from '../lib/patterns.js';
@@ -287,7 +287,7 @@ export default tseslint.config(
287287
},
288288
{
289289
name: 'code-pushup/javascript/svelte/disabled',
290-
files: [SVELTE_FILE_PATTERN],
290+
files: SVELTE_FILE_PATTERNS,
291291
rules: {
292292
'import/no-mutable-exports': 'off',
293293
'functional/no-let': 'off',

src/lib/patterns.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const CYPRESS_FILE_PATTERNS = [
7474

7575
export const NODE_FILE_PATTERNS = ['**/*.ts', '**/*.js'];
7676

77-
export const GRAPHQL_FILE_PATTERN = '**/*.graphql';
77+
export const GRAPHQL_FILE_PATTERNS = ['**/*.graphql'];
7878

7979
export const STORYBOOK_FILE_PATTERNS = withExtensions([fromSuffix('stories')]);
8080

@@ -88,7 +88,7 @@ export const GENERATED_FILE_PATTERNS = withExtensions([
8888

8989
export const COMMONJS_FILE_PATTERNS = ['**/*.cjs', '**/*.cts'];
9090

91-
export const SVELTE_FILE_PATTERN = '**/*.svelte';
91+
export const SVELTE_FILE_PATTERNS = ['**/*.svelte'];
9292

9393
/** @param {string[]} patterns */
9494
export function negatePatterns(patterns) {

0 commit comments

Comments
 (0)