message:
'Our output target is ES2016, so async/await syntax should be avoided.',
},
+ {
+ selector: 'ChainExpression',
+ message:
+ 'Our output target is ES2016, and optional chaining results in ' +
+ 'verbose helpers and should be avoided.',
+ },
],
'sort-imports': ['error', { ignoreDeclarationSort: true }],
{
files: [
'eslint.config.js',
- 'rollup.config.js',
+ 'rollup*.config.js',
'scripts/**',
'./*.{js,ts}',
'packages/*/*.js',
}
} else if (
node.type === 'ObjectProperty' &&
+ // eslint-disable-next-line no-restricted-syntax
parent?.type === 'ObjectPattern'
) {
// mark property in destructure pattern
// no: export { NODE as foo } from "foo";
case 'ExportSpecifier':
// @ts-expect-error
+ // eslint-disable-next-line no-restricted-syntax
if (grandparent?.source) {
return false
}
effect._depsLength++
}
if (__DEV__) {
+ // eslint-disable-next-line no-restricted-syntax
effect.onTrack?.(extend({ effect }, debuggerEventExtraInfo!))
}
}
(tracking ??= dep.get(effect) === effect._trackId)
) {
if (__DEV__) {
+ // eslint-disable-next-line no-restricted-syntax
effect.onTrigger?.(extend({ effect }, debuggerEventExtraInfo))
}
effect.trigger()
// some envs mock window but not fully
window.HTMLElement &&
// also exclude jsdom
+ // eslint-disable-next-line no-restricted-syntax
!window.navigator?.userAgent?.includes('jsdom')
) {
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
}
}
+ // eslint-disable-next-line no-restricted-syntax
const root = instance?.subTree
if (
vnode === root ||
+ // eslint-disable-next-line no-restricted-syntax
(root?.type === Fragment && (root.children as VNode[]).includes(vnode))
) {
+ // eslint-disable-next-line no-restricted-syntax
const cssVars = instance?.getCssVars?.()
for (const key in cssVars) {
expectedMap.set(`--${key}`, String(cssVars[key]))
const styleMap: Map<string, string> = new Map()
for (const item of str.split(';')) {
let [key, value] = item.split(':')
+ // eslint-disable-next-line no-restricted-syntax
key = key?.trim()
+ // eslint-disable-next-line no-restricted-syntax
value = value?.trim()
if (key && value) {
styleMap.set(key, value)
instance,
ErrorCodes.APP_WARN_HANDLER,
[
+ // eslint-disable-next-line no-restricted-syntax
msg + args.map(a => a.toString?.() ?? JSON.stringify(a)).join(''),
instance && instance.proxy,
trace