Skip to content

Commit fbd5b44

Browse files
committed
chore: fix
1 parent db1f9e0 commit fbd5b44

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import './build-system/build.mjs'
1010

1111
const dirname = path.dirname(fileURLToPath(import.meta.url))
1212

13+
// eslint-disable-next-line unicorn/no-anonymous-default-export
1314
export default async () => {
1415
const rulesPath = '../../tools/lib/rules.js' // Avoid bundle
1516
const rules: typeof import('../../tools/lib/rules.js') = await import(

docs/.vitepress/vite-plugin.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const libRoot = path.join(fileURLToPath(import.meta.url), '../../../lib')
1111
export function vitePluginRequireResolve(): Plugin {
1212
return {
1313
name: 'vite-plugin-require.resolve',
14-
transform(code, id, _options) {
14+
transform(code, id) {
1515
if (id.startsWith(libRoot)) {
1616
return code.replace(/require\.resolve/gu, '(function(){return 0})')
1717
}
@@ -35,6 +35,7 @@ export function viteCommonjs(): Plugin {
3535
})
3636
return transformed.code
3737
} catch (error) {
38+
// eslint-disable-next-line no-console
3839
console.error(`Transform error. base code:\n${base}`, error)
3940
}
4041
return undefined

eslint.config.mjs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default typegen([
119119
}
120120
},
121121
plugins: {
122-
ts: eslintPluginTs
122+
'@typescript-eslint': eslintPluginTs
123123
}
124124
},
125125

@@ -279,11 +279,15 @@ export default typegen([
279279
{
280280
files: [GLOB_TS],
281281
rules: {
282-
'no-undef': 'off', // https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
283-
'no-unused-vars': 'off',
284-
'ts/no-unused-vars': 'error',
282+
...eslintPluginTs.configs.strict.rules,
283+
...eslintPluginTs.configs['flat/eslint-recommended'].rules,
285284
'no-redeclare': 'off',
286-
'ts/no-redeclare': 'error'
285+
'@typescript-eslint/no-redeclare': 'error',
286+
'@typescript-eslint/no-explicit-any': 'off',
287+
'@typescript-eslint/no-empty-object-type': 'off',
288+
'@typescript-eslint/no-namespace': 'off',
289+
'@typescript-eslint/triple-slash-reference': 'off',
290+
'@typescript-eslint/unified-signatures': 'off'
287291
}
288292
},
289293

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export interface PrivateIdentifier extends HasParentNode {
351351
}
352352
export interface Literal extends HasParentNode {
353353
type: 'Literal'
354-
value: string | boolean | null | number | RegExp | BigInt
354+
value: string | boolean | null | number | RegExp | bigint
355355
raw: string
356356
regex?: {
357357
pattern: string

0 commit comments

Comments
 (0)