We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unicorn/consistent-function-scoping
1 parent f27dc03 commit 470906eCopy full SHA for 470906e
src/configs/javascript.ts
@@ -2,6 +2,7 @@ import globals from 'globals'
2
import { isInEditor } from '../env'
3
import { configJs, pluginUnusedImports } from '../plugins'
4
import type { Config } from '../types'
5
+import { GLOB_SRC_EXT } from '../globs'
6
7
export const restrictedSyntaxJs = [
8
'ForInStatement',
@@ -99,7 +100,7 @@ export const javascript: Config[] = [
99
100
},
101
102
{
- files: ['**/*.{test,spec}.js?(x)'],
103
+ files: [`**/*.{test,spec}.${GLOB_SRC_EXT}`],
104
name: 'sxzz/test-rules',
105
rules: {
106
'no-unused-expressions': 'off',
0 commit comments