Skip to content

Commit 3fc1431

Browse files
committed
chore: update
1 parent fbd5b44 commit 3fc1431

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

docs/.vitepress/vite-plugin.mts

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ function transformRequire(code: string) {
5858
return match
5959
}
6060

61-
let id = `__${moduleString.replace(
62-
/[^a-zA-Z0-9_$]+/gu,
63-
'_'
64-
)}${Math.random().toString(32).slice(2)}`
61+
let id =
62+
// eslint-disable-next-line prefer-template
63+
'__' +
64+
moduleString.replace(/[^a-zA-Z0-9_$]+/gu, '_') +
65+
Math.random().toString(32).slice(2)
6566
while (code.includes(id) || modules.has(id)) {
6667
id += Math.random().toString(32).slice(2)
6768
}
@@ -70,11 +71,17 @@ function transformRequire(code: string) {
7071
}
7172
)
7273

73-
return `${[...modules]
74-
.map(
75-
([id, moduleString]) => `import * as __temp_${id} from ${moduleString};
74+
return (
75+
// eslint-disable-next-line prefer-template
76+
[...modules]
77+
// eslint-disable-next-line arrow-body-style
78+
.map(([id, moduleString]) => {
79+
return `import * as __temp_${id} from ${moduleString};
7680
const ${id} = () => __temp_${id}.default || __temp_${id};
7781
`
78-
)
79-
.join('')};\n${replaced}`
82+
})
83+
.join('') +
84+
';\n' +
85+
replaced
86+
)
8087
}

eslint.config.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ const MD_LINKS_FOR_DOCS = {
4848
...MD_BASE_LINKS
4949
}
5050

51-
const GLOB_TS = '**/*.?([cm])ts'
52-
5351
export default typegen([
5452
{
5553
ignores: [
@@ -83,7 +81,7 @@ export default typegen([
8381
}
8482
},
8583
...defineConfig({
86-
files: ['**/*.?([cm])[jt]s'],
84+
files: ['**/*.{js,mjs,ts,mts}'],
8785
extends: [
8886
eslintPluginEslintPlugin,
8987
eslintPluginUnicorn.configs['flat/recommended']
@@ -111,7 +109,7 @@ export default typegen([
111109

112110
{
113111
name: 'typescript/setup',
114-
files: [GLOB_TS],
112+
files: ['**/*.{ts,mts}'],
115113
languageOptions: {
116114
parser: tsEslintParser,
117115
parserOptions: {
@@ -124,7 +122,7 @@ export default typegen([
124122
},
125123

126124
{
127-
files: ['**/*.?([cm])[jt]s'],
125+
files: ['**/*.{js,mjs,ts,mts}'],
128126
languageOptions: {
129127
ecmaVersion: 'latest',
130128
sourceType: 'commonjs',
@@ -277,7 +275,7 @@ export default typegen([
277275
},
278276

279277
{
280-
files: [GLOB_TS],
278+
files: ['**/*.{ts,mts}'],
281279
rules: {
282280
...eslintPluginTs.configs.strict.rules,
283281
...eslintPluginTs.configs['flat/eslint-recommended'].rules,

typings/eslint-plugin-vue/util-types/ast/es-ast.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ export interface PrivateIdentifier extends HasParentNode {
351351
}
352352
export interface Literal extends HasParentNode {
353353
type: 'Literal'
354-
value: string | boolean | null | number | RegExp | bigint
354+
// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
355+
value: string | boolean | null | number | RegExp | BigInt
355356
raw: string
356357
regex?: {
357358
pattern: string

0 commit comments

Comments
 (0)