We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18226e commit b5ce43bCopy full SHA for b5ce43b
packages/eslint-plugin/src/rules/naming-convention-utils/parse-options.ts
@@ -80,9 +80,7 @@ function normalizeOption(option: Selector): NormalizedSelector[] {
80
}
81
82
function parseOptions(context: Context): ParsedOptions {
83
- const normalizedOptions = context.options
84
- .map(opt => normalizeOption(opt))
85
- .reduce((acc, val) => acc.concat(val), []);
+ const normalizedOptions = context.options.flatMap(normalizeOption);
86
87
const result = getEnumNames(Selectors).reduce((acc, k) => {
88
acc[k] = createValidator(k, context, normalizedOptions);
0 commit comments